Prompt with Assist
Learn how to prompt Assist to edit or create apps.
| Assist Availability | |||
|---|---|---|---|
| Cloud | Public beta | ||
| Self-hosted Edge 3.283 or later | Public beta | ||
| Self-hosted Stable 3.284 or later | Public beta | ||
When you're ready to use Assist, open a new or existing app, and the Assist panel opens automatically. To find it again later, click the Assist icon at the bottom of the left panel of the IDE.
This guide outlines the Assist interface, prompting experience, and best practices. For admins who need to configure their organization to use Assist, visit the Configuration guide.
The following demo provides an example of using Assist to generate an app that uses data from Retool Database:
Assist interface
The first time you use Assist, you may be prompted to accept some Terms and Conditions.
The Assist interface has several important controls:
- The welcome screen includes a series of examples that demonstrate prompts that you could use with Assist.
- Write your prompt in the input box at the bottom of the panel.
- Add resources with the icon.
- Click or press / to submit your prompt.
- Use a series of icons at the top of the panel to manage your Assist interactions:
- Feedback: Leave general feedback about Assist. As part of this feedback, Retool also receives your chat history and your user email address so that Retool can follow up with any questions.
- View history: View and manage chat threads. You can view, rename, and delete chat threads.
- New thread: Create a new chat thread.
- Credits: View and manage credit consumption. This icon is not present for Enterprise and certain Business users. Instead, admins in these organizations can view usage information in their organization settings.
Prepare resources
You retain full control over your resources, and Assist cannot create or modify them independently. Before prompting with Assist, create or configure all resources that you want your app to use.
When working with apps, Assist uses a Resource access list that identifies which resources in your organization it can use to write and modify queries. Assist can suggest adding other resources to this list, but you control what the Resource access list contains. Add resources to this list while prompting by @ mentioning them or describing them. You can also add them explicitly.
To manually add resources to the Resource access list:
- Open the Assist tab in the app you want to create or edit.
- Click Resource access in the input field to open the Assist resource access window.
- Identify the resources that you want to use while prompting.
Once you're done, the Resource access icon shows the number of resources you added. You can add or remove resources at any point.
Prompting experience
Use the text input at the bottom of the Assist tab to enter your natural language prompt. When prompting, enter the @ symbol to explicitly reference a resource, query, or component that you want Assist to use. Refer to the best practices for more guidance on how to prompt Assist.
Click or press / to submit your prompt.
Once you prompt, Assist proceeds through several planning steps. Assist might ask clarifying questions about your prompt, such as whether you'd like to connect Retool Database or use client-side mock data.
Assist's initial planning phase.
Once Assist is done planning, it proceeds with creating or editing the code, components, and styling that you requested.
Assist asks you for permission to run and save queries. You can choose to be prompted every time, or you can auto-approve queries.
Configure how you want to approve query runs.
When it's done building, Assist sometimes provides options for what to do next. You can select one of these options, or you can write another prompt.
Choose what you'd like to do next.
Manage changes
Assist includes an integrated versioning strategy, which identifies an initial version of your app and creates updated versions that it saves to history as you prompt. You can view the versions in the Releases and history tab.
At any time while prompting, use the Revert to version button to undo the changes made after that point. This makes it easy to roll back changes if you change your mind.
If you are on the Team, Business, or Enterprise plans, you can also click Create release to create a new release incorporating those changes.
Your organization admin may alternatively recommend using Source Control for change management.
Prompting best practices
Consider the following best practices for writing effective Assist prompts.
Reference content from your organization
You can @ mention resources, code, and components in your prompt. For example: Update the data source for @supportTable to utilize the @Customer Support Tickets Database resource.