// PART 02
Assistant
The assistant is the active side of Chat: it does not only answer, it acts. This page describes the four mechanisms it uses — suggestions, response formats, app actions and UI plans — and the checks that decide what it is allowed to do.
Suggestions
Suggestion chips are declared by the bot in its start.bas script with ADD_SUGGESTION and rendered under the composer. They survive reloads: if the in-memory set is empty for a conversation that already has history, the server replays the script’s suggestion lines. Admin-gated suggestions can be declared with a role check in the script.
Response format switchers
Switchers are persistent toggles that control how the assistant formats answers. Unlike suggestions they stay active until you switch them off, and several can be combined.
| ID | Effect |
|---|---|
tables |
Structured HTML tables |
infographic |
Visual SVG and progress-bar representations |
cards |
Card-based layout with borders and shadows |
list |
Bulleted and numbered lists |
comparison |
Side-by-side comparison grid |
timeline |
Chronological timeline |
markdown |
Standard CommonMark formatting |
chart |
SVG charts (line, bar, pie, area) with axes and legends |
A bot can add its own with ADD SWITCHER "instruction" AS "Label"; the active instructions are prepended to your message so the model formats accordingly. Each format has a distinct colour so you can see at a glance which are on.
App actions
For data operations the assistant emits a single JSON call as the first line of its reply, for example {"__api_call__": {"name": "docs.export", "params": {"file_id": "...", "format": "pdf"}}}. The server looks the verb up in the app action model, executes it — through a curated handler or a bound REST route — and answers with the result plus, where it makes sense, a deep link that becomes an Open button for the relevant app.
| Rule | Effect |
|---|---|
| Read vs write | The HTTP method of the bound endpoint decides; writes go through consent when enabled |
| Admin-only verbs | 24 verbs require the admin role; they are filtered out of discovery for non-admins and refused at execution, fail-closed |
| Navigation-only verbs | Some verbs only open the app at a record; they perform no server mutation |
You never need the verb names — describe what you want. The names matter when reading a reply or diagnosing why a file did not open.
UI plans
For operations that are clicks rather than data, the assistant answers with a plan (__ui_plan__): steps such as open, click, fill, submit against a registry app. The server validates the plan (at most 200 steps, values of at most 500 characters, known apps only) before the browser executes it, and the orchestrator aborts the remaining steps after a hard failure.
Structured questions and plans in the reply
When the assistant needs decisions, the reply can carry a structured question card or an editable plan instead of prose. Steps can be reordered or removed, an approval starts execution, and answered fields are remembered so you are not asked twice.