In the CLI and REST API, schedule triggers are referred to as
time triggers. --type time is the value you pass when creating one.Frequencies
Time of day is required for
DAILY, WEEKLY, and MONTHLY triggers. HOURLY triggers do not take a time of day.Create a schedule trigger
1
Open your workspace
Go to app.guild.ai and open the workspace where the agent is installed.
2
Go to Triggers
In the workspace’s left nav, click Triggers under Run, then click Add Trigger.
3
Configure the schedule
Select Scheduled, choose a frequency, and set the time of day (and days of week or month, if applicable).
4
Select an agent and input
Choose the agent the trigger will run, and define the fixed input it receives each time the trigger fires.
5
Name the trigger
Enter a Name, such as
Nightly report. The name is required, up to 255 characters, and labels the trigger in the workspace’s Triggers list.With the CLI
With the public API
Account API keys can createtime triggers through the public API with Create a trigger in a workspace. The key must hold both the workspaces:write and agents:read scopes; a key missing either scope receives a 403. Guild records the API key as the trigger’s creator.
Account API keys can create
time triggers only. webhook and api triggers cannot be created with an account API key.Agent input
Define the input the agent receives each time the trigger fires. Open the Edit Trigger dialog to edit it. On desktop, a schema-driven panel appears on the right side of the dialog, driven by the selected agent’s input schema. On mobile, a text field appears instead.Update a schedule trigger
Related pages
- Event triggers to run an agent when something happens in a connected service
- API triggers to start a run from your own code
- Post a daily digest of untriaged GitHub issues to Slack for a schedule trigger built end to end
guild triggerfor every flag oncreateandupdate