AI Actions Setup Guide with Examples

AI ActionsUpdated March 26th, 2026

AI Actions setup guide with examples

AI actions let the AI call your APIs to fetch real data or make a change during a conversation. Instead of a generic answer, it can look up an order, check an account or cancel a subscription.

How AI actions work

  1. A customer asks something like "What's the status of my order?"
  2. The AI matches the message against each action's Trigger criteria
  3. It takes the parameters from the conversation (for example, the order number)
  4. Helpium calls your endpoint with them
  5. The AI turns the response into a helpful reply

Creating an action

Open AI actions in the sidebar and click New action. The main fields:

  • Name: for example "Look up order status"
  • Description: what the action does
  • Trigger criteria: the customer messages that should trigger it. Be specific
  • HTTP method and URL: your HTTPS endpoint, with {param} for path parameters
  • Authentication: None, Bearer token or Customer bearer token
  • Parameters: each with a name, type (String, Number or Boolean), location (Path, Query, Body or Header), whether it is required, and a description that tells the AI what to put there

Customer bearer token lets the AI act for the signed-in customer, calling your API with their own token. Your site provides it with Helpium.identify({ bearerToken }).

Example 1: order status lookup (Bearer token)

Name: Look up order status
Description: Returns the status and tracking information of an order.
Trigger criteria: Asks about the status, shipping or delivery of an order they placed.
Method: GET
URL: https://api.yourstore.com/orders/{order_number}
Authentication: Bearer token
Auth token: your_store_api_key

Parameters:
  - order_number (String, Path, required): The order number, usually starts with ORD-

Example 2: account balance (Customer bearer token)

Name: Check account balance
Description: Returns the customer's balance and recent transactions.
Trigger criteria: Asks about their balance, credits or recent charges.
Method: GET
URL: https://app.yourservice.com/api/account/balance
Authentication: Customer bearer token
No parameters: the token identifies the customer.

Example 3: cancel a subscription (Customer bearer token)

Name: Cancel subscription
Description: Cancels the customer's active subscription.
Trigger criteria: Says they want to cancel their subscription.
Method: POST
URL: https://app.yourservice.com/api/subscription/cancel
Authentication: Customer bearer token
Ask the customer to confirm first: on

Parameters:
  - reason (String, Body, optional): Why they are cancelling

With Ask the customer to confirm first on, the AI shows the customer exactly what it will do and only cancels after they confirm.

Best practices

  • Write clear trigger criteria. The AI uses them to decide when to call the action. Vague criteria lead to wrong calls
  • Use Customer bearer token for personal data. It is safer than passing user IDs as parameters
  • Ask to confirm before any action that changes something
  • Set the right timeout in Advanced: 10 seconds by default, up to 30
  • Test first. Use Run test in Test endpoint, then try it in the Preview
  • Start simple. Begin with read-only actions (GET) before actions that change data (POST, PUT, PATCH, DELETE)