Skip to main content

Ask AI and quick actions

Retool can help you build apps and workflows faster with built-in AI functionality:

  • Ask AI: Write, edit, and fix queries.
  • Quick actions: Automatically build user interfaces with multiple components connected together.

Ask AI

Trigger Ask AI by clicking the icon in the query editor or use / when editing a query.

You can instruct Ask AI to perform a number of actions with JavaScript, SQL, and GraphQL queries:

  • Generate: Write a new query using natural language instructions.
  • Edit: Edit an existing query using natural language instructions.
  • Explain: Add comments to explain what each part of a query does.
  • Fix: Identify and fix errors in an existing query.

Because Ask AI has access to your data schema, Ask AI can accurately reference your data and UI components.

AI query accuracy

AI is not infallible. To help mitigate problems from incorrect queries, Ask AI presents the results for you to accept or reject. If Ask AI modifies an existing query, a comparison is also included.

You should review all changes before accepting or rejecting AI queries. Retool cannot guarantee that queries are always accurate, nor that they would not result in a destructive action (e.g., deletion or incorrect changes). It's ultimately your responsibility to evaluate Ask AI queries before running them.

Data sharing

Ask AI is powered by OpenAI GPT models. Retool does not share referenced data nor the results of any AI-generated query with AI partners. Retool does share metadata, including database schema, so that Ask AI can function effectively. You should not use Ask AI if this metadata is sensitive and must remain confidential.

Quick actions

Quick actions appear whenever you add certain UI components that commonly require multiple steps to implement. For example, if you add a Table component, you would be presented with quick actions for connecting a data source, adding a search filter, or creating a form to edit table data.

Click to access quick actions for a component whenever they are available.