How your agents use automation
A schedule or webhook sends its prompt or message to your team lead, as if you had sent it in the chat. Your lead plans the work and hands it to the right team members.- Write the prompt or message as a clear job, the same way you would ask in the chat. For example: “Check the inbox for new enquiries and reply to each one.”
- Set your lead permissions to match. An automated run still stops and waits for any approval your permissions require.
- Follow the results in the lead chat and in your team’s tasks.
Schedules
A schedule wakes your team at set times with a job to do. For example, run a sales report every Monday, or check for new orders every hour.Add a schedule
- Open Automation and add a schedule.
- Choose when it runs. Pick a preset or enter your own cron expression.
- Write the prompt. This is the job your team lead receives each time the schedule runs.
- Save the schedule. Check the upcoming run times to confirm it is right.
A cron expression needs five parts: minute, hour, day, month, and weekday. Schedules run in your own time zone.
Manage schedules
- Turn a schedule off to pause it without deleting it.
- Edit a schedule to change its timing or prompt.
- Delete a schedule you no longer need.
Webhooks
A webhook lets another service send your team a job the moment something happens, like a new order or a failed build.Set up the webhook
- Open Automation, select Webhooks, and turn the webhook on.
- Copy the webhook URL.
- Copy the secret. The secret is shown once, so store it somewhere safe.
- Add the URL and secret to the service that sends the events.
Send a message
Send aPOST request with a JSON body to your webhook URL. Sign the body with your secret using HMAC-SHA256, and send the signature in the X-Webhook-Signature header with a sha256= prefix.
An identical request sent again within 24 hours is ignored. Change the message to send a new job.