Widget Drafts
Eric can build widget drafts directly inside a chat session. If you ask for a chart, table, or metric, he creates a draft artifact you can preview and publish to a dashboard.
How it works
Section titled “How it works”- You ask Eric to build a widget.
- Eric searches your datasets and drafts a matching widget.
- The draft appears in an inline canvas beside the chat.
- You can preview the widget live, refresh it, and fix any issues.
- Once it looks right, publish it directly to a dashboard.
What Eric can draft
Section titled “What Eric can draft”- Bar, pie, line, table, number, gauge, funnel, and matrix charts
- Static text, images, buttons, and iFrames
- Widgets with filters, date ranges, thresholds, and multiple metrics
Eric picks the widget type based on your request and the data shape. You can refine the draft by continuing the conversation.
The draft canvas
Section titled “The draft canvas”When Eric creates a draft, the canvas opens next to the chat. It shows:
| Section | What it displays |
|---|---|
| Preview | A live widget rendered with your data |
| Content | Widget type, static content, or configuration |
| How it was built | Each metric, dataset source, grouping, filters, and date columns |
| Needs attention | Repair issues that block publishing |
| Revision info | Current revision number and timestamp |
Close the canvas at any time. It reopens automatically when a new draft is created or updated.
Refreshing a draft
Section titled “Refreshing a draft”If the data changes or you revise the prompt, click Refresh to rebuild the preview from the latest revision. Refresh compares the expected revision with what is on the backend and fetches updated dataset results.
Publishing a widget
Section titled “Publishing a widget”When a draft is ready, the canvas shows two publish options:
- Publish — adds the widget to the chosen dashboard and stays in chat.
- Publish and edit — adds the widget to the dashboard and opens it in the widget editor.
You select a target dashboard from the publish dialog. Eric may suggest a dashboard automatically, or you can pick one from the list.
A draft must be in Ready status before it can publish. If there are repair issues, the status shows Needs repair and publishing is blocked until they are resolved.
What happens after publishing
Section titled “What happens after publishing”- The draft status changes to Published to dashboard.
- The widget appears on the selected dashboard and can be moved or edited normally.
- The published widget link is saved with the artifact for reference.
- Be specific about the dataset, metric, and time range when requesting a widget.
- If the preview looks wrong, describe the change you want and let Eric revise the draft.
- Check Needs attention for missing columns, mismatched filters, or unsupported widget configurations.