The parameters present in Message Header are given as follows:
Parameter | Description | Type | Properties |
---|
sender REQUIRED for inbound and outbound messages | It contains sender information. Helps to identify sender type and role e.g. Agent or Customer. | Sender object. | id - String - unique identifier of the sender - Required type - Enum - sender type with options: agent/bot/connector/app/system - Required senderName - String - Required additionalDetail - Map (String, Object) - Optional
|
channelData REQUIRED for outbound messages | It contains the parameters of the channel type opted by the customer for conversing with the agent. | ChannelData class object | |
channelsessionId REQUIRED for outbound messages | System generated ID to manage the session. | String | - |
schedulingMetaData OPTIONAL for outbound messages | contains data for scheduled campaigns | Map (string or object) | - |
roomId OPTIONAL | inbound messages - send roomId in the header | String | - |
conversationId REQUIRED for outbound messages | System generated ID to manage the conversation. | String | - |
customer REQUIRED for outbound messages OPTIONAL for inbound messages | contains attributes related to the customer. It can be sent as null or customer information can also be sent by 3rd party. | Customer class object | id - UUID - system generated ID assigned to customer firstName - String - name of the customer isAnonymous - bool - if no name is specified, then it is marked true. additionalDetail - Map (String, Object) - Optional
|
Intent OPTIONAL for conversation bot and bot connector only. | Intents are system events to inform the conversational bot to take action on the intent. It is NULL when agent send a message. | Enum | For example, START_CHAT END_CHAT START_VOICE END_VOICE REPLY_TO - used for quote reply. Set the intent to REPLY_TO, then add the parent message id to the originalMessageId field UPDATE - used to update/edit a message CALL_LEG_STARTED CALL_LEG_ENDED ASSIGN_RESOURCE_REQUESTED IVR_AGGREGATED_ACTIVITY START_CONVERSATION
|
stamps |
| List (String) | - |
Entities OPTIONAL for conversation bot and bot connector only. | Entities are the data of intent. e.g. channel session object etc. Entities are used to inform conversational bot about the event and is null for messages sent by agent. | Map (string or object) | - |
providerMessageId OPTIONAL | Channel provider message ID | String |
|
originalMessageId OPTIONAL | ID of a message within a conversation. See Intent field above for REPLY_TO intent. | String | - |
timestamp OPTIONAL | It contains the timestamp at which the message was received. | System datetime class object | - |
language OPTIONAL | Used to specify unicode in case of language change. By default, it is English. | LanguageCode class object | - |
securityInfo OPTIONAL |
| MessageSecurity class object | - |
CODE
{
"id": "63c0ea05-4878-4d65-b6e0-2564ec29fc89",
"header": {
"sender": {
"id": "460df46c-adf9-11ed-afa1-0242ac120002",
"type": "CONNECTOR",
"senderName": "WEB_CONNECTOR",
"additionalDetail": null
},
"channelData": {
"channelCustomerIdentifier": "{{$randomPhoneNumber}}",
"serviceIdentifier": "{{$randomPhoneNumber}}",
"customerFirstName": "{{$randomCustomerFirstName}}",
"customerLastName": "{{$randomCustomerLastName}}",
"requestPriority": 0,
"additionalAttributes": []
},
"language": {},
"timestamp": 1677151053951,
"securityInfo": {},
"stamps": [],
"intent": null,
"entities": {},
"channelSessionId": null,
"schedulingMetaData": null
"conversationId": null,
"customer": null,
"originalMessageId": null,
"providerMessageId": null
}
}