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
- 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.",}); - 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." },}); - Run it on your machine. It prints three questions:
Shell
npx veryfront schedule run weekday-standup - Push the project. The schedule waits in Orchestration > Triggers as Source-defined.
- Open the ⋯ menu on its row.
- Click Activate.
- Open the ⋯ menu in the page's header.
- Click Run now. You should now see the run read Completed.
Try it in a sandbox
Create a project
Add the agent
Add the schedule
Push the project
Check it