Run a queue-backed agent
Start an agent that listens on a room queue:support-jobs queue.
Send work into the queue
Once the agent is running, enqueue a job:- the queue holds the work item
- the agent consumes it
- the agent runs without needing a live chat message
Schedule recurring work
Scheduled tasks enqueue work on a cron schedule. Add a task that sends one job into the same queue every day:support-jobs queue in myroom.
List scheduled tasks:
How queues and scheduled tasks fit together
- Queues are the delivery mechanism for asynchronous work
- Scheduled tasks are the trigger that enqueues work on a schedule
- Agents or services consume the queued work
Room scope and project scope
Queue operations are room-level operations. Scheduled tasks are managed at the project level, but they usually target a queue for a specific room. That is why the scheduled-task commands take both a queue and an optional--room.
Related guides
- Queues API: room-level queue operations
- Process Agents: run one agent across chat, queue, mail, and toolkit channels
- Projects > Scheduled Tasks: create and manage scheduled tasks at the project level
- Deploy a Process Agent: deployment pattern that includes scheduled work
- CLI Reference: full queue and scheduled-task command reference