Task Engine
Delegate complex, multi-step work to the bot. Tasks run in the background with planning, execution, and verification phases — all with full tool access.
How Tasks Work
- Creation — you describe what needs to be done (via chat or admin panel)
- Approval — an admin reviews and approves the task
- Planning — the bot investigates using read-only tools and creates a step-by-step plan
- Execution — each step is executed with full tool access
- Verification — the bot verifies its own work after each step
Creating Tasks
You can create tasks in several ways:
- From chat — ask the bot to create a task: "Create a task to analyze last month's ad spend by campaign"
- From admin panel — go to Admin → Tasks and click Create Task
- From Slack — mention the bot with a task description
Task Lifecycle
| Status | Description |
|---|---|
pending | Created, waiting for approval |
approved | Approved by admin, queued for execution |
executing | Currently running |
paused | Waiting for manual approval on a step |
completed | All steps finished successfully |
completed_with_errors | Finished but some steps had issues |
failed | Unrecoverable error or budget exceeded |
cancelled | Manually cancelled by admin |
Recurring Tasks
Tasks can be set to recur on a schedule. After each completion, the next instance is automatically created and approved.
- Patterns:
daily,weekly,monthly, or any cron expression - Cancel recurrence: stops all future instances from the admin panel
Task Configuration
| Setting | Default | Description |
|---|---|---|
| Token budget | 200,000 | Maximum tokens per task |
| Max steps | 12 | Maximum plan steps |
| Max iterations per step | 15 | Tool call limit per step |
| Max consecutive failures | 3 | Circuit breaker threshold |
Admin Panel
The Admin → Tasks page lets you:
- View all tasks with status, priority, and progress
- Approve or reject pending tasks
- Pause, resume, or cancel running tasks
- View step-by-step execution details and outputs
- Edit pending step descriptions before they execute
- Create new tasks manually