Skip to content

Task Workflow 🟑 BETA

A task in botautotask moves through classification, compilation, execution and approval using a fixed set of registered routes.

Task Workflow

Developer guide map

The Three Steps

Step Route Owner
Classify intent POST /api/autotask/classify intent_classifier
Compile plan POST /api/autotask/compile intent_compiler
Execute plan POST /api/autotask/execute execution

POST /api/autotask/create-and-execute combines compilation and execution in one call.

Example Workflow

  1. Submit an intent to the classify route.
  2. Compile the selected intent into a task manifest.
  3. Execute the plan; sources and tables are persisted by the task handlers.
  4. Track runs with GET /api/autotask/tasks and GET /api/autotask/stats.

Error Handling

Task output is written to app logs through /api/app-logs*; the client log route accepts browser-side records. Failed execution is visible in task state, not in a separate undocumented store.

Approval Requests

Decisions and approvals are submitted through POST /api/autotask/decide and POST /api/autotask/tasks/:task_id/approve; a task can be cancelled with POST /api/autotask/tasks/:task_id/cancel.

Actions Requiring Approval

An action is approval-gated when the safety layer marks it as such. The approval is a task-state transition, not a prompt-only instruction.

Limits

  • Only the routes registered in botautotask/src/api.rs are available.
  • A task cannot execute an action with no compiled source or tool.
  • Consent and approval are separate mechanisms; one does not imply the other.

Next Steps