{
"botId": "<string>",
"conversationId": "<string>",
"createdOn": "<Date>",
"direction": "<EventDirection>",
"id": "<string>",
"integration": "<string>",
"kb": {
"included": [],
"results": []
},
"messageId": "<string>",
"payload": {},
"preview": "<string>",
"state": {},
"tags": {
"conversation": {},
"message": {},
"user": {}
},
"trigger": {
"conversationId": "<string>",
"eventName": "<string>",
"flowId": "<string>",
"integration": "<string>",
"nodeId": "<string>",
"userId": "<string>"
},
"type": "<string>",
"userId": "<string>"
}
event object’s properties.
The event object is available wherever you can use code in Botpress Studio. This includes:
You can also access the event object within certain Cards’ configuration fields.
This documentation omits certain properties of the
event object which exist to maintain internal functionality and aren’t useful for .IncomingEvent
Information about the last incoming event in your bot’s execution.
Show child attributes
Show child attributes
string
required
The ID of the bot that experienced the event.
string
The ID of the conversation that the event took place in.
EventDirection
required
The direction of the event, indicating whether the event was received by the bot or sent from the bot.Possible values:
'incoming': The event originated from the user and was received by the bot.'outgoing': The event was generated by the bot and sent to the user.
string
required
The unique identifier for the event.
string
The integration that the event occurred on.
object
Information about Knowledge Bases queried for the event.
Show child attributes
Show child attributes
Studio.KnowledgeBase.KB[]
required
Array of Knowledge Bases queried for the event.
Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.
Studio.KnowledgeBase.ContentResult[]
Array of Knowledge Base results consulted for this event.
Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.
string
The unique identifier for the current event’s message.
object
required
The payload for the current event.
string
required
A representation of the event in plain text. If the event is text message, this property will contain the message itself.
EventState
required
Data related to the state of the event.
Since most of this object’s properties are for internal use by Botpress, we’ve omitted its deeper structure from this documentation.
EventTags
DM.Trigger
The Trigger that sent the event.
Show child attributes
Show child attributes
string
The ID of the conversation associated with this Trigger.
string
The name of the event that the Trigger sent.
string
required
The ID of the Workflow containing the Trigger.
string
The integration associated with the Trigger.
string
required
The ID of the Node that contains the Trigger.
string
The ID of the user associated with this Trigger.
string
required
The type of the event.
string
The user ID associated with this event.