Skip to content
← All skills

Integrations & Actions

Webhooks Skill

Push conversation events to your external systems.

01

How it works

A webhook automatically sends information to another system when something happens in a conversation. For example, when a chat ends, raia can send the transcript to your CRM so your sales team sees it. Functions are different: they let the agent ask another system for information during a conversation, like looking up an order.

02

Video overview

03

Key features

Prerequisites

Before changing this skill, arrange a receiving endpoint owned by your team and an approved event example.

Fields on the form

New Webhook shows Webhook Title, Webhook Description, Webhook to Call, Trigger Condition, + Add Header and Add Webhook. Existing webhooks have Save Changes and Send Test. Send Test sends a real request to your URL ("Test sent successfully" or "Failed to send test webhook request").

04

How to configure it

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

  1. 01

    Open the Webhook Skill and choose New Webhook. Enter Webhook Title, Webhook Description and Webhook to Call using a team-owned approved receiving URL.

    New Webhook: enter a title, description and an approved receiving URL. Blank form, not submitted.
    1. Highlight 1: Webhook Title
    2. Highlight 2: Webhook Description
    3. Highlight 3: Webhook to Call
  2. 02

    Choose Trigger Condition. Trigger after each message is selected by default and sends data every time someone sends a message; for most uses, like saving a transcript to your CRM, choose Trigger when a dialog ends instead. The other options are Trigger when a dialog ends, Trigger when a dialog starts, Trigger when a live chat is currently unavailable, Trigger when a conversation is automatically archived, or Trigger manually (slash commands).

    First three Trigger Condition choices in the actual menu.
    1. Highlight 1: Trigger after each message
    2. Highlight 2: Trigger when a dialog ends
    3. Highlight 3: Trigger when a dialog starts
    Choose when to trigger the webhook: unavailable live chat, automatic archiving or a manual slash command.
    1. Highlight 1: Trigger when a live chat is currently unavailable
    2. Highlight 2: Trigger when a conversation is automatically archived
    3. Highlight 3: Trigger manually (slash commands)
  3. 03

    Use + Add Header if the receiving endpoint requires headers, then click Add Webhook. For an existing entry use Save Changes. Check that the intended entry appears before testing. Send Test sends a real request; use only an approved test endpoint.

    Choose Trigger Condition, add headers only if your endpoint requires them, then select Add Webhook to save the configuration.
    1. Highlight 1: Trigger Condition
    2. Highlight 2: + Add Header
    3. Highlight 3: Add Webhook
  4. 04

    Click Send Test and check that your test endpoint received a POST with an empty JSON object ({}). Once that works, use a fictional conversation to fire the trigger you chose. Inspect that second request to see which fields your integration can use.

05

Frequently asked questions

How do I send one event by hand from Copilot?

Use an approved demo agent and a test receiver you control. Set a webhook's Trigger Condition to Trigger manually (slash commands) and turn on Conversation trigger button. In a finished demo chat in Copilot, open the Conversation actions menu in the message composer and choose Trigger webhook. Select the webhook and click Trigger, then check the request body in your test receiver.

What does a manual Copilot event look like?

Shortened example from a manual Copilot event. Values are fictional. agent.name: "Acme Help Desk"; user.firstName: "Sam"; user.email: "sam@example.com"; user.phoneNumber: "+12025550123"; conversation[0].message: "Can I return my lamp?"; conversation[1].message: "Yes. Include the original power adapter."; score: 7; summary: "The customer asked about returning a lamp." Each item in conversation is one transcript entry, and its message holds the text. An event can carry contact fields such as user.email and user.phoneNumber, so send it only to an endpoint your team approved.

Which fields can a manual Copilot event include?

A manual Copilot event included these top-level fields: agent, user, conversationId, title, conversationSource, conversation, recentMessages, conversationRaw, recentMessagesRaw, score, summary, trigger, originalTrigger and triggeredBy. Each conversation item had role, message, messageId and timestamp, and sometimes authorEmail. Other triggers can send different fields, and formats can vary, so check the payload for the trigger you are integrating before you rely on a field.

06

More Integrations & Actions skills