Start agents manually, on a schedule or from a webhook
Run an agent by hand, set it to repeat with the schedule builder, or give it a private web address that starts a run.
Triggers decide how an agent starts. Every agent can be run by hand. You can add a schedule, a webhook, or both.
Run it manually
- Open the agent.
- In Run now, optionally type an Input.
- Choose Run agent. You are taken to the run's page. The button is disabled while the agent is paused.
Run on a schedule
- Under Triggers, tick On a schedule.
- Under Repeats, choose Every hour, Every day, Weekdays, Every week, Every month or Custom (cron).
- Set the details that appear: Day, Day of month (1 to 28), Hour (0-23) and Minute (0-59).
- Pick a Time zone.
- Optionally fill in Input for scheduled runs.
- Choose Save changes.
A sentence under the form describes the schedule in words, and Next run shows when it will fire. With Custom (cron) you type five fields (minute hour day month weekday); an invalid expression stops you saving. A schedule can fire at most once every 5 minutes.
Run when a web address is called
- Tick When a web address is called (webhook).
- Choose Save changes. The Webhook URL (POST) appears.
- Use Show to reveal it and Copy to copy it.
Send a POST request to that address and the request body becomes the run's input. The call is answered at once with a run id; the work happens in the background. The payload is handed to the agent labelled as untrusted data.
Keep it private. Anyone with the address can start a run. If it leaks, choose Rotate secret and confirm. The old address stops working immediately.
Webhook calls are rate limited per agent. Too many wrong addresses from one place are blocked for a while.
Pause an agent
Choose Pause (then save) in the page header and then Save changes. A paused agent shows a warning banner and its schedules and webhooks do not start runs. Use Resume (then save) to turn it back on.
Good to know
- An agent added from Marketplace with a schedule starts paused so you can review it.
- Concurrent runs are limited: up to 5 active runs per agent and 20 per account.
- You can watch the next scheduled run live from the agent's Recent runs panel. See Runs and the live trace.
More guides in PGB Agents
What a PGB Agent is and what it can do
An agent is a saved job with instructions, a list of allowed tools, a budget and a record of every step it takes.
Create an agent from scratch or from the Marketplace
Make a blank agent in two clicks, or add a ready-made one from PGB Marketplace and review it before it runs.
Write good instructions for an agent
How to word the Instructions box so an agent does the right job, stays inside its limits and tells you when it is unsure.
Choose tools and understand which need approval
The list of tools an agent can use, what each does, and which ones always pause for your approval.
Set budgets and know when a run will stop
Put a dollar limit on each run and each month, and learn the other limits that stop an agent from running away.
Read a run and its live trace
Follow an agent step by step while it works, understand each status and open the details of any tool call.