Creating a Story
Stories are created directly from a chat conversation. Simply ask the agent to write one:“Write a story about our new user growth since the last release.” “Create a story summarizing MRR trends over the past quarter.”The agent will:
- Run the relevant queries against your data.
- Compose a structured document with narrative text, charts, and tables embedded inline.
- Open the story in a side panel next to the chat thread.

Editing a Story
Once a story is open in the side panel, click the pencil icon to switch to edit mode. The editor is Notion-style: every block (text, chart, table) can be dragged and reordered using the grip handle on the left. You can edit text in rich markdown, rearrange sections, and remove blocks you don’t need. When you’re done, click Save: this creates a new version of the story. To discard your changes, click Cancel. The owner and the people the story is shared with as Can edit (see Sharing a Story) can edit it, by hand or by asking the agent.Editing with others
Only one person, or one agent run, edits a story at a time. While someone is editing, others see a banner such as “Alex is editing this story. You can edit it once they are done.” and editing is locked for them. The same applies to your own edits in another tab or another chat. When the agent of the chat you are in is the one editing, the banner reads “nao is updating this story…”. The lock is renewed while you edit or while the agent works on the story, and released after 10 minutes of inactivity, so a forgotten tab never blocks everyone. When someone saves a new version, the story reloads for the others with an Updated by [name] notice. If two saves collide, the second one is turned down instead of overwriting the first.Renaming a story
The story owner can rename a story from its title in the header, without opening the editor. Click the title, type a new one, and the change is saved in place. The new title propagates everywhere the story is referenced - other story pages and the chat cards that link to it - and the story’s link stays the same, so shared URLs keep working.Arranging charts into a grid
Charts and tables don’t have to stack one per row. In edit mode, each chart and table has a drag handle next to its edit pencil:- Move a block by dragging its handle anywhere in the story.
- Put blocks side by side by dropping one beside another - they form a row. Drop a third into an existing row to add it.
- Resize by dragging the divider between two charts in a row. Widths snap to clean fractions (halves, thirds, quarters), and charts in a row line up at the same height with aligned baselines. Labels and legends adapt as columns get narrower.
Selecting multiple blocks
To move several blocks at once, select them first:- Cmd/Ctrl-click a block to toggle it in the selection.
- Shift-click to select a range.
- Esc, or a plain click, clears the selection.
Tabs
A story can be split into tabs so one report can hold several views without becoming a long scroll. Tabs are written with<tabs> markup:
Filters
Interactive filters are a beta feature and are off by default. Enable them on your deployment by setting
BETA_STORY_FILTERS_ENABLED=true. Until then, the filter controls and the agent’s filter tooling are hidden.Declaring a filter
A filter is declared with a<filter /> tag. Five types are available:
For
select and multi_select, give the options either from your data or as a fixed list:
value and point the filter to it with options_query_id.
Options loaded from your data follow each viewer’s data access. Hardcoded options don’t, so viewers restricted by row-level security see no options in a filter that only has hardcoded options. Keep hardcoded lists for fixed values that don’t come from your data.
When options come from table+column and your project has more than one database, add database_id so nao loads the options from the right connection.
Options loaded from your data are searchable: the dropdown has a search box, and when a column has more than 100 distinct values, typing searches the full list instead of the first 100. Option lists are cached with the story and refreshed in the background. Add allow_custom="true" to a select or multi_select to let readers type a value that is not in the list.
A multi_select dropdown also has quick actions:
- Select all adds every value currently shown, so after a search it adds the matches. On a long list that is only partly loaded, it stays disabled until you search.
- Deselect all clears the selection and goes back to All.
- Only: hover a value (or highlight it with the keyboard) and click Only to keep just that value.
Cascading filters
For hierarchies such as category > sub-category, adddepends_on with the parent filter’s ID to the child select or multi_select. Once the parent has a selection, the child only lists the values that match it:
Wiring a filter into SQL
A chart or table query opts into a filter with a{% filter <id> %} ... {% endfilter %} block, and drops the selected value in with {{ filters.<id>.sql }}:
{{ filters.<id>.sql }}expands to the selected value(s), safely quoted.- For
text, it expands to the exact value: compare it with=(AND user_id = {{ filters.user.sql }}). - For
search, it expands to'%value%', already wrapped and escaped: compare it withLIKEorILIKE(AND name ILIKE {{ filters.q.sql }}), never=orIN. - For
date_range, the single{{ filters.<id>.sql }}already expands to'start' AND 'end', so pair it withBETWEEN- don’t reach for.start,.end, or.value. - When a filter has no selection, its whole
{% filter %}block is stripped before the query runs, so the query still works with nothing selected. Changing a selection re-renders and re-executes the affected charts and tables, and the same applies on live-story refreshes.
Filters on semantic-layer charts
Charts built from your semantic layer don’t use{% filter %} SQL blocks. Instead, bind the filter to a dimension:
metric="<metric>" to choose which metric lists them). A date_range filter on metric_time sets the query’s start and end time. When some charts can’t be filtered by the dimension, the filter bar says so under the filter.
Checking which charts a filter reached
- Hover a filter to fade the charts it cannot change, even before you pick a value.
- A funnel icon at the right of each chart shows that the active filters reached it. Its tooltip lists the applied values. Amber means a filter was skipped for that chart, red means it failed.
- When a filtered query fails, the other charts still update. The failing chart shows a callout with the database error and a link to the query, instead of silently showing its saved data.
- In the chart editor’s query pane, switch between Saved query and As run in story to see the
whereconstraints the filters add (tagged “story filter”) and the compiled SQL. Readers who can’t edit get the same view from the</>button.
Parameters
A parameter lets readers switch what semantic-layer charts show, such as the metric or the time grain, from the same filter bar:type="metric" for a metric and type="value" for anything else. The agent writes the semantic query with {{ params.<id> }} placeholders, and the same placeholders work in chart attributes, titles, and text ({{ params.<id>.label }} gives the option’s label). A parameter with up to 3 options shows as a toggle, and one with more as a dropdown. Clear in the filter bar resets filters and puts parameters back to their default.
Picking a date range
Adate_range filter opens a popover with:
- Quick select presets: Today, Yesterday, Last 7 days, Last 30 days, This month, Last month, This quarter, Year to date, Last 12 months, Last year.
- A two-month calendar (one month on mobile) with Start date and End date fields for a custom range.
- Cancel and Apply buttons. The filter only changes when you click Apply.
Versions
Every time a story is saved, nao creates a new version. Open the Version history menu in the story header to browse them, newest first and grouped by day. Each entry shows who made the version and where it came from: the story’s original chat, a quick question, another chat (by its title), a manual edit, the nao agent, MCP, or a copy. When a version came from one of your own chats, hover it and click Open chat to jump to the conversation that produced it. Chats of other people are never opened from the history. Select a version to view it. When viewing an older version, people who can edit the story get a Restore button to roll back to it (creating a new version from it). Recipients who receive a shared link always see the latest version automatically.Duplicating a story
Duplicate is in the story header menu. It works on classic and custom stories, and creates a copy named Copy of [title], numbered (2), (3), and so on when that name is taken. The copy is a frozen snapshot of the version you are viewing (the latest version from the library): it keeps the same queries, rows, and narrative text, and for custom stories the shared saved state plus your own personal state. The chat, shares, scheduled deliveries, and favorites of the original are not copied. A copy of a live story stays live, with the same refresh schedule. The copy lands in your private folder, or next to the original when the original sits in one of your private folders, so it is never shared on copy. Project viewers can’t duplicate stories. Copying a story you don’t own needs the story creation feature of your user group, and copying a custom story needs custom story creation. A copy is a standalone story: it is not attached to a chat. To keep working on it with the agent, use Open in a chat from the story chat button.Editing Charts
Hover over any chart block and click the pencil icon in its top-right corner to open the chart editor. You can change the chart type, axes, series, and formatting, and edit the SQL behind it. Saving creates a new story version. See Editing a chart for the full editor reference.Editing the Story Code
The story side panel has a Code view that shows the raw markdown behind the story. This view is now editable: you can modify text, chart tags, table tags, and grid blocks directly. The editor validates your changes in real-time:- Missing required chart attributes (
query_id,chart_type,x_axis_key) - Invalid chart type or axis type values
- Malformed or empty
seriesdefinitions - Missing
query_idon table blocks - Unterminated or unclosed tags
- Out-of-range
colson grid blocks
Adding a Chart from the Thread
When the agent produces a chart in the chat thread, you can embed it directly into a story:- Open the story side panel.
- Ask the agent to add the chart: “Add this chart to the story.”
Sharing a Story
Click the share icon in the story header to open sharing settings. You can share with:Entire project
All members of your nao project can open the story via the shared link.
Specific people
Search by name or email to select individual team members, or pick a
user group to share with everyone in it.
- Can view - see the story and ask questions about it.
- Can edit - change the story by hand or from their own chats with the agent. Editors never see the queries of the owner’s chat: the agent works from the story itself.
- Copy link - grab the URL again.
- Add or remove people and groups, or change their role, then click Save.
- Stop sharing - revoke access and disable the link entirely.
- The new owner gets the story with its link, sharing, versions, live settings, and folder, and is notified.
- The story leaves its chat and becomes a standalone story of the new owner, with the data of every version.
- The previous owner keeps access only if the story stays shared with them, through the project or one of their groups. Opening the story from the original chat shows that it moved and who owns it now.
- A story can’t be transferred while someone is editing it.
Row-level security on stories
Shared stories apply row-level security per viewer: a story never shows a viewer rows they can’t query themselves. The same goes for column-level security and table access. A viewer is restricted when their user groups give them a row rule other than All records on any table, a hidden field, or tables outside their Data access. Admins are not exempt. The owner, and viewers without restrictions, see the story as the owner saved it. For a restricted viewer, the story is rebuilt with their own access:- Every query of the story, in classic and custom stories, runs as the viewer, and so do filters, filter options and downloads. Two viewers of the same story can see different numbers.
- The owner’s text is removed. In a classic story, the agent rewrites it from the viewer’s rows. In a custom story, the narrative is rewritten only when Regenerate the narrative is on, and stays empty otherwise. Chart and table titles written by the owner are removed too.
- A block whose query the viewer can’t run shows Data unavailable with your current access. The whole query is refused, so a block that joins one table the viewer can’t access shows nothing, even if they can read the other tables.
- A classic story shows the banner Some content in this story isn’t available with your current data access.
- In the Stories Library, the card of someone else’s story shows no KPI preview, and the thumbnail of a custom story is drawn from the viewer’s own data.
- Standalone stories (duplicated stories, stories created from an MCP client, or transferred stories) are hidden from restricted viewers. Opening one shows You don’t have access to this story.
Sharing, forking, and text selection
Once a chat or story is shared, recipients can branch from it or ask targeted follow-ups without breaking the original. The same selection-based “Ask” flow also works on your own (non-shared) chats and stories. Continue chat On a shared chat, Continue chat opens a new forked chat that contains the full shared history. Each click creates a fresh fork, so the original conversation is never modified. The fork copies the messages only: stories that belong to the origin chat are not duplicated into your Stories library. Discuss story On a shared story, Discuss story opens a new chat with the story embedded at the top in editable form, ready to be questioned or refined. Ask about a selection Select any text inside a chat or a story and an Ask button appears above the selection. Clicking it opens an inline frame where you can quote the selection and ask a follow-up about that specific passage:- The quoted text shows up as a pending citation in the input until you send the question, so you can see exactly what the agent will see.
- Once sent, the answer keeps a Go to original selection link that jumps back to the exact passage in the source chat or story.
- The frame leaves a small persistent indicator when collapsed so you can reopen it later.

- Your own chats
- Your own stories
- Shared chats and stories you have received
- The admin Chats replay view (asking about a past chat for debugging or follow-up)
Asking questions from a story
The chat button in the story header reads Edit story for the owner and editors, and Ask story for everyone else. Its dropdown has:- Mention story - start a new chat about this story, with the story referenced in it.
- Open in a chat - for the owner of a standalone story (one with no chat, such as a copy or a story created over MCP): attach a chat to it so you can edit it there.
- Quick questions - your past quick-question chats on this story.
- Mentions - chats that mention this story.
Feedback
Anyone who can view a story can rate it with the thumbs up and thumbs down buttons next to the favorite star in the story header. They appear on the full story page, shared stories, custom stories, and the chat side panel. Clicking a thumb opens a dialog where you can add an optional message. Each user has one vote per story: voting again replaces your previous vote. The story owner receives a notification linking to the story (not for their own votes). Admins can review votes and messages in Asset analytics.Exporting stories
Stories can be exported to PDF, HTML, or Markdown from the Download menu in the story header. Export works on your own stories and on shared stories, and you can pick any existing version from the version navigator before exporting. PDF- A4 page size, formatted for printing.
- Charts are rendered as vector SVG so they stay sharp at any zoom level.
- Tables are included up to 10 rows per table to keep the document readable; longer tables are truncated in the PDF (the full dataset is still available in the HTML export and in the live story).
- Self-contained single file: no external assets, works offline.
- Interactive chart tooltips are preserved, so recipients can hover data points in their browser.
- Styled for print, so File -> Print in the browser produces a clean printed copy without separate theming.
.md file) and Copy as Markdown (copies it to the clipboard, with an HTML version so Notion and Google Docs paste it as formatted blocks). Custom stories export to PDF and HTML only.
- Tabs become headings, and text is kept as written.
- Tables become Markdown tables.
- Charts and maps become PNG images linked from your nao instance, so they still show after importing into Notion. Anyone with the image link can open it.
Live Stories
By default, a story is a snapshot: charts and tables freeze the data that was returned when the story was created. Live stories keep the story connected to the underlying queries so the numbers refresh on a schedule (or on demand) without anyone having to rebuild the report.Enabling live mode
- Open the story in the side panel.
- Click the settings icon in the story header.
- Toggle Live mode on.
- Pick a refresh strategy (see below).
- Save.
Refresh strategies
When live mode is on, choose how freshness should work:- Manual refresh only - the story keeps its last refreshed values until someone clicks the refresh button in the header.
- No cache (always fresh) - queries re-run every time the story is opened. Best for low-volume stories where you always want live numbers; avoid on expensive queries.
- Scheduled refresh presets - every 5 minutes, hourly, daily, weekly, or monthly.
- Custom schedule - type a schedule in plain English (e.g. “every weekday at 8am”, “first Monday of the month”) and nao converts it to cron, or paste a raw cron expression directly.
Scheduled delivery
A live story can send its latest version to people automatically. In the live story settings dialog, turn on Scheduled delivery (“Automatically send the latest version of this story”), then choose:- Timing - Whenever the story refreshes, or On a schedule: Every hour, Every day at 8am, Every Monday at 8am, Monthly (1st at 8am), or Custom schedule… (type it in plain English and click Convert, or enter a raw cron expression).
- Channels - Email and Slack. Slack is disabled until Slack is connected.
- Recipients - by default, everyone with access if the story is shared, otherwise all project members. Or pick Specific members & groups: custom user groups and individual people. Groups resolve to their current members at send time.
Refreshing the narrative
For live stories, you can also enable Regenerate the narrative in the same settings panel. When turned on, nao rewrites the text blocks with the updated numbers while keeping the layout intact:- Section titles stay in place.
- Charts and tables stay embedded in the same positions.
- Only the prose around them is rewritten so the commentary matches the new data.
Access and refresh on shared stories
Live refresh respects the same access rules as the share itself:- For project-wide shares, any project member can trigger a manual refresh.
- For specific-people shares, only the people on the access list can refresh.
- Scheduled refreshes run with the story owner’s permissions.
- Scheduled delivery is rebuilt for each recipient restricted by row-level security, so their email or PDF only holds data they can query. Other recipients get the owner’s refreshed copy. A recipient whose copy fails doesn’t block the others.
Certified stories
Admins can certify a story to mark it as a trusted, reviewed report. Certification is a visible quality signal for everyone with access.- Certify or remove certification from the story card’s menu or the story header menu (next to Download). The action is only shown to admins; any member can see a story’s certification status.
- A certified story shows a Certified badge (an amber shield) in the top-right of its card. Hovering it shows who certified it (“Certified by ”).
- On the Stories page, use Filters -> Show only Certified to list only certified stories.
Story theme
Admins can give every story in the project their brand: logo, colours, fonts, and header. See Story theme.Custom stories
Beyond classic stories, the agent can build custom stories: interactive data apps such as slide decks, simulators, or bespoke dashboards. See Custom stories.Stories Library
The Stories Library is your central hub for all stories. Access it by clicking Stories in the left sidebar.
Toolbar
- Search by title. Press
/to focus the search box. Searching or filtering shows a flat Results list from the current folder and its subfolders. Pasting a story ID finds that story from anywhere. - Filters - Show only Certified, Live, Favorites, Shared, or Archived; Type (Any type, Custom, or Markdown); Created by (Anyone, Me, or Others). Active filters appear as removable chips, with Clear all to reset them.
- Sort - Last updated (the default, newest first), Date created, Views, Name, or Owner, in either direction (Newest or Oldest first, A to Z or Z to A, Most or Least viewed first).
- Select - enter selection mode.
- Grid / list toggle - thumbnail cards or a list. The list view has a sortable Views column.
Folders
Organize stories into folders to keep the library tidy:- Create one with New folder in the explorer.
- Each folder card has a menu with Modify (rename), Move to…, Archive, and Delete. Archived folders offer Restore folder.
- Folders can be nested. Navigate down with a click and back up with the breadcrumb at the top of the explorer.
- Drag and drop stories and folders onto another folder, or onto a breadcrumb level, to move them.
- Move to folder is also in each story card’s options menu, in the story header menu, and on the story card in a chat. It is available to the story’s owner and admins, and not while the agent is editing the story.
Pinned and Favorites
Two sections at the top of the library promote the items you reach for most. Each one is collapsible and only appears when it has content:- Favorites - favorite any story or folder for yourself. Favorites are per-user, so only you see yours.
- Pinned - pinned stories surface at the top for everyone with access. Pinning is admin-only and applies to shared stories.
Bulk actions
Click Select in the toolbar to enter selection mode, then tick multiple stories and folders. A bar appears at the bottom with the number selected and the actions:- New chat - start a chat that references the selected stories.
- Move - pick a destination folder for the selected stories and folders.
- Archive - archive the selection. When viewing archived items, Restore brings them back.