> For the complete documentation index, see [llms.txt](https://docs.eesel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eesel.ai/automations-and-schedules/automations-and-schedules.md). Agents can also search and read this documentation through its [MCP server](https://docs.eesel.ai/~gitbook/mcp).

# Automations and Schedules

AI agent automations and schedules: pick the event or time that wakes your agent, write instructions for the job, and check its work in Activity.

An automation is how your AI agent works on its own, without anyone asking it in chat. It can answer new tickets, reply to Slack mentions, post a weekly report or act on data your own systems send.

Connecting an app does not make your teammate do anything on its own. An **automation** is what does. It says *when* your agent should wake up, and *what to do* when it does.

Every automation is two parts:

* **A trigger.** Something happening in a connected app (a customer messages, a teammate @mentions eesel, a ticket gets resolved), a time (every Monday at 9am), or a [webhook](https://docs.eesel.ai/automations-and-schedules/webhooks.md) from any other system.
* **Instructions.** A short brief for that one job: which tickets or messages to handle, which to leave alone, and what to do with the ones it takes.

Automation instructions add to your agent's core [Instructions](https://docs.eesel.ai/instructions-and-memory/instructions-and-memory.md), they do not replace them. The core [Instructions](https://docs.eesel.ai/instructions-and-memory/instructions-and-memory.md) still apply underneath every automation, so tone, escalation rules and policy carry over without you repeating them.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-8ff2ab4fcaad575561fd34195810258e58e855f7%2Fautomations-hero-editor.png?alt=media" alt="An automation named Only on the customer&#x27;s first message, showing its Zendesk trigger, an instructions box describing what to do with each new ticket, and a note that the agent&#x27;s core instructions always apply underneath"><figcaption><p>An automation is a trigger plus instructions for that one job. Your agent's core instructions always apply underneath.</p></figcaption></figure>

{% hint style="info" %}
**Using Claude Code, Codex or Cursor?** Ask it to create or update an automation with [eesel CLI](https://docs.eesel.ai/apis-and-developer-resources/cli). Point it to the [setup guide](https://docs.eesel.ai/getting-started/set-up-from-a-coding-agent).

**Using Claude.ai or ChatGPT?** Use the eesel connector (MCP). See [Claude and other assistants](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-claude-and-other-assistants.md) or [ChatGPT](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-chatgpt.md). If the eesel connector is already linked to the correct workspace, keep using it. For steps it cannot complete, use the dashboard.

**CLI details for your coding tool:** Run `eesel automations list <app>` to find the event keys, then use `eesel chat` to create the automation or change its instructions, filters or title. Direct automation commands change settings only. Check that it is enabled, then send a test event and check the result in Activity. You can also use the dashboard.
{% endhint %}

## Setting up an event automation

{% stepper %}
{% step %}

### Ask for it in chat

Tell your agent what you want it to do and when. It picks the trigger, writes the instructions, switches the automation on and tells you what it wired.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-a8168919e65ff3126ff821639191f79ad76878d9%2Fautomations-event-chat.png?alt=media" alt="The dashboard chat where the user asks for an internal note with a draft reply on every new ticket, and the agent reports the trigger it chose and the action it will take, with a link to the Automations page"><figcaption><p>The agent reports the trigger and the action it set up.</p></figcaption></figure>

You can also build one yourself on your agent's **Automations** page, and edit anything your agent created there.
{% endstep %}

{% step %}

### Check it on your Automations page

The new automation is listed with its trigger under the name, switched on. The switch pauses it without deleting anything.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-97b2b596890929b336b543a1e6caea2a4937abc6%2Fautomations-event-list.png?alt=media" alt="The Automations page listing an automation named Only on the customer&#x27;s first message with its Zendesk trigger, switched on, beside the chat that created it"><figcaption><p>The automation live on the Automations page.</p></figcaption></figure>

**Check it worked.** From a terminal, `eesel automations` lists the automation as on.
{% endstep %}

{% step %}

### Open it to see the trigger and the instructions

Click the row. The editor shows the name, when it runs, and the instructions. The trigger is fixed once the automation exists. To run the same work on a different event, create a second automation.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-8ff2ab4fcaad575561fd34195810258e58e855f7%2Fautomations-hero-editor.png?alt=media" alt="The automation editor with the name, the Zendesk trigger under When it runs, and the instructions describing the reply to draft as an internal note"><figcaption><p>The automation's own page: name, trigger, instructions.</p></figcaption></figure>

Change the instructions here any time. Describe which cases you want handled and what to do with them, and your agent checks each event against that before doing anything. Recently skipped events are recorded, so you can see what was passed over and why.

This check is also what keeps your credits down. An event that is skipped here starts no run and uses no credit, while an event that wakes your agent uses credits even if the run then decides there is nothing to do: 1 for the ticket or chat it is about (shared with every other automation on it), or by how much work it does if it isn't about a ticket or chat. An empty instructions box wakes your agent on every event. See [Pricing](https://docs.eesel.ai/pricing/overview.md).
{% endstep %}

{% step %}

### Check its work in the app

Open the app and look at the next event that comes in. In this example the automation left a drafted reply as an internal note on a new Zendesk ticket, for a teammate to review and send.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-9ea37437c1124c9578140fa1c3b24af0e9946412%2Fautomations-event-note-on-ticket.png?alt=media" alt="A Zendesk ticket where the automation left an internal note with a drafted reply, ending with a Left by eesel AI line"><figcaption><p>The automation's internal note on a real ticket.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## Setting up a schedule

From the terminal, ask `eesel chat` for the job, its time and timezone. Check the resulting schedule with `eesel automations`; use `eesel automations update <id> --cron "0 9 * * 1" --timezone Europe/London` only when that is the intended schedule. `eesel automations run <id>` runs it now, so use it only for an agreed test and inspect the result with `eesel activity`.

A schedule is an automation that runs on a clock instead of an event. Use it for recurring work: a Monday summary, a daily check, a weekly [report](https://docs.eesel.ai/reports/reports.md), a [blog post](https://docs.eesel.ai/use-cases/content-writing.md) every Monday morning. Anything your agent can do on request it can do here, including running a [skill](https://docs.eesel.ai/skills/skills.md).

{% stepper %}
{% step %}

### Ask for it in chat

Say what you want and when. Your agent creates the schedule, writes the instructions and confirms the time. Check the timezone it picked, and ask it to change the time if the default is not yours.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-2beda583c2eb2d7ebe2e3565e830ed7435bb8d25%2Fautomations-schedule-chat.png?alt=media" alt="The dashboard chat where the user asks for a Monday 9am catalogue report to a Slack channel, and the agent confirms the schedule, notes it is set to UTC and offers to change the timezone"><figcaption><p>The agent confirms the schedule and asks about the timezone.</p></figcaption></figure>
{% endstep %}

{% step %}

### Check it on your Automations page

The schedule is listed with its time and timezone under the name, marked **Schedule**.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-2fc0304fcdbef219055cf23feccf67a2004e867b%2Fautomations-schedule-list.png?alt=media" alt="The Automations page listing a Monday Catalogue Report schedule at 9:00 AM every Monday UTC, switched on, beside the chat that created it"><figcaption><p>The schedule on the Automations page.</p></figcaption></figure>
{% endstep %}

{% step %}

### Open it to set the time

The editor has the clock controls: **Daily**, **Weekly**, **Monthly**, **Hourly**, **Minutes** or **Custom**, the days, the time and the timezone. A schedule can run as often as every 10 minutes. The line under the controls reads the schedule back in plain words.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-78123eb70100c2a0b809f8e48d58dff261fe2aaf%2Fautomations-schedule-editor.png?alt=media" alt="The schedule editor with How often set to Weekly, Monday selected, 9:00 AM and UTC chosen, and a line reading Every Monday at 9:00 AM (UTC)"><figcaption><p>The schedule editor with the clock controls.</p></figcaption></figure>

Below that are the instructions. On some older workspaces there is also **Model strength**: the usual model for drafting and multi-step work, or a lighter one for simple jobs like tagging or routing. On newer workspaces eesel picks the model and the choice is not shown.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-bd9f460e3c3b0ff352c4d4420254aa8cff995693%2Fautomations-schedule-instructions.png?alt=media" alt="The schedule editor scrolled to the instructions describing the catalogue report, and the Model strength choice between Smart and Quick and simple"><figcaption><p>The instructions and the model choice.</p></figcaption></figure>
{% endstep %}

{% step %}

### Run it once to see the result

There is no run button. Ask your agent in the dashboard chat to run the schedule now and it does, so you can see the result without waiting for the clock. If an action in the run is set to ask you first, the run waits on your **Activity** page for you to approve it.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-e44d71541584e3af3311061964ca473c6dde8479%2Fautomations-schedule-slack-post.png?alt=media" alt="Slack&#x27;s general channel with a Monday Catalogue Briefing posted by the eesel app, listing low and out of stock products, new arrivals and top customer questions"><figcaption><p>The scheduled report posted in Slack.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## Shaping which events an automation takes

You do not have to act on everything a trigger catches. There are three controls on each automation:

* **The instructions.** Say which cases you want handled and what to do with them, for example "only shipping and delivery questions, ignore billing, and draft a reply as an internal note". Your agent checks each event against that first and leaves the rest alone. The automation's activity lists recently skipped events with the reason: the newest 200, cleared after a day with no events. This skip log is available for Zendesk, Freshdesk, Gorgias, Front, HubSpot, Help Scout, Intercom and Slack automations.
* **Wait before processing.** On Zendesk, Freshdesk, Gorgias and Help Scout email event automations, hold each event for up to 15 minutes so your helpdesk's own rules run first. It is not offered on live chat events.
* **The switch.** Pause an automation and it keeps its setup. Turning it back on is one click. Deleting an automation cannot be undone.

## Managing automations

The chat manages automations the same way it creates them: ask what is running, tell it to pause one, change the instructions, or "route sensitive tickets to Sarah instead" and it updates the automation for you. The **Automations** page shows the same thing, and everything is editable there too. Each automation links to its own activity: every run it started, and the events it recently decided to skip. Hover its activity icon to see how many runs it had in the last 7 days.

## Follow-ups on a conversation

Your agent can come back to the same conversation later, for example to chase a customer who has not replied, or to close a ticket after a week of silence. Ask for it in the automation's instructions, such as "follow up after 1 day, again after 3, and close it after a week". Each follow-up can be up to 7 days away, and a conversation has one pending at a time, so a chase like this is set one step after another. A pending follow-up shows on the **Automations** page as an automation titled **Check back**. Delete it to cancel. A follow-up on a ticket shares that ticket's 1 credit, like every other automation on it. A chat that goes quiet for more than a day counts as a new chat, so a follow-up on a chat after 1 day uses a new credit. A follow-up on anything else is charged by the work it does. See [Pricing](https://docs.eesel.ai/pricing/overview.md).

## FAQ

<details>

<summary>What is an AI agent automation?</summary>

An automation is a trigger plus instructions. The trigger says when your agent wakes up: an event in a connected app, a time, or a webhook. The instructions say which cases to handle and what to do with them.

</details>

<details>

<summary>Does connecting an app make my agent act on its own?</summary>

No. Connecting an app does not make your agent do anything on its own. An automation is what does, so you can connect everything and test first.

</details>

<details>

<summary>Can I limit which tickets an automation handles?</summary>

Yes. Say in the automation's instructions which cases you want handled, for example "only shipping and delivery questions, ignore billing". Your agent checks each event against that first, and the automation's activity lists recently skipped events, with the reason.

</details>

<details>

<summary>I turned on a trigger on my helpdesk's integration page. Is that an automation?</summary>

New automations start from the **Automations** page, or by asking your agent in chat. Your helpdesk's integration page, such as [Zendesk](https://docs.eesel.ai/integrations/helpdesks/zendesk.md), lists the automations that app already has. On older workspaces, turning on a trigger there, like "customer sends a message", creates an automation with that trigger and a starting set of instructions, which you are free to edit.

</details>

<details>

<summary>Can I change what event an automation runs on?</summary>

No. An automation's instructions are editable any time, but its trigger is fixed when it is created. To run the same work on a different event, create a second automation.

</details>

<details>

<summary>How often can a schedule run?</summary>

As often as every 10 minutes. The **Minutes** option offers 10, 15, 20 or 30 minutes. **Hourly**, **Daily**, **Weekly** and **Monthly** cover the rest, and **Custom** takes anything else.

</details>

<details>

<summary>Why did my scheduled run stop and wait?</summary>

An action in it is set to ask you first. Open the run on your **Activity** page and you will find the approval card. Approve it once. To let that action run on its own from then on, set it to **On** (**Auto** on older workspaces) on its integration page; eesel's safety check can still hold a risky call. On older workspaces, **Always Allow** on the card does the same.

</details>

## Related

* [Webhooks](https://docs.eesel.ai/automations-and-schedules/webhooks.md) for waking your agent from any other system
* [Instructions and Memory](https://docs.eesel.ai/instructions-and-memory/instructions-and-memory.md) for the rules that apply underneath every automation
* [Actions and Approvals](https://docs.eesel.ai/instructions-and-memory/actions-and-approvals.md) for what happens when an action asks first
* [Skills](https://docs.eesel.ai/skills/skills.md) for the workflows you can run on a trigger or a schedule
* [Integrations](https://docs.eesel.ai/integrations/overview.md) for the triggers each app offers
* [Use eesel from Claude and other AI assistants](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-claude-and-other-assistants.md) and [Use eesel from ChatGPT](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-chatgpt.md) to work with your agent from a chat assistant


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eesel.ai/automations-and-schedules/automations-and-schedules.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
