Skip to content
← All skills

Integrations & Actions

Functions Skill

Let the agent call your APIs mid-conversation.

Functions skill overview diagram
Illustration only — not a screenshot of raia.
01

How it works

A function lets your agent ask another system for information mid-conversation, like looking up an order. You’ll need a developer to set up the webhook: a web address that receives the agent’s request (for example, an order number) and sends back the answer (for example, “Shipped on Nov 3”). The agent then uses that answer in its reply.

02

Video overview

03

Key features

Prerequisites

Before changing this skill, arrange the system owner, approved credentials and a non-production or read-only operation.

Fields on the form

Function Name; Function Internal Name (no spaces, up to 64 characters: letters, digits, _ and -); Function Instructions (when the agent should use it); Webhook to Call; HTTP Method (GET or POST); Function Parameters (a JSON schema); optional Header Name and Header Value with + Add Header. Where your organization allows it, Function Status (Access by Only Me / Share with Organization) is available.

04

How to configure it

In raia CX, open Agents, select the intended agent, then open Skills.

In Launch Pad, open Agents and choose the agent you want to configure.
  1. Highlight 1: Agents
On that agent, open Skills.
  1. Highlight 1: Skills
  1. 01

    Start a new function, or use Chose function from a template if one fits. Enter a Function Name (for example, Order Status) and a Function Internal Name such as get_order_status.

    New Function: choose a template or enter the two names. Use a no-space internal name, not the placeholder.
    1. Highlight 1: Chose function from a template
    2. Highlight 2: Function Name
    3. Highlight 3: Function Internal Name
  2. 02

    Write Function Instructions that say when the agent should call it, for example “Use this when a customer asks where their order is.”

    New Function: when to call it and the approved webhook URL.
    1. Highlight 1: Function Instructions
    2. Highlight 2: Webhook to Call
  3. 03

    Enter the Webhook to Call and choose GET or POST in HTTP Method. With GET, parameters are sent in the URL, so don't include sensitive data.

    HTTP Method: choose the method supported by the approved webhook.
    1. Highlight 1: POST
    2. Highlight 2: GET
  4. 04

    Paste the Function Parameters as a JSON schema, for example {"type":"object","properties":{"order_id":{"type":"string","description":"Order number"}},"required":["order_id"]}. Add headers if your webhook needs them, then click Create (or Update when editing).

    New Function: complete Function Parameters, + Add Header and Create. Nothing was created or executed.
    1. Highlight 1: Function Parameters
    2. Highlight 2: + Add Header
    3. Highlight 3: Create
  5. 05

    If it doesn’t work: “Invalid function parameters. Please check schema.” means the JSON needs fixing. Use a test webhook URL until the owner approves a real one. Recommended test: request one read-only lookup and compare the reply with the actual record in the connected system.

05

Frequently asked questions

Can the agent show a message while a function runs?

Yes. Each function can have its own in-progress message, for example “Checking your order now…”. People see it while the function runs, instead of the generic indicator. Set it separately for each function.

06

More Integrations & Actions skills