Chatbot Integration Settings
The integration settings page of your chatbot allows you to change or review many global aspects of your chatbot. Additional integrations are available as actions on your chatbot flow.

API Token

This code represent your chatbot API Token. Depending on the different outside integrations you will use you may need it to call specific Xenioo API related to your chatbot.

API Secret

This code is the API Secret used in various real time integrations meant to directly access data of your Account or Chatbot.

Events Webhook URL

In the Events Webhook field you can specify a webhook url that will receive all of the messages that are sent and received by Xenioo for the current chatbot as well as different events you can enable or disable at will.
When the Webhook is activated, Xenioo will automatically send any of the selected events generated by your chatbot every 20 seconds.
The Events Webhook is not intended as a real-time communication API relay as the average interval for events signal is 20 seconds. This means that all events happened in a conversation will be grouped and sent to your hook with a 20 seconds delay. If you are looking to build an alternate view based on real-time conversation events please refer to our Custom Channel solution
The Webhook payload is always an array of items similar to the example below:
1
[
2
{
3
"Type": 0,
4
"ItemType": "Text",
5
"Data": "Hey you, I'm your chatbot!",
6
"Date": "2019-07-10T15:47:58.580873+00:00",
7
"BotToken": "...",
8
"AccountName": "Matelab Srl",
9
"ConversationId": "...",
10
"UserName":"conversation user name",
11
"Channel": "TelegramChannel"
12
},
13
{
14
"Type": 1,
15
"Data": "Hello there!",
16
"Date": "2019-07-10T15:47:58.5750058+00:00",
17
"BotToken": "...",
18
"AccountName": "Matelab Srl",
19
"ConversationId": "...",
20
"UserName":"conversation user name",
21
"Channel": "TelegramChannel"
22
},
23
{
24
"Type":3,
25
"BotToken": "...",
26
"AccountName": "Matelab Srl",
27
"Name":"Intent Name",
28
"Key":"Intent Key"
29
},
30
{
31
"Type":7,
32
"BotToken": "...",
33
"AccountName": "Matelab Srl",
34
"Text":"Missed AI Text"
35
},
36
]
Copied!
Each array entry can have the following fields:
Field
Description
Type
The type of entry, according to the table below.
ItemType
The item specific visual type.
ItemSubType
The subtype of the item specific visual type.
Data
The content of the message. It can be either the text sent by the user or the message sent by the chatbot. If the user clicks a button this field will contain both its text and its payload.
Date
The exact date of the message
BotToken
The unique bot token associated to the chatbot generating the item
AccountName
The full name of the account generating the item
ConversationId
The Id of the conversation associated to this item
Channel
The name of the channel that generated the item
Text
The text that was not detected by Xenioo AI
Name
The name of the Intent or Entity related to the event
Key
The key of the Intent or Entity related to the event
Message type can have one of the following values:
Value
Type
0
Chatbot chat message
1
User chat message
2
A conversation error has occurred
3
An intent was updated
4
An intent was deleted
5
An entity was updated
6
An entity was deleted
7
A user chat message was not detected by Xenioo Automatic Intent Redirection
8
New user connected to the chatbot. The user has never contacted the chatbot before (or has been forgotten).
9
A user returned to talk with the chatbot. This event is fired only once every 24 hours even if the user comes back multiple times during the day.
10
Take Over happened
11
Hand Over happened
12
The conversation hit a fallback interaction
13
The conversation hit a wrong question reply
The expected Webhook reply must be a standard HTTP 200 OK. The reply body can be empty. If your Webhook fails to correctly reply or is unreachable for more than 10 times Xenioo will stop any further call and alert your account. To re-enable the Webhook simply save again the chatbot settings. A failing Webhook will also trigger an alert email to the account email directly related to the chatbot. Each message sent to your chatbot by a user or delivered by your chatbot to any user will be queued and delivered to your hook at a latency of maximum 20 seconds.
This feature is used on your bots as long as you have an active paid subscription. Each call to your hook will count as an additional outgoing message. Xenioo will consider one single outgoing message regardless of the amount of in and out messages sent to the hook in each single push. So for example if a hook call contains 30 messages that will still count as only one additional outgoing message.
The specified Webhook is ignored if your bot is running under a free plan.