Actions and procedures
Actions let your team and the AI agent do things in your other systems, not only answer: look up an order, start a refund, resend a license key, change a subscription. Actions are part of Pro and above.
Connections
An admin adds a connection in Settings, Actions. Two kinds:
- HTTP API: a base URL like
https://api.yourshop.com/v1and how to sign in: no auth, a bearer token, a user name and password, or an API key in a header you name. - MCP server: the URL of a server that speaks the Model Context Protocol over streamable HTTP. HelpBat lists its tools so you can pick one.
The secret is encrypted at rest and never shown again after you save it; the settings only say it is set. To change it, type a new one.
Other headers can be marked secret. A secret header is encrypted like the secret, shown only masked, and removed from results and logs. Headers named like a credential (with auth, token, key, secret, cookie, session or password in the name) are always treated as secret. Leave a secret header's value empty when you edit the connection to keep the saved value.
Actions
An action is one call on a connection:
- a method and a path, like
GET /orders/{{input.order_id}}?email={{customer.email}}, or an MCP tool; - an optional JSON body.
"{{input.amount}}"on its own keeps the number type; - inputs with a type (text, number, yes or no, or a choice), whether each is required, a default such as
{{customer.email}}, and whether it is from the ticket only (locked); - the response fields to show, like
order.status. Only these reach the AI agent; - a risk: reads data or changes data, and whether it needs approval (on by default for actions that change data);
- whether the AI agent can use it.
Placeholders: {{customer.email}}, {{customer.name}}, {{customer.phone}}, {{customer.external_id}}, {{ticket.number}}, {{ticket.subject}}, {{ticket.status}}, {{ticket.priority}} and {{input.<name>}}.
Keep customer identifiers on the ticket
An input whose default names the customer or the ticket, like {{customer.email}}, is from the ticket only unless you turn that off. A locked input always takes its default from the ticket. The AI agent never sees it as something it can fill in, and a value sent by the AI, the API, a test or an agent is ignored. This stops a customer from asking the AI to look up someone else's order by claiming another email address in the chat.
We recommend putting customer identifiers straight into the path or body template, like /orders?email={{customer.email}}, or into a locked input. Leave an identifier unlocked only when your team needs to type it in by hand, and never let the AI fill in who the customer is.
Use Test to run an action with sample inputs (and optionally a ticket for the placeholders). It calls the real service and shows the response with secrets removed. Testing an action that changes data needs the approve permission, because a test does not wait for approval.
Procedures
A procedure tells the AI agent what to do, in plain words. For example:
When the customer asks for a refund: 1. Look up the order with Get order. 2. If it was delivered more than 30 days ago, explain the refund policy. 3. Otherwise run Refund order.
A procedure matches a message by its keywords or by the words of its "when". Actions named in the steps are linked for you. When a procedure matches, the AI agent gets its steps and its actions as tools. It calls actions that read data directly. An action that needs approval waits on the ticket for a person, and the AI agent tells the customer the team will review it and hands the ticket to your team.
Running actions from a ticket
Agents with the "run actions" permission use Actions in the ticket header. The inputs are filled in from the ticket. Each run is added to the ticket as an internal entry with its inputs and result, and to the audit log. People with the "approve" permission see Approve and run and Reject on actions that wait; the card shows the request that will be sent (method, path and body, with secrets masked), and approved actions run at once, as the approver, exactly as shown. If the action or its connection is edited while it waits, approving it does not run it: run it again to ask for a new approval. Waiting actions count in "Waiting for approval" in the inbox.
Permissions
- Set up connections, actions and procedures (owners and admins).
- Run actions on tickets (agents, supervisors, owners and admins; not light agents).
- Approve replies and actions that need approval. Someone with it runs an action that needs approval directly from a ticket in the app. Through the API or MCP it still waits.
Security
- Every call goes to the connection's host only. Placeholder values are URL encoded and cannot add a host, a path or a query.
- Only public https addresses: private, loopback, link local and cloud metadata addresses are refused when you save and again on every call, after the name is looked up, so a name that later points inside a network is still blocked. Redirects are not followed. Calls time out after 10 seconds and answers are capped at 512 KB.
- Secrets never leave the server. Authorization headers, keys named like password, token, secret or API key, card numbers, ids and bank numbers are removed from what is stored, shown, logged or given to the AI.
- Action results go to the AI as data, never as instructions. An action that needs approval always waits for a person, whatever the AI or a customer says.
- Runs are rate limited per help desk (60 a minute by default).
API and MCP
With an API key that has the actions:read and actions:run scopes: GET /api/v1/actions, POST /api/v1/actions/{id or key}/run with {"ticket": "123", "inputs": {...}} (it answers 202 when the action waits for approval; a write action that needs approval always waits for a person, even when the key's creator may approve) and GET /api/v1/actions/runs/{id}. The MCP server has list_actions and run_action. The role of the person who created the key applies.
AI agent outcomes
Reports lists every AI agent conversation with how it ended: resolved (the customer said it solved it), handed off (with the reason) or reopened (the customer wrote again after it was resolved), with the credits it used, a link to the ticket and the actions it ran. Admins can mark an entry as disputed, with a note. AI is billed with your shared credits as usual; this list is the record.