Skip to main content
Agentic workflow includes a built-in business scheduler. You can use it to schedule a agentic workflow or an agent to run at a later time. Many business scenarios require schedule execution. For example:
  • Example 1
  • Example 2
  • Example 3
TEXT
Schedule this Helpdesk monitoring agentic workflow to run every weekday at 7 AM.

Scheduling a agentic workflow

To make a agentic workflow schedulable, enable the schedulable option in the @flow decorator:
Python
@flow(
        name = "alert_helpdesk_flow",
        input_schema=Product,
        output_schema=Message,
        schedulable=True
    )
After enabling this option, you can schedule the agentic workflow using a natural language command like:
TEXT
I want to schedule a call to alert_helpdesk_floeryday at 7am EST for 3 days

Scheduling an agent

Agents aren’t directly schedulable. Instead, use the agent_run tool to schedule an agent with a request. First, add the tool to an agent. For more information, see agent_scheduler. The agent_run tool is a agentic workflow with a single agent node that calls the specified agent with a request. After adding the tool, schedule the agent like this:
TEXT
I want to schedule agent "<agent id>" to run every day at 9 AM.