Actions: let the AI agent look things up and act

Actions let the AI agent do more than answer from knowledge: it can call your own API to look up an order, check an account or change a booking, or use the tools of an MCP server. Each action describes one request the AI can make, with the values it is allowed to fill in. This article is for admins and developers who connect Vensel to their systems.

Create an API action

  1. Go to AI Training › Actions.
  2. In API actions, click New action.
  3. On the Settings tab, enter a Name and a Description. The AI reads the description to decide when to use the action, so say plainly what it does and when it is useful.
  4. Choose the Method and enter the API Endpoint. For a path parameter, put its name in curly braces in the URL, for example /orders/{order_id}.
  5. Add QUERY PARAMETERS, HEADERS and a body as needed. For each value, either type a fixed value or switch on Let the AI fill this value (marked Filled by the AI).
  6. Click Save. You'll see Action created successfully.

Sensitive header values (Authorization, tokens, keys) are encrypted and never shown again. To reuse an organization secret, write {{secrets.NAME}}.

Test the action

  1. Open the Test tab (Test Action).
  2. Fill in the test values. Optionally enter a Test session ID so session and contact values in the headers are filled in.
  3. Click Send Test Request. The Response or Error is shown.

The test sends one real request to your endpoint.

Shape the response

If your API returns more than the AI needs, open the Transformer tab. In Action Transformer, add rules that reshape the response, run a test with sample input, and click Save Transformer.

Limit where and for whom it is used

In Action Settings:

  • Enabled on Channels: the channels where the AI may use the action. Empty means every channel.
  • Pin this action: the AI considers pinned actions first.
  • Restrict by Contact Segments: only contacts in these segments. Empty means every contact.
  • Tags: to organise and filter your actions.

Import many actions at once

  1. On AI Training › Actions, click Import › Import from an OpenAPI file.
  2. Upload an OpenAPI 3.0 or Swagger JSON file. Each endpoint becomes an action.

Give each endpoint a clear description and operation_id first, and leave auth headers out of the file; add them to the actions afterwards.

Connect an MCP server

  1. In MCP servers, pick one of the Ready-made servers and click Add, or add your own server.
  2. Enter a Name and the Server URL.
  3. Click Connect server. If the server supports OAuth, Vensel opens its sign-in page. Otherwise add an Authorization header under Manual authentication.
  4. Open the server to see its Tools and turn individual tools on or off.

A server that loses its sign-in shows Reconnect required; click Reconnect.

Good to know

  • Requests go to the URL you set. Addresses on private networks are refused.
  • When the AI calls an action, the reasoning view for that reply shows the call, its arguments and the response.
  • When no action can do what a customer needs, or the action fails, the AI hands off. These show as Tool gap in Reports & Apps › Handoff Insights.
  • Deleting an action or MCP server can't be undone; agents lose access at once.
  • MCP servers are in beta.

Related