Quick Start: Agent with Schedule
Give your agent the ability to create, list, update, and cancel schedules:
User: “Me chama amanha as 9h pra eu enviar o relatorio”
Agent: uses create_schedule tool — Schedule “Lembrete relatorio” created. I’ll remind you tomorrow at 09:00.
User: “Quais lembretes eu tenho?”
Agent: uses list_schedules tool — You have 2 active schedules: …
User: “Cancela o lembrete do relatorio”
Agent: uses cancel_schedule tool — Schedule cancelled.
Agent Tools
createScheduleTools() returns 4 tools that the LLM can invoke:
| Tool | Description |
|---|---|
create_schedule | Create a new scheduled execution |
list_schedules | List all active schedules for this agent |
update_schedule | Update an existing schedule |
cancel_schedule | Cancel (delete) a schedule |
Programmatic API
Use theschedule object directly in your code:
Create a Schedule
List Schedules
Update a Schedule
Cancel a Schedule
Schedule Types
Interval
Runs every N minutes:Daily
Runs at a specific time every day:Cron
Full cron expression support:| Expression | Description |
|---|---|
0 9 * * * | Every day at 9am |
0 9 * * MON-FRI | Weekdays at 9am |
0 9 * * MON | Every Monday at 9am |
0 */2 * * * | Every 2 hours |
0 9,18 * * * | At 9am and 6pm |
Configuration Options
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | Yes | — | Schedule name |
type | 'interval' | 'daily' | 'cron' | Yes | — | Schedule type |
interval | number | When type is interval | — | Minutes between executions (1-43200) |
time | string | When type is daily | — | Time in HH:mm format |
cron | string | When type is cron | — | Cron expression |
timezone | string | No | America/Sao_Paulo | Timezone |
message | string | Yes | — | Message sent to the agent on each execution |
maxExecutions | number | No | 0 (unlimited) | Max number of executions. Use 1 for one-time reminders |
metadata | object | No | — | Custom metadata |
Using in Workflows
How It Works
Schedules are powered by the Runflow trigger engine:- SDK calls
POST /runtime/v1/scheduleson the Runflow API - API creates a
SCHEDULERtype trigger in the trigger engine - Trigger engine uses Redis key expiration events to fire at the right time
- On each execution, the trigger engine sends the
messageto the agent - Agent processes the message and generates a response
Next Steps
Web Search
Give agents internet search capabilities
Connectors
Connect to external APIs