Generate data types

Overview

Bubble AI allows users to generate and data fields, with included by default for data types containing potentially sensitive information.

Simply tell the AI what feature you’re looking to create data types for. From your prompt, AI will generate new types, new fields on those new types, and privacy rules on those new types. The new fields can link to any new data types.

Right now, Bubble AI does not support references to existing data types and does not add fields or privacy rules on existing data types.

Think of this feature as an instant way to generate new parts of your database, especially when first getting started on refining your app. Your existing data types will be unchanged.

For apps with access to , you can see the changes listed in the log.

Prompting

Your output will improve the more specific you are. Our AI tools are designed to follow best practices for creating data schemas, but like all AI systems, they can sometimes make mistakes, so be sure to verify privacy rules are consistent with your needs.

Once your prompt is generated, you can choose to View Changelog (if you're on ) or Revert Changes. Revert Changes will hard delete ALL data types, fields, and privacy rules generated by the associated request to the service.

Dos and don’ts

  • Do write the prompt in the language you want the data types to be generated in

  • Do include specific data type names or fields that you want

  • Do mention which data types need privacy rules or if you know they are sensitive.

  • Don’t request the prompt for other Bubble components: elements, workflows, etc.

  • Don’t violate Bubble’s Acceptable Use Policy

Limitations

  • You cannot generate more than 20 data types at a time.

  • Your prompt must be at most 400 characters in length.

  • The feature does not support references to existing data types and does not add fields or privacy rules on existing data types.

  • It will not generate any data in the data tables you are creating.

  • It will not generate any other Bubble components: option sets, elements, workflows, settings, etc.

Example prompts

Example 1

I’m building a travel itinerary app and need to add a feature to look up public transport. It should store information about public transportation like trains and buses.

Example 2

I need to build a way to sensitively store data about employees, shifts, and companies for my payroll app. Employee information is sensitive, in particular.. 

Example 3

Generate data types for a dashboard to manage properties for short term rentals, with basic role-based access for tenants and landlords.

Last updated

Was this helpful?