> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wappigate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Automation Tools

> List, build, turn on or off, and check automations.

## What is this?

These tools let the assistant read your automations and their runs, build a new one from a description (saved as an inactive draft), replace a draft's flow, edit the wording of a single step in a live flow, turn automations on or off, and start one for a customer.

These tools belong to the [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md). Each tool below shows its **Mode** (**Read** runs immediately; **Write** asks your MCP client to confirm first) and the **Permission needed** for it to appear for your key — "None" means every connected key sees it.

## What can I do here?

* See which automations exist, what they do and whether they ran
* Build an automation from a description as an inactive draft
* Edit the wording of a single step in a live flow without pausing it
* Turn an automation on or off, or start one for a customer

## Tools

### `list_automations`

List automations (chatbot flows) in the user's current channel, newest first. Use to answer questions like which automations exist, which are active, or how often they ran.

**Mode:** Read · **Permission needed:** `automations:view`

### `create_automation`

Build an automation (chatbot flow) from a description and save it as a DRAFT: it is created INACTIVE and does not run until it is activated with activate\_automation. Give the channelType (default WhatsApp), the trigger (a keyword, a new conversation, a contact field change, a no-match fallback, an Instagram comment / story reply or Facebook comment, or a Threads reply / mention) and the steps as a flat list. Each step goes on to the next one in the list unless it points elsewhere by step id (give the target steps an id), so branches can go as deep as needed, several steps can lead to the same step, and the flow can loop or jump. A loop must pass through a step that waits (a question, buttons, a list, a wait), and the way back to the first step is a jump\_to step, never a direct pointer. Steps: send\_text, send\_buttons, send\_list, send\_media, send\_cta, send\_contact, send\_location, send\_products (one catalog product or a product list, by retailer ID from search\_catalog), send\_template (approved templates only), send\_flow, ask\_question (text, number, email, phone, date, location, address, image, video, audio, file; with max attempts, an invalid-answer message, a deadline, and separate answered / not-answered paths), add\_label / remove\_label, set\_field, create\_note, wait, assign\_team\_member, resolve\_conversation, condition, branch (several values), working\_hours, jump\_to, switch\_automation, http\_request, ai\_reply, and reply\_comment / private\_reply / moderate\_comment for Instagram and Facebook comment triggers; on Threads (no direct messages) only reply\_comment (public reply), moderate\_comment (hide) and steps that send nothing, with the threads\_reply or threads\_mention trigger. A drip SEQUENCE (timed follow-ups) is its own automation: trigger type "sequence", whose first and only drip step is sequence\_drip with up to 10 branches, each \{ after: \{ amount, unit }, next: \<id of the message step it sends> }; every delay counts from when the contact was ENROLLED, not from the previous message (4h, 8h, 12h, 23h means those four branches); give each message step next "end" so it does not run into the next one. Create the sequence first, then enroll contacts from another automation with assign\_sequence \{ sequenceName } and take them out with remove\_sequence \{ sequenceName }, for example when they reply or buy. Free-form messages work only inside WhatsApp's 24 hours after the customer's last message; later ones need send\_template. The flow is checked with the same rules the dashboard flow builder applies, so it opens there without errors. Not covered: payments, product and catalog steps, carousels, Google Sheets / Calendar, Shopify / WooCommerce; build those in the dashboard. Use list\_automations first so you do not duplicate one, list\_labels, list\_team\_members and list\_templates for names. Write the messages from what the user told you; do not invent offers, prices or policies. If the user has not said what the flow should do, ask before proposing.

**Mode:** Write · **Permission needed:** `automations:create`

### `update_automation`

Replace the flow of an automation that is OFF with a new description (same shape as create\_automation: name, trigger and the complete list of steps). It REPLACES the whole flow, so read the current one with get\_automation first and send everything you want to keep. An automation that is on must be turned off first (pause\_automation), and one with runs in progress is refused. Only flows made of the supported steps can be described (see create\_automation); for anything else use the dashboard flow builder.

**Mode:** Write · **Permission needed:** `automations:edit`

### `update_automation_step`

Change the WORDING of one step of an existing automation, in place: its message, header, footer, button or list label, a question, a link button's label (the texts customers read; get\_automation shows them in `data`), and the label of a button or the title / description of a list item by position, and the picture, video or document header of a WhatsApp buttons, list or link-button step (`header`: type and the https address of an already hosted file; it cannot upload a file). Everything else stays exactly as it is: the step id, which button or option leads where, every other step, the trigger and the keywords. So it works on any flow, including ones built in the dashboard or imported, and while customers are partway through it. Unlike update\_automation it does not need the automation turned off, and the change reaches customers right away if the automation is on or is reached from another one. The checks are the dashboard's own (a required text cannot be emptied, channel length limits apply); it is refused if the step was changed by someone else since it was read. Read the step with get\_automation first and send only what changes. It cannot add or remove buttons, steps or connections, or change settings that are not wording (use the dashboard flow builder, or update\_automation for a flow it can describe). Never invent prices, limits or policies: write only what the user gave you.

**Mode:** Write · **Permission needed:** `automations:edit`

### `activate_automation`

Turn an automation ON (automationId from list\_automations). It then runs for real customers, so use it only when the user has asked for it. It checks the flow is valid first. Suggest reviewing the flow in the dashboard before activating a new draft.

**Mode:** Write · **Permission needed:** `automations:edit`

### `pause_automation`

Turn an automation OFF so it stops starting for new customers (automationId from list\_automations). Runs already in progress are not deleted.

**Mode:** Write · **Permission needed:** `automations:edit`

### `get_automation`

Get one automation from the user's current channel by id: its trigger, status, and the ordered list of steps it contains, each with its settings in `data` (the messages, headers, footers, buttons and list items customers are sent; credentials such as HTTP headers and tokens are hidden) and `routes` showing which step each connection leads to (a button or list item is a `handle`). Pass `stepId` to read just one step. Get the id from list\_automations first — never guess it. To change the wording of one step use update\_automation\_step.

**Mode:** Read · **Permission needed:** `automations:view`

### `list_automation_building_blocks`

List the step types an automation can use on a given channel type (messages, questions, logic, actions, integrations), with what each does. Use to answer whether an automation can do something — never claim a capability that is not listed.

**Mode:** Read · **Permission needed:** `automations:view`

### `list_automation_runs`

Recent runs of the channel's automations, newest first: which automation, for which contact, status (running, completed, failed), error and timing. Filter by automationId or status. Use it for 'did my automation run?' or 'why did it fail?', then get\_automation\_run for the step-by-step log.

**Mode:** Read · **Permission needed:** `automations:view`

### `get_automation_run`

One automation run (from list\_automation\_runs) with its step log: each step's type, status and error.

**Mode:** Read · **Permission needed:** `automations:view`

### `trigger_automation`

Start one of this channel's active automations for the customer of a conversation. Get the id from list\_automations.

**Mode:** Write · **Permission needed:** `inbox:send`

## Troubleshooting / Technical Notes

* **A tool I expect isn't offered.** The MCP server only offers tools whose required permission your API key's owner holds, re-checked on every call. Grant the permission shown on the tool — see [Team](https://docs.wappigate.com/workspace/team.md).
* **A Write tool never seems to run.** Your MCP client asks you to approve every Write tool call. Check for a pending approval prompt.
* **A call returns an error.** See [MCP errors](https://docs.wappigate.com/mcp/errors.md).

## Related docs

* [Workspace MCP tool catalog](https://docs.wappigate.com/mcp/workspace/tools/overview.md)
* [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md)
* [Overview](https://docs.wappigate.com/workspace/automation/overview.md)
* [Automation Report](https://docs.wappigate.com/workspace/automation/automation-report.md)
* [Manage Live Flows](https://docs.wappigate.com/workspace/automation/manage-live-flows.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.