Skip to content

App Action Model 🟒 GA

What it is. A verb is the compact description of an operation an app exposes, with its method, path, parameters and returned JSON. The model has two call surfaces: chat and the web UI.

Open it. Read the command catalog under botserver/src/core/bot/api_catalog/ and the plan module under botserver/src/main_module/ui_plan/.

Do this. Confirm the verb exists in the catalog, then use the surface that matches the channel: __api_call__ for chat, __ui_plan__ for the web UI.

Limits. A verb that is not in the catalog cannot be called. Admin-only verbs are filtered for non-admin roles.

What a verb is

A verb names an operation, not a screen. The catalog carries method, path, parameters and the JSON shape returned, so a prompt does not have to embed full endpoint schemas.

The read / write / admin distinction

Class Effect Exposure
Read Returns data Available with the normal role
Write Changes data Available with the normal role
Admin Changes organisation data Marked admin_only and filtered by role

The role is resolved server-side; prompt text alone is never an authorisation check.

A UI plan may open an app by id and target a window. The optional window_id on a step binds the action to one window, so a side-by-side chat and document session cannot steer each other.

Surface 1 β€” chat and WhatsApp: __api_call__

The model emits an __api_call__ block. core/bot/api_catalog/is_api_call_trigger.rs detects it; core/bot/pipeline/api_call/ parses and executes it. Raw REST is not reachable from chat β€” this catalog call is the bridge.

Surface 2 β€” web UI: __ui_plan__ and message type 9

The web surface emits __ui_plan__. botlib/src/message_types.rs names integer 9 as UI_ACTION; the backend validates steps before the shell executor runs them. See Agentic UI Orchestration and WebSocket Protocol.

Why a verb can disappear for a role

The manifest is built after role resolution. An admin-only command is removed for a non-admin user, and the executor enforces the same rule again server-side. This prevents a prompt from exposing an action the user cannot perform.

End-to-end example

  1. The user asks the bot to create a record in chat.
  2. The model selects a catalog verb and emits __api_call__.
  3. The backend validates the role and executes the endpoint.
  4. A structured, summarised JSON result is returned; the model turns it into user-facing text.

For a web UI task, steps 2–4 use __ui_plan__ and the shell executor instead.

Coverage and gaps

Surface Authority Gap rule
Chat and WhatsApp API command catalog Missing verb means the action is unavailable
Web UI App registry and UI plan manifest App not registered means no plan steps
Admin-only RBAC permissions Filtered for non-admin roles

Do not document an endpoint as a verb until it is registered in the catalog.