Orchestration runs jobs: automated tasks that start on an event, on a schedule or from outside the Platform, and carry out a series of actions. Older parts of the Platform call a job a hook.
To manage jobs, go to Customization › Orchestration › Jobs in the admin menu. Each job run is listed under Customization › Orchestration › Batch Logs.
Some typical uses for jobs include:
- Connect forms to your CRM. When a new user fills out a form, they are added to a CRM.
- Page cache updates. In the case you use an external page cache, you can be notified of a page edit, and you can send that page contents to your caching engine.
- Share information with Slack. Based on an action you can connect this to a Slack channel via a REST API.
- Compliance. Notify your compliance team when a webpage has changed.
Triggers
A job starts when one of its triggers fires. A job can have several triggers.
- Entity Event Triggers: the job runs when an action is performed on a record. Choose the Entity and the Method: Created, Updated or Deleted, and on some entities other events, such as Completed, Login or Abandoned. If the job is not limited to a site, it runs for the records of any site, always in the context of the record's site.
- Web Event Triggers: the job runs when a request reaches the trigger's own address, shown as Full URL. Data sent with the request is available in the job's actions.
- Scheduled executions: the job runs at the points in time that you set.
- Recurring execution: the job runs on a repeating schedule.
Scheduled executions and Recurring execution are available only for a job assigned to a site in Run on site.
A job can also start another job with the Trigger job action, and pass data to it.
For the entities and methods you can use, see the job event reference.
Actions
When a job runs, it performs its actions in order. Actions can send an email, send an HTTP request or answer one, retrieve, create, update or delete records, create or merge files and PDFs, render template code, start another job, or run an AI agent. Conditions run actions only when a condition is met, and loops run actions once for each item of a list. Stop execution ends the job run at once. For every action and its fields, see the job action reference.
AI Agent
Runs one of your installed AI agents against the triggering record and records what it decided. Install and configure agents under Agents › Library; see AI Agents.
Two fields:
- Agent install: the installed agent to invoke.
- Agent input: composes the message the agent receives. Use template code to include data from the triggering event or from previous actions. Leave it empty to send a generic instruction.
The agent input is worth spending time on. An agent given only a record id has to go and find its context through tool calls, which costs more and can hit the iteration cap; an agent handed the relevant fields directly usually answers in one pass.
Two constraints
- Asynchronous jobs only. The action is not offered on a job with Synchronous execution turned on. An agent can pause the job run and resume it later, for example when it asks a person for a decision, and a synchronous request cannot wait for that.
- Not inside a loop. The action is not offered inside a loop. To run an agent over many records, trigger it per record with an entity event rather than looping.