HTML dashboards
Build a dashboard from HTML pages that read workflow rows, run workflows, show agents, and place tiles, then test each page in the page builder.
An HTML dashboard is a dashboard written as HTML and scripts instead of tiles. Use one when you want to write the layout yourself and feed it from the dashboard's workflows.
Before you start
- You need permission to edit dashboards.
- You need at least one workflow that returns the rows a page reads. See Workflows overview.
- To show an agent on a page, create the agent first under Agents. See Build and configure agents.
Create an HTML dashboard
- Go to Dashboards.
- Select More kinds of dashboard.
- Choose the HTML dashboard kind.
- On the tab that shows This tab has no page yet, select Add a page.
The page builder opens with a code editor, Page HTML, and a Preview. A page is HTML you write, fed by the dashboard's workflows, and it fills the whole dashboard. Each tab holds one page.
To put HTML in a single tile on a tile dashboard instead, see Tiles.
Write a page
- In the page builder, enter your HTML in Page HTML.
- Select Data.
- Select Add a workflow to read… and choose a workflow.
- Enter the label the page uses for that workflow's rows.
- Place the cursor in the code where you want a column.
- In the Data panel, select the column name to insert it at the cursor.
- Check the result in Preview.
- Save the dashboard. For naming and saving, see Create a dashboard.
Each workflow listed under Data this page reads runs when the dashboard loads. Its rows reach the page under the label you gave it. Column names appear in the Data panel once the rows have loaded.
The code editor has two formatting options: Tidy the indentation and Wrap long lines.
The page builder has 7 panels:
| Panel | What it does |
|---|---|
| Data | Lists the workflows the page reads, with their labels and columns. |
| Actions | Lists the workflows the page may run. |
| Agents | Lists the agents the page may show to viewers. |
| Tiles | Lists the tiles the page places, and adds new ones. |
| Ask an agent | Has an agent or the assistant write the page, or change it, from your description. |
| Settings | Holds the page's name, theme, live channel, and viewer option. |
| Reference | Documents what a page can call, what to know, and the theme tokens. |
The Settings panel has these options:
| Setting | What it does |
|---|---|
| Page name | The name of the page. |
| Intuidy — product colours, light and dark | Theme option. The page gets Intuidy's colours as CSS custom properties prefixed --i-, and follows light and dark by itself. The properties are listed under Theme tokens in the Reference panel. |
| None — a bare page | Theme option. The page gets no Intuidy styling. |
| Live channel | A name a workflow can push rows to with the Push To Tile node, so the page updates without a reload. |
| Tell the page who is viewing it | Passes the page information about the person viewing it. |
Let a page run workflows
A page can run only the workflows you list for it.
- Select Actions.
- Select Add a workflow to run… and choose a workflow.
- Place the cursor in the code where the run belongs.
- Select Insert at the cursor.
The workflow appears under Workflows this page may run, and the call that runs it is added to your code.
Show an agent on a page
- Select Agents.
- Select Add an agent… and choose an agent.
The agent appears under Agents this page may show. Viewers of the page can ask it questions. The agent is off in the preview unless Run actions is on.
Place a tile on a page
A page can show real dashboard tiles, such as a map or a chart, inside your own layout. Intuidy draws each tile with its own data and settings in the space the page leaves for it.
- Select Tiles.
- In Tile type, choose a type: Map, Table, Bar chart, Line chart, Area chart, Pie chart or Big number.
- In Label, enter the name the page uses for the tile, or leave the suggested label.
- Add the tile. Unsaved changes to the dashboard are saved first.
- Place the cursor in the code where the tile belongs, and insert the tile's element at the cursor.
- Select the tile's edit option to configure it in the tile editor.
The tile appears under Tiles this page places. It is an ordinary tile on the page's tab. Size it with CSS in your page; without a size it is 360 pixels high. Your page's script can listen to the tile's events and send it commands, as described in the Reference panel. In the preview the tile is drawn, but commands to it don't run.
Removing a tile from Tiles this page places deletes the tile.
Have an agent write the page
- Select Ask an agent.
- Choose an agent, or Default assistant.
- Enter what you want in Describe the page or a change….
- Select Send.
The panel shows Writing the page… while the agent works. Select Stop to end the reply, or Start over to clear the conversation. Review what the agent wrote in Preview before you save.
Preview and test
The preview states which mode it is in:
| Preview message | What it means |
|---|---|
| Reads real rows. Runs are off. | The preview loads real rows from the workflows the page reads. Workflows the page runs don't start, and agents don't answer. |
| Runs are live and billed. | Run actions is on. Workflows the page runs start for real and each run is billed. Each message to an agent is billed too. |
| Runs are off while a draft is showing. | The preview is showing a draft, so runs stay off. |
To test the page's workflows and agents, turn on Run actions. Turn it off when you finish testing. For how runs are charged, see Tokens and usage.
The preview has these controls:
- Preview width sets the width the page is previewed at. Full width uses all the space available.
- Reload the preview loads the page again.
- Console shows script errors and
consoleoutput from the preview. Select Clear to empty it. - Hide the code gives the preview the whole builder. Show the code brings the editor back.
Add another page
- In the page builder, select Add page.
- Select Settings.
- Enter a Page name.
The dashboard gets another page with its own HTML, data, actions, agents, and tiles. Each page sits on its own tab.
Troubleshooting
- This tab holds tiles beside its page, so it is shown as a grid. A page fills the dashboard only when it is the one HTML tile on its tab. Move or delete the other tiles on that tab.
- Not in the editor preview: this call reaches the board once the tile is saved. Some calls don't work in the preview. Save, then test the page on the dashboard itself.
- Too many row requests at once. Ask again in a moment. The page asked for rows too often in a short time. Space the requests out. A request for rows also needs an offset of 0 or more and a limit of at least 1.
- That workflow ran a moment ago. A page can't run the same workflow again straight away. The same applies to refreshing a tile or the whole dashboard. Wait, then try again.
- A file can be handed over only right after the viewer clicks something. A page can open or download a file only in response to a viewer's action, such as selecting a button on the page.
- The agent is off in the preview. Turn on Run actions to try the agent. Each message is billed.
- This account cannot reach the agent on this page. The viewer's account doesn't have access to the agent the page shows.
- This tile is not on the board any more. The tile the page places was deleted from the dashboard. Remove it from Tiles this page places and place a new one.
- This tile type cannot be placed in a page. The tile's type can't be drawn inside a page. Place a different type.
- The tile could not be placed. The dashboard's unsaved changes couldn't be saved, or the tile couldn't be created. Save the dashboard, then add the tile again.
↳ Tiles ↳ Share a dashboard ↳ Build and configure agents