Schedule a run

A schedule starts a run of an agent, task or workflow at set times.

Before you start

You need a project with an agent. See Create an agent.

Create a schedule

  1. Add the agent:
    agents/stand-up-host.ts
    import { agent } from "veryfront/agent"; export default agent({  id: "stand-up-host",  name: "Stand-up host",  system: "Write three short stand-up questions for the team: what they did, what they will do, what blocks them. Nothing else.",});
  2. Add the schedule:
    schedules/weekday-standup.ts
    import { schedule } from "veryfront/schedule"; export default schedule({  id: "weekday-standup",  name: "Weekday stand-up",  schedule: "30 8 * * 1-5",  timezone: "UTC",  target: { kind: "agent", id: "stand-up-host", conversationMode: "create_new" },  agentMessage: { prompt: "Write today's stand-up questions." },});
  3. Run it on your machine. It prints three questions:
    Shell
    npx veryfront schedule run weekday-standup
  4. Push the project. The schedule waits in Orchestration > Triggers as Source-defined.
  5. Open the ⋯ menu on its row.
  6. Click Activate.
  7. Open the ⋯ menu in the page's header.
  8. Click Run now. You should now see the run read Completed.

Try it in a sandbox

  1. Create a project

  2. Add the agent

  3. Add the schedule

  4. Push the project

  5. Check it

Try it out

Next steps