Mind Expression Docs
English
  • Mind Expression Docs
  • Why Mind Expression
  • Quickstarts
    • Create Scope
    • Add Subject
    • Test
    • Audit
  • Concepts
    • Scopes
    • Subjects
    • Components
    • Sandbox
    • Conversation history
    • Webhooks and escalation
    • Knowledge
    • Live Chat
    • Target Messages
    • Analytics
  • How-to Guides
    • Set up webhooks and escalation
    • Manage global keys
    • Customize messages
    • Educate AI
      • Manage ontologies
      • Recognition Check
      • Semantic Relations
      • Manage entities
    • Steps
    • Components
      • Normal Components
        • Conditions
        • Selection Classes
        • Parameter Bundles
      • Response Components
        • Component Actions
    • Build Q&A Subjects
      • Case 1. Online Payment
      • Case 2. Data Plans
    • Build Info Search Subjects
      • Case 1. Data Usage
      • Case 2. Payment History
    • Build Query Freestyle Subjects
      • Case 1. Data Purchase
      • Case 2. Change Mobile Plan
    • Intelligent Process
      • Introduction to Mindscript
      • Mindscript with Mind Expression
      • Frequently Asked Question
      • Package: Collections and Sequenceable
      • Package: Collections Unordered
      • Package: Collections-Strings
      • Package: Engine-Conversation
      • Package: Kernel-HTTP
      • Package: Kernel-Methods
      • Package: Kernel-Numbers
      • Package: Kernel-Dates
      • Package: Kernel-Objects
      • Package: Kernel Exceptions
      • Package: Cryptography
    • Test and debug
    • Integration
      • Mind Expression API
      • Chat Widget
      • LINE
      • Facebook Messenger
      • Viber
      • Instagram
      • Discord
      • WhatsApp
      • Google Sheet
        • Google Sheet Webhook
      • Google Calendar
        • Google Calendar Webhook
        • Google Calendar: Use Cases
    • Audit AI Activities
    • Live Chat
    • Target Messages
    • Back up, import and restore Scopes
  • Reference
    • Glossary
    • API Docs
Powered by GitBook
On this page
  • Webhooks
  • Escalation
  • Subjects
  • Conversations

Was this helpful?

  1. Concepts

Webhooks and escalation

PreviousConversation historyNextKnowledge

Last updated 2 years ago

Was this helpful?

Webhooks

The way your AI communicates with external enterprise systems is using webhooks. A webhook is a way for a system or app to provide another system or platform with real-time data in JSON, XML, or form-encoded serialization. Mind Expression is currently only allowing JSON as a standard data interchange format. The main purpose of a webhook is for data integration between our platform and the enterprise's backend system using a service URL.

Webhooks pertaining to a Scope require configuration to become available to a Subject. Preconfigured webhooks will be used when configuring a Subject for response message manipulation. Currently, Mind Expression supports both HTTP and HTTPS protocols, and Basic Authentication for security authentication mechanisms. You can also manipulate the HTTP headers of the webhook. will be used to manipulate a JSON template in the form of a DSL (Domain Specific Language), or to build a GET URL (query Parameter or resource URI). will be used to parse data from the JSON payload.

Escalation

Using an escalation URL, which is an optional webhook, you can send the entire chat script to your enterprise backend system to the human agent on the escalation in case of unsuccessful session termination.

On escalation, Mind Expression sends the entire chat script to the escalation webhook endpoint. The sample JSON schema is as follows.

Subjects

Name

  • What subject the escalation happens

HTTP-headers

  • The same HTTP header that was sent on conversation API from the enterprise system

Conversation-id

  • A unique identifier to distinguish between conversations for your reference

Conversations

User

  • A query from the customer

AI

  • The response from Mind Expression

{
  "subject": {
    "id": "7805b4a9-7128-462b-a7c1-5c04cbb2643b",
    "name": "Change Mobile Package",
    "logical-form": "User wants to change the mobile package"
  },
  "http-headers": [
    {
      "name": "uuid",
      "value": "2826452c-ce7e-4f59-9e14-105a489909f4"
    }
  ],
  "conversation-id": "b8103db7-d31d-4c1a-a6c2-3bf6958fa254",
  "conversations": [
    {
      "timestamp": 1615861988000,
      "user": null,
      "ai": [
        "Welcome to Mind Expression. How can I help you?"
      ]
    },
    {
      "timestamp": 1615861999000,
      "user": "I want to change my mobile package",
      "ai": [
        "These are the Mobile Phone numbers you have. 0101002000 0101012001 0101022002 Which Mobile Phone Number do you want to change package?"
      ]
    }
  ]
}

To learn more about how to set up webhook and escalation, see .

Mustache template
JSONPath
How-to Guides: Set up webhook and escalation