Semaphor
Custom Visuals

The prompt

What the prompt you copy in the editor asks an assistant to do, and what to add to it

The prompt is a set of instructions for an assistant, followed by your card's fields. Paste it into any assistant, add what you want to see, and the HTML it writes will draw your card's data in your brand, at any size. You never edit the prompt itself.

Prompt for your assistantThe rules a visual follows and this card’s fields.123456CloseCopy prompt1One readable fileReturn one HTML document, laid outfor a person to read and edit.2Draw only the card’s dataUse the rows the dashboard hands over;reach for nothing outside.3Show values as formattedPrint each value as the card shows it,and never add up an average.4Follow your brandYour colours and font, in light anddark mode, with no colours of its own.5Fit any sizeFill the card, and simplify as itshrinks. Never scroll or overlap.6Your card’s fieldsTheir names and kinds, in order.From the Code tab, the current code.
You never edit the prompt. Paste it as it is, then add what you want to see.

Where to find it

  • To start a visual: in the Visual panel, under Your own assistant, click View prompt, then Copy prompt.
  • To change a visual: on the Code tab, click View prompt. This prompt also holds the visual's current code, and asks the assistant to change it and send back the whole file.

The dashboard's assistant and agents connected through the MCP server follow the same instructions, so a visual behaves the same whoever wrote it.

On a SQL card, run the query first

The prompt lists the columns of the card's latest results. Run your SQL before you copy the prompt, so the assistant knows your columns.

What the prompt asks for

In plain words, the prompt asks the assistant to:

  • Return one HTML file and nothing else, laid out for a person to read, so you can follow it on the Code tab.
  • Use your card's fields, by the names and kinds the prompt lists. The visual draws the rows the card returns and reaches for nothing outside them.
  • Show every value as the card formats it, with its currency, units and date style, and format any number it works out itself, such as an axis tick or a total, the same way.
  • Respect what adds up. A sum or a count can be totalled; an average or a ratio can't. A visual that adds rows shows a short message instead of a wrong total.
  • Follow your brand, with your colours and font, in light and dark mode, and no colours of its own. When you want a specific colour, it adds a colour setting you can change in the panel.
  • Fit the card at any size. It fills the card and simplifies as the card shrinks: shorter labels, fewer ticks, then only the rows that fit with "+N more". It never scrolls or overlaps text.
  • Handle the edges: a short message when there are no rows, a note when the rows were cut short, and empty values drawn as gaps, not zeros.
  • Offer settings, such as Show labels, so you can adjust the visual without asking again.
  • Stay unbranded, with no product names, logos or AI wording, so it fits your dashboards.

What you add

Paste the prompt, then write what you want below it:

A bullet chart, one row per region. The bar is Revenue and the tick is
Target. Use the positive colour when a region reaches its target and the
negative colour when it doesn't. Largest revenue first. Add a setting to
hide the value labels.

You don't need to mention colours, fonts, number formats, sizes, dark mode or printing: the prompt covers them. Spend your words on what the chart shows and what matters most in it. Tips and recipes has more examples.

What the assistant never sees

The prompt holds your card's field names and kinds, never its data. The visual sees the rows only when it draws on the dashboard, for the person viewing it.

On this page