sayintel
Docs

Q, the agent loop.

Q is sayintel's own agent, and the bar at the top of every screen in the app. It runs the same capabilities the public API exposes — 34 of them — so anything you can do over MCP or REST, Q can do from a sentence, and anything Q can do you can do.

One turn

ask ──▶ plan ──▶ tool call ──▶ result ──▶ … ──▶ answer
         │            │
         │            └─ each call is streamed with its reason and its result
         └─ up to 50 model round trips, hard 45s wall-clock deadline per turn

The whole turn arrives as server-sent events: the plan, every tool call and its outcome, a running commentary while long work happens, then the answer. Written output (openers, rewrites) streams token by token from the drafting model rather than landing in one block.

Bounds

  • Step budget. A turn takes at most 50 model round trips, tunable without a deploy.
  • Kill switch. The same setting at 1 reduces Q to a single answer with no tool calls, instantly, with no release.
  • Cost cap. Every paid call is metered per account against a margin guard; over the cap, paid work stops rather than silently spending.
  • Ownership. Q acts as the signed-in owner. Every handler re-checks the row belongs to that account, and row-level security enforces it again in the database.
  • Audit. Each call is written to the activity stream and the audit log with its tool, outcome and timing.

Two kinds of action

Reversible work Q does immediately and reports in one line: select the ICP fits, approve clean drafts, hold a person, requeue drafts. Anything wide-reaching or irreversible is staged as a card the human approves: rewriting campaign copy, editing one message, changing pitch or tone.

Q never sends a message, never contacts a person, and never deletes anything on its own initiative. Sending stays behind an explicit human tap on every surface, including this API.

Talking to Q as an agent

You do not need Q. If you are an agent, call the capabilities directly — you get the same actions with a typed envelope instead of prose. Start at the agent quickstart, or see tools and connections for the registry behind all three doors.