Skip to main content
An automation asks Mole Agent the same task each time it starts: check the health of the services every morning, investigate each new critical incident, or look at a deploy when the pipeline calls. Mole Agent works on it the way it works in a chat, with the tools, skills, and knowledge of the automation’s scope, and the run is kept as a chat that the people who see the automation can open. When the run ends, the result goes to the notify channels you chose, and an automation started by incidents can write the incident’s RCA.

Before starting

  • Enable at least one AI model under Mole Agent → Settings → Models & reasoning. See Mole Agent. Without one, a run fails and says why.
  • Check the permissions:

Create an automation

Open Mole Agent → Automations → New automation, and start from a blank automation or a template: The form has these fields: An organization has at most 50 automations. Clone in a row’s menu opens a copy in the form, switched off, to save under another name or in another scope.

Whose it is

The scope decides what a run can use and who can see the automation. It cannot be changed after the automation is created; clone it to use another scope. A run of an organization automation started by an incident uses the incident’s team, taken from its escalation policy: the first team it pages, else the team of the first on-call schedule. When there is none, the run stays in the organization’s scope.

Who it runs as

An automation runs as the person who saved it last: with that person’s permissions, read again at each run, and with their own credentials on MCP servers that take one from each member. Saving it makes you the one it runs as, and the form says so. Saving with an API token is refused, because a token stands for its role and not for the person who made it. When that person can no longer use Mole Agent in the organization, each run fails with that reason until someone who may saves the automation again.

What starts it

Run now in a row starts any automation that is on or off, as the person it runs as, at most once a minute.

Runs

Runs in a row lists the last 100 runs, newest first: how each went and why, what started it, the start of the answer, channels that were not reached, and Open the run, the chat that holds the whole run. That chat is not in the chat list and cannot be continued; to ask again, run the automation. Nobody can answer during a run. When Mole Agent asks a question, it goes on with its own judgment; a tool that needs someone to confirm it is not run; and an MCP server that needs the run’s person’s own credential, which is not saved, is not used. Mole Agent says so in its answer, and the run is marked as needing someone. The model calls of runs count toward the organization’s daily token budget and show as Automations in the usage by source.

Notices and the incident’s RCA

A run that succeeds, needs someone, or fails sends a notice to each channel: the automation’s name and how the run went, the start of the answer, the reasons, and a link to the run. The notice is written in the language of the person who saved the automation and appears in the delivery records like other notifications. An automation started by incidents with Write the conclusion as the incident’s RCA on writes Mole Agent’s answer as the incident’s RCA, which the incident page shows. An RCA that someone wrote from a chat stays. While an organization has such an automation on, the built-in RCA generation leaves the organization’s incidents to it, so an incident is not analyzed twice. The Incident analysis template is set up this way.

Start it from CI/CD

For an automation started by an API call, open API token in its row’s menu and select Make a token. The token is shown once; making another one replaces it at once, and Take the token away removes it. Send it with the deploy, and describe the change in text:
text is optional and at most 8000 characters. Mole Agent reads it as data about the run, not as instructions. The answer is 202 with run_id, status, and chat_url. A wrong token or an unknown automation answers 401; an automation that is off or not started by API calls answers 409; a second call within 10 seconds answers 429.

Look back at how Mole Agent is used

/insight [days] is a built-in skill that reviews the last 30 days, or the days you give, of Mole Agent in the chat’s scope: what was asked, how the answers and automations went, what was rated unhelpful and why, which tools failed often, and which skills were used. It ends with at most five changes worth making, such as a knowledge file to write or an automation to fix. It changes nothing. A team chat looks at its team, and a personal chat at you and your teams. Use it in a chat, or as the task of a weekly automation.
Last modified on October 26, 2026