Skip to main content

Retool App IDE with Assist

The Retool App IDE provides the development interface for creating Web Apps. The following lab performs a walkthrough of the newly released Assist tab, bringing App Generation to Retool.

App IDE with Assist walkthrough

In the App IDE Walkthrough, the Retool App IDE was examined closely. With the introduction of App Generation in Retool, the following walkthrough focuses on the Assist tab and its support for mixed-mode development (Chat, Canvas, Code). The following image shows the new Assist icon / drawer.

Assist Tab in App IDE
Assist Tab in App IDE

Simple example

The following video shows a completed app that will be built using a Retool App and Database.

Import data

In this step we will setup a sample table that you can use in the example.

Create schema

The schema we will create is defined in the following table.

Column nameDescriptionValue Type
idauto-generated primary keyInt
vendorPublic Cloud VendorEnum (AWS, Azure, GCP)
instance_idVM instance identifierText
created_atDateTime the instance was createdDate + Time
cpu_countNumber of vCPUNumber
ram_countAmount of RAMNumber
cost_centerOwner of the instanceEnum (engineering, operations, finance, support)
  • Select Retool Home > Database

Import CSV

Next we want to populate this table with data. Download this CSV to import into the new table.

  • Select Import CSV > Into a new table
  • A import window appears showing the column names and types.
  • Select Create table.

We want to alter the vendor and cost_center columns to be of type Enum.

  • Select the down carrot for the vendor column and selecting Settings.
  • Select Field type and change from Text to Enum and select Save.
  • Repeat this process for the cost_center column.

The following Arcade video will guide through importing the CSV and changing the columns.

Create a Web App

  • Select Home (Retool icon) to return to the home page. Select App > Create Web App. Provide an app name and save.
  • The App IDE screen will now display an empty app.

Prompt a Home page

Focus Area: Left panel / Assist tab

The Left panel provides access to the construction features in Retool. Let's rename the app.

  • Select the app name and change to infratest.
  • Select the Assist icon (bottom left) if the Assist drawer is not displayed.
  • Enter the following prompt to generate the infrastructure app.
Create an infrastructure management app with a header that has a link to a home page 
and a profile page. The home page will have a table, titled ###Deployed infrastructure,
that displays cost_center, vendor, instance_id, and purpose columns from @Retool Database
int_multicloud_infrastructure table. When a row in the table is double-clicked, it opens
a drawer, with a title ##Infrastructure detail, that uses the selected row to show the
vendor, cost_center, instance_id, purpose, cpu_count, ram_count, created_at, and network.

Edit app to use container

Focus Area: Left panel / Assist tab

The original prompt left out the use of a container to organize the table. Let's use an edit prompt to change that and reference components by their tag name.

Create a container and use textDeployedInfrastructure as the title. 
Place the tableInfrastructure inside the table.
  • Once this is complete, the container may be far from the header. The following prompt will change that to have it move under the header.
Move containerInfrastructure to be right under the header.

Edit app to use tags

Focus Area: Left panel / Assist tab

The last prompt we will try is to update the table and drawer vendor and cost_center keys to use a Tag component vs. Text. Let's get the component names so the prompt is accurate when we ask to update them.

Update the tableInfrastructure component columns, ###Vendor and ###Cost center, to be Tag components vs. Text components. Do the same for drawerInfrastructure key/value entries ###Cost center and ###Vendor.