Skip to main content

Actions

Actions are power-enablers for agents. They allow your agents to access knowledge bases, invoke APIs, transfer live calls, and hang up calls.

Available action types:

  • Access Knowledge Base
  • Invoke API with parameters
  • Trigger events like transferring or hanging up calls

Create Your Actionโ€‹

Click New Action on the Actions page.

Actions Page

Youโ€™ll be redirected to the Create page. Fill in:

  • Action Name โ€“ A short, meaningful identifier (e.g., GetCustomerInfo). No spaces, numbers, or special characters. Max 25 chars.
  • Description โ€“ A brief explanation of the actionโ€™s purpose.

Actions Details Page

Action Parametersโ€‹

Parameters (or slots) are values extracted from the userโ€™s input and passed to the action.

Click Add New Parameter:

  • Required โ€“ Whether the parameter must be provided.
  • Name โ€“ Unique key for the parameter.
  • Type:
    • Word โ€“ Free-text input like โ€œ3PMโ€ or โ€œmango flavoredโ€
    • Header โ€“ SIP or channel headers
    • Number โ€“ Numeric values like customer IDs
    • Instructions โ€“ Guide the AI on how to extract this value

Action Parameters

Accessing Parameters

Use {parameterName} to reference parameter values. For example, if the user says โ€œ123456โ€ and the parameter is customerID, use {customerID} in paths or JSON bodies.

Operationโ€‹

Each Action has one operation. Options include:

Knowledge Baseโ€‹

Allows the agent to search within a selected KB.

  • Knowledge Base โ€“ Pick from active KBs
  • Response Instructions โ€“ Guide the AI on how to use the retrieved result

Action Operation KB

Invoke API Endpointโ€‹

Calls an API defined in the API Manager.

Action Operation API

  • API Endpoint โ€“ Select from available endpoints
  • Path โ€“ Append to the base path
  • Request JSON Body โ€“ Choose Append, then add key-value pairs
  • Response Instructions โ€“ Use $ to access JSON response

Example:

API JSON Response
{
"data": [
{
"customerID": 12345678,
"amount": 580.85,
"lastPaymentDate": "20201224T094512"
},
{
"customerID": 12345678,
"amount": 109.5,
"lastPaymentDate": "20191224T091512"
},
{
"customerID": 12345678,
"amount": 486.5,
"lastPaymentDate": "20211224T194512"
}
]
}

To access the amount of the first element in the data array:

{$.data[0].amount}

Transfer Callโ€‹

Triggers a SIP REFER or sets channel headers with transfer info.

  • Directory Search Instructions โ€“ Guide the AI in retrieving and formatting contact info

Action Operation Transfer

info

Transfer call sends transfer data (sessionID, context, extension) via REFER or channel headers. You must implement the actual transfer logic.

Hangup Callโ€‹

Terminates the call once the agent finishes speaking or upon user request.

Action Operation Hangup

info

Hangup call does not send signals or headers โ€” it directly ends the call.

Edit Actionโ€‹

From the Actions page, click the โ‹ฎ menu on any action to Edit or Delete it.

Actions Edit

  • Edit โ€“ Modify name, description, parameters, or operation
  • Delete โ€“ Permanently remove the action

Actions Delete

Linked Actions cannot be deleted

Unlink the action from agents before deleting.

Take care

Deleted actions cannot be recovered.