Creating and Configuring AI Actions
Creating an AI action
Open AI actions in the sidebar and click New action. Give it a name at the top of the page (for example, "Look up order status"), then fill in each section. The Preview on the right lets you try it as a customer would.
Trigger
- Description: what the action does, in plain language
- Trigger criteria: the customer messages that should trigger it, for example asks about the status of an order they placed. The AI matches messages against this text to decide when to use the action
- Workflow-only: restricts the action to AI workflows. The AI cannot call it on its own, and no trigger criteria are needed
- Ask the customer to confirm first: the AI shows the customer exactly what it will do and only runs the action after they confirm. Use it for actions that change something, like cancelling an order
- Progress message: shown to Live Chat customers beside the typing dots while the action runs (for example, "Checking your order..."). Leave it empty to show only the dots
Endpoint
- HTTP method: GET, POST, PUT, PATCH or DELETE
- URL: the HTTPS endpoint the AI will call. Use
{param}for path parameters, for examplehttps://api.example.com/orders/{order_id}
Authentication
- None: no authentication (public endpoints)
- Bearer token: a fixed token sent as
Authorization: Bearer <token> - Customer bearer token: the customer's own token, provided by your site through
Helpium.identify({ bearerToken: "..." })
See AI Actions Authentication Methods for more on each option.
Parameters
Click Add parameter for each input the AI fills in when calling your endpoint:
- Name and type (String, Number or Boolean)
- Location: Path, Query, Body or Header
- Required: whether the AI must have this value before calling
- Default value and allowed values (optional)
- Description: tells the AI what to put there
Test endpoint
Enter sample values and click Run test to send a real request to your API. You see the response, so you can fix errors before customers use the action.
Mock response
Optional. The Preview uses this JSON instead of calling your real endpoint. Leave it empty to call the real endpoint.
Advanced
Timeout (seconds): between 1 and 30 (default 10).
Turning an action on or off
A new action is on as soon as you save it. Use the switch on its row in the AI actions list to turn it off: when off, neither the AI nor your workflows can use it.
Was this article helpful?