Queue
Manage your agent's task queue — add items manually, from emails, or from other agents, and process them on schedule.
Tip: The queue is managed through the UI and automated via schedules. Your agent processes queue items automatically when a schedule is enabled — you can also click Process on any item to start it manually.
Overview
The Queue is a prioritized task list that agents process sequentially. Each agent has its own queue where items wait to be handled. The queue is the foundation of autonomous agent operation — it's how agents know what to work on next.
How Items Enter the Queue
Items can be added to the queue from several sources:
| Source | How It Works |
|---|---|
| Manual | Add items directly through the Queue tab UI |
| When auto-queue is enabled, incoming emails become queue items automatically | |
| Scheduled Jobs | Time-based triggers inject prompts into the queue at configured times — see Schedule |
| Other agents | An agent sends an email to this agent → auto-queued for processing |
Adding Items Manually
- Open the Queue tab (accessible from the agent page or sidebar)
- Click Add Item
- Enter a description of the task
- The item appears at the bottom of the queue
From Email
When Auto-Queue Incoming Emails is enabled in the Mail settings:
- An email arrives at the agent's address
- The email is automatically added as a queue item
- The item includes the email subject, sender, and content
- On the next processing run, the agent reads the email and acts on it
The Queue Interface
The Queue tab shows all pending and completed items:
Drag-and-Drop Ordering
Drag items to reorder them. The agent processes items from top to bottom, so reordering lets you prioritize what gets handled first.
Bulk Actions
Select multiple items for bulk operations:
- Delete selected — Remove items from the queue
- Show/Hide completed — Toggle visibility of processed items
How Processing Works
Queue processing can be triggered two ways:
Manual Processing
Click the Process button on a queue item to start processing it immediately. The agent:
- Takes the top item from the queue
- Creates a dedicated chat session for the task
- Reads the item content and acts on it using all available tools
- Marks the item as completed
- Moves to the next item
Auto Processing
When auto processing is configured, the system automatically processes the queue at regular intervals:
- The cron system triggers at the scheduled time
- A sandbox is provisioned automatically (no human needed)
- The agent processes items sequentially — up to the configured maximum per run
- Each item gets its own chat session for full traceability
- After processing, the sandbox stays warm for the next run
Processing Limits
You can configure the maximum number of items per run in the queue settings. This prevents a single run from consuming too many resources if the queue has hundreds of items.
Each item also has a time budget — if processing takes too long, the agent gracefully wraps up the current item and moves on.
Queue Settings
Access queue settings to configure processing behavior:
| Setting | What It Controls |
|---|---|
| Schedule interval | How often the agent automatically processes (5 min to 24 hours) |
| Max items per run | Maximum queue items to process in a single scheduled run |
| Auto-queue emails | Whether incoming emails are added to the queue automatically |
| Processing order | Items are processed top-to-bottom (drag to reorder) |
Auto Processing Interval
The interval determines how often the agent automatically wakes up and processes its queue:
- Every 5 minutes — Near real-time processing
- Every 15 minutes — Good balance of responsiveness and efficiency
- Every hour — For batch-style processing
- Every 24 hours — Daily digest/report agents
- Custom intervals — Set any interval that fits your workflow
When auto processing is disabled, items accumulate in the queue until you manually trigger processing.
Queue Item Lifecycle
Added (manual / email / agent)
→ Pending (waiting in queue)
→ Processing (agent is working on it)
→ Completed ✓
Completed items remain visible (toggle with Show/Hide) so you can review what was processed and when.
Tips & Best Practices
- Use the queue for repeatable work — Anything the agent does regularly (process emails, generate reports, check data) should flow through the queue
- Prioritize with drag-and-drop — Put urgent items at the top
- Combine with auto-queue — Email + auto-queue + schedule = fully autonomous task processing
- Set reasonable limits — Configure max items per run to prevent resource exhaustion on large queues
- Review completed items — Check the processed items periodically to ensure quality
- Clean up regularly — Delete completed items you've reviewed to keep the queue manageable
What's Next?
- Schedule — Create time-based triggers that inject prompts into the queue
- Runs & Scheduling — Understand run types, status tracking, and scheduling details
- Mail — Configure the email integration that feeds the queue
- Agent Settings — Configure sandbox resolution, timeout, and other settings