Skip to content

Create a sales chart, then ask for changes

This case study follows a completed Analysis session with invented sales data. You create a regional chart, answer a question in the Inbox, and ask for a monthly table on the same worksheet.

The finished worksheet

The finished table shows October at 25 units and November at 45.

Worksheet ready for review, with October at 25 units and November at 45.

HTML preview

Open the example to view it on its own or inspect its HTML, styling and query. This formatted example uses the verified monthly totals and the app's colours.

Start with a worksheet and sales data

On Analysis, open a worksheet with a sales source available under Worksheet settings… → Allowed data sources. Connect an AI provider first if you have not completed Get started. The example uses a table called sales, with text columns month and region and a numeric units column:

month region units
2026-10-01 North 10
2026-10-01 South 15
2026-11-01 North 20
2026-11-01 South 25

Use your own source with these columns when following along; its totals will differ. If your data is in a SQLite file but is not listed, register it from your workspace folder:

tuile analysis dataset add worksheet-sales /path/to/your-sales.sqlite

Replace the example path with your existing SQLite file, then reopen the worksheet settings.

1. Choose the data the agent may use

  1. On the worksheet, open … and choose Worksheet settings….
  2. Under Instructions, enter guidance such as “Show units as whole numbers and use the worksheet's colours.”
  3. Under Allowed data sources, turn on your sales source and leave unrelated sources off.
  4. Click Save agent settings.
  5. Click Done to return to the worksheet.

Worksheet instructions apply to later requests too.

2. Ask for a regional chart

On an empty worksheet, click Create your first widget; otherwise, click New. Enter a request like this, then press Enter:

Create a bar chart of total units by region from the sales source allowed for this worksheet. Name it Verification units by region.

The worksheet shows Queued…, then Working…, with spinning circles while the agent works.

In this session, the agent asked to replace spaces in the saved name with underscores. If your chart finishes without a question, review it and continue to step 4.

3. Answer in Inbox to continue the chart

  1. In Inbox, open the question about your chart.
  2. Choose the answer you want; in this example, it was Use underscores.
  3. Return to the worksheet and wait for Ready for review before checking the chart or asking for changes.

The worksheet changes from Waiting for your answer to Working…, then Ready for review. The answer continued the same conversation, and the chart showed North at 30 units and South at 40.

The Inbox incorrectly showed agent gone in this session. If you see that label while the worksheet says Waiting for your answer, try answering the question before dismissing it.

4. Change the existing chart to a monthly table

On the chart, click Ask for changes…, enter the following request, and press Enter:

Change this widget to a table of total units by month, sorted oldest first. Keep its existing name.

The widget and worksheet show spinning circles during the change. In this run, the same conversation updated the widget and produced:

Month Total units
2026-10-01 25
2026-11-01 45

Only the sales source was permitted in this example. A separate source remained blocked when the agent tried to read it, both before creation and after the Inbox answer. Reopening the worksheet after a reload preserved the table and Ready for review status.

For your next request, use Ask for changes… to refine this widget or New to add another. See Inbox for other ways to answer questions and Agents for following a conversation. If work stops progressing, see An agent is stuck.