Prompt Templates for Rendering
Flow-Like’s full Markdown renderer displays charts, image galleries, ranked recommendations, and comparison bars from fenced code blocks. Use the templates below to request output that renders directly in chat or the Markdown playground.
What is actually supported here?
Section titled “What is actually supported here?”For the markdown renderer, these are the relevant rendering modes:
- Regular markdown content
- Normal fenced code blocks with syntax highlighting
- Interactive chart blocks using
nivo - Interactive chart blocks using
plotly - Image galleries using
gallery - Ranked option cards using
recommendations - Bars on a shared numeric scale using
comparison
If you want previewable chart output from an LLM, the model should return a fenced code block, not just a raw JSON array.
How chart code blocks work
Section titled “How chart code blocks work”Flow-Like supports two input styles for both nivo and plotly code blocks:
- CSV mode with an optional config header above
--- - JSON mode for full chart configuration
CSV mode is the easiest option for prompting because it is concise and predictable.
Supported chart types
Section titled “Supported chart types”Nivo currently supports:
barlinepieradarheatmapscatterfunneltreemapsunburstcalendarsankeychordstreamwafflebumpareaBumpradialBar
Plotly currently supports:
barlinescatterpieareahistogramheatmapboxviolin
If you omit type in CSV mode, Flow-Like tries to auto-detect a sensible default, but explicit type values are more reliable in prompts.
Prompt Rule for a Standalone Chart
Section titled “Prompt Rule for a Standalone Chart”Tell the model to return:
- only the final markdown
- exactly one fenced chart block
- no prose before or after the block
- no explanation unless you explicitly want it
Template: Nivo chart in CSV mode
Section titled “Template: Nivo chart in CSV mode”Use this when you want the model to return a Flow-Like-renderable nivo block with minimal formatting overhead.
Return only a single fenced markdown code block with the language `nivo`.Do not include any explanation before or after the code block.
Inside the block:1. Add a small config header using `key: value` lines.2. Add a line containing exactly `---`.3. Add CSV data.
Requirements:- Use `type: bar` unless I specify another chart type.- The first CSV column is the category axis.- The remaining columns must be numeric series.- Keep labels short.
Expected format:
```nivotype: bartitle: Quarterly revenueshowLegend: true---quarter,revenue,profitQ1,120,30Q2,150,42Q3,170,55Q4,210,70```Example output
Section titled “Example output”type: bartitle: Quarterly revenueshowLegend: true---quarter,revenue,profitQ1,120,30Q2,150,42Q3,170,55Q4,210,70Good uses
Section titled “Good uses”- category comparisons
- grouped bar charts
- quick dashboards from table-shaped data
Template: Nivo line chart in CSV mode
Section titled “Template: Nivo line chart in CSV mode”Use this when the first column is time-like or ordered and you want a line chart.
Return only one fenced code block with the language `nivo`.Do not wrap it in prose.
Use this exact structure:
```nivotype: linetitle: Monthly signupsshowLegend: true---month,organic,paidJan,120,45Feb,140,52Mar,155,61Apr,172,66```
Rules:- Keep the first column as the shared X axis.- Every remaining column must be numeric.- Do not output JSON.Example output
Section titled “Example output”type: linetitle: Monthly signupsshowLegend: true---month,organic,paidJan,120,45Feb,140,52Mar,155,61Apr,172,66Template: Nivo JSON mode for advanced chart types
Section titled “Template: Nivo JSON mode for advanced chart types”Use this when you need chart types that are easier to express as JSON, such as sankey, chord, sunburst, treemap, or calendar.
Return only one fenced markdown code block with the language `nivo`.Inside the code block, return valid JSON only.Do not include comments.Do not include explanation.
The JSON must contain:- `chartType`- `data`- any extra props needed by that chart type
Example shape:
```nivo{ "chartType": "sankey", "data": { "nodes": [ { "id": "Visitors" }, { "id": "Trials" }, { "id": "Customers" } ], "links": [ { "source": "Visitors", "target": "Trials", "value": 320 }, { "source": "Trials", "target": "Customers", "value": 96 } ] }}```Example output
Section titled “Example output”{ "chartType": "sankey", "data": { "nodes": [ { "id": "Visitors" }, { "id": "Trials" }, { "id": "Customers" } ], "links": [ { "source": "Visitors", "target": "Trials", "value": 320 }, { "source": "Trials", "target": "Customers", "value": 96 } ] }}Template: Plotly chart in CSV mode
Section titled “Template: Plotly chart in CSV mode”Use this when you want the renderer to build a Plotly chart from compact CSV input.
Return only a single fenced markdown code block with the language `plotly`.Do not include any explanation.
Use this structure exactly:
```plotlytype: linetitle: Website trafficxLabel: MonthyLabel: VisitsshowLegend: true---month,visits,signupsJan,1200,30Feb,1360,41Mar,1490,44Apr,1710,57```
Rules:- The first column is the X axis.- Remaining columns are numeric series.- Use `type: bar`, `line`, `scatter`, `pie`, `area`, `histogram`, `heatmap`, `box`, or `violin` as needed.Example output
Section titled “Example output”type: linetitle: Website trafficxLabel: MonthyLabel: VisitsshowLegend: true---month,visits,signupsJan,1200,30Feb,1360,41Mar,1490,44Apr,1710,57Loading chart preview…
Template: Plotly JSON mode
Section titled “Template: Plotly JSON mode”Use this when you want full control over traces, layout, and config.
Return only one fenced markdown code block with the language `plotly`.Inside the code block, return valid JSON only.No prose. No markdown outside the code block.
The JSON must contain:- `data`: array of Plotly traces- `layout`: object- optionally `config`: object
Example format:
```plotly{ "data": [ { "x": ["Jan", "Feb", "Mar", "Apr"], "y": [1200, 1360, 1490, 1710], "type": "scatter", "mode": "lines+markers", "name": "Visits" } ], "layout": { "title": "Website traffic" }, "config": { "responsive": true }}```Example output
Section titled “Example output”{ "data": [ { "x": ["Jan", "Feb", "Mar", "Apr"], "y": [1200, 1360, 1490, 1710], "type": "scatter", "mode": "lines+markers", "name": "Visits" } ], "layout": { "title": "Website traffic" }, "config": { "responsive": true }}Loading chart preview…
Template: Galleries and Ranked Options
Section titled “Template: Galleries and Ranked Options”Use this instruction when the response needs images or a ranked shortlist. The Markdown reference lists all fields and validation rules.
Present the answer in Markdown. Add a gallery when supplied images help identifythe options, or recommendations when the order reflects a stated ranking criterion.Use only known image and link URLs; omit optional images when none are available.Keep citations in the surrounding prose because JSON string fields are plain text.
Gallery shape:```gallery{"title":"Views","items":[{"src":"IMAGE_URL","alt":"Description of the image","caption":"Front view"}]}```
Ranked shortlist shape:```recommendations{"title":"Shortlist","items":[{"title":"Option A","description":"Why it fits","specs":[{"label":"Capacity","value":"5 seats"}]},{"title":"Option B","description":"When to choose it"}]}```
Return complete JSON with at least one item. Do not include comments or trailingcommas. Close each fence before resuming prose.Template: Comparison Bars
Section titled “Template: Comparison Bars”Use comparison for a few non-negative values on one scale. Use a chart template
for multiple series, negative values, or axis controls.
Compare the supplied values in a fenced `comparison` JSON block:
```comparison{"title":"Capacity","max":600,"unit":"L","items":[{"label":"Option A","value":520},{"label":"Option B","value":430}]}```
Choose one positive finite max at least as large as every value. For subjectiveratings, explain the scale in description and use valueLabel for labels such as"Very good". Do not invent measurements or imply that ratings are measured facts.Write max before items so the preview can render progressively. Keep sourcecitations in nearby prose. Use plain text inside JSON strings.While a response streams, the renderer shows a placeholder, then validated complete items as they arrive. Write chart type/configuration before data to allow an early preview. Source stays behind View source during streaming. Invalid payloads remaining after the response finishes fall back to source.
Template: Embed code block
Section titled “Template: Embed code block”Use this when you want the model to embed an external link (video, social post, repository) using the embed fenced code block.
Return only a single fenced markdown code block with the language `embed`.Do not include any explanation.
Simple mode — just a URL:\`\`\`embedhttps://youtube.com/watch?v=VIDEO_ID\`\`\`
With options:\`\`\`embedurl: https://youtube.com/watch?v=VIDEO_IDstart: 45\`\`\`
Supported platforms with rich rendering: YouTube, Vimeo, X/Twitter, Reddit, GitHub, Stack Overflow, Hacker News, LinkedIn, Spotify.Any other URL renders as a generic link preview card.Example output
Section titled “Example output”https://github.com/Rheosoph/flow-likeTemplate: Map code block
Section titled “Template: Map code block”Use this when you want the model to display locations on a map using the map fenced code block.
Return only a single fenced markdown code block with the language `map`.Do not include any explanation.
Single location:\`\`\`maplat: 48.1351lng: 11.5820label: Munich Officezoom: 14\`\`\`
Multiple locations (CSV):\`\`\`maptitle: Deployment Regionszoom: 4---lat,lng,label,color48.1351,11.5820,EU-West,blue37.7749,-122.4194,US-West,green35.6762,139.6503,AP-Northeast,orange\`\`\`
Multiple locations (JSON):\`\`\`map{ "zoom": 4, "markers": [ { "lat": 48.1351, "lng": 11.5820, "label": "EU-West", "color": "blue" }, { "lat": 37.7749, "lng": -122.4194, "label": "US-West", "color": "green" } ]}\`\`\`
Route between locations:\`\`\`maptype: routemode: driving---lat,lng,label48.1351,11.5820,Start: Office48.2082,16.3738,Stop: Vienna47.4979,19.0402,End: Budapest\`\`\`
Always provide lat and lng as decimal degrees. Label and color are optional.Example output
Section titled “Example output”lat: 48.1351lng: 11.5820label: Rheosoph Officezoom: 14Template: Callout / admonition blocks
Section titled “Template: Callout / admonition blocks”Use this when you want the model to highlight important information using :::type directive blocks.
Use callout blocks to highlight important information:
:::infoInformational message — neutral context, stats, metadata.:::
:::successPositive outcome — checks passed, deployment succeeded, validation complete.:::
:::warningNon-critical issue — degraded performance, partial results, approaching limits.:::
:::errorCritical failure — node failed, connection lost, validation blocked.:::
:::tipSuggestion or optimization — performance hints, best practices, shortcuts.:::
Custom title::::warning Data ResidencyContent crosses EU boundary. Review settings.:::
Callouts support full markdown inside: **bold**, `code`, [links](url), and nested code blocks.Supported types
Section titled “Supported types”| Type | Icon | Color | Use Case |
|---|---|---|---|
info | ℹ️ | Blue | Neutral informational messages |
warning | ⚠️ | Amber | Non-critical warnings, degraded results |
error | ❌ | Red | Failures, errors, blockers |
success | ✓ | Green | Passed checks, successful completions |
tip | 💡 | Purple | Suggestions, optimizations, best practices |
Template: Spoiler / hidden content
Section titled “Template: Spoiler / hidden content”Use this when the model should include hidden or sensitive content that the user reveals on click.
Inline spoiler (for sensitive values):The password is ||hunter2|| and should be changed.
Block spoiler (for collapsible verbose content)::::spoiler Raw API Response\`\`\`json{ "data": "..." }\`\`\`:::
Use inline spoilers for: API keys, passwords, PII, short sensitive values.Use block spoilers for: verbose logs, large JSON payloads, debug output, stack traces.Recommended prompt endings
Section titled “Recommended prompt endings”These work well as suffixes on your system prompt or instruction node:
Return markdown only
Section titled “Return markdown only”Return only the final markdown output. Do not explain your reasoning.Force a single preview block
Section titled “Force a single preview block”Return exactly one fenced chart block and nothing else.Keep it parser-safe
Section titled “Keep it parser-safe”Do not add bullet points, notes, or commentary outside the fenced code block.Do not use tabs.Do not add trailing commas inside JSON.Supported render targets
Section titled “Supported render targets”For the markdown preview path, the Flow-Like-specific render targets are:
nivo: interactive Nivo chartsplotly: interactive Plotly chartsgallery: images with alt text, captions, credits, and optional linksrecommendations: ranked option cards with optional images and specificationscomparison: bars with an explicit shared maximum and optional value labelsembed: external content embeds (YouTube, GitHub, generic links)map: interactive maps with markers and routes:::info/:::warning/:::error/:::success/:::tip: callout/admonition blocks:::spoiler: collapsible spoiler blocks||text||: inline spoilers- plain markdown
Separately, A2UI also supports structured markdown, nivoChart, and plotlyChart components, but that is a different rendering path than the markdown chart preview.