Skip to main content

chat-nextgen-terminated-cc-v1 Event

The chat-nextgen-terminated-cc-v1 event is triggered when a chat-nextgen (sms or WhatsApp) ends, after the wrap-up process in the 8x8 Contact Center agent panel.

Properties

Object containing the following properties:

PropertyDescriptionType
eventName (*)Name of the event'terminated'
eventId (*)Unique Id generated for each event at runtimestring
method (*)Events published to third party are named as mapEvent'mapEvent'
direction (*)When an agent sends or receives SMS from a customer OR when an agent receives
Whatsapp from a customer.here it can be inbound or outbound
'inbound' | 'outbound'
media (*)Media is chat for chatnextgen'chat'
mediaType (*)Type of chat - sms or whatsapp'sms' | 'whatsapp'
searchContext (*)It will hold the customer's contact numberstring
endTime (*)Timestamp when agent terminated the chatstring
additionalData (*)It will hold customer details like descriptionObject with properties:
  • description (*): string - It will hold chat transcription between customer and agent
schemaVersion (*)Current schema version of the event'1.0.0'

(*) Required.

Event Emission

The chat-nextgen-terminated-cc-v1 event is emitted by the 8x8 Mashell UI component when a chat-nextgen (sms or whatsapp) ends.

Listeners

The event is consumed by the third-party system, which processes it accordingly.

Additional Information

Sample event payload:

{
eventType: "mashell-chat-nextgen-terminated-cc-event-v1",
status: "success",
data: {
eventName: 'terminated',
eventId: 'eventIDString',
method: 'mapEvent',
direction: 'inbound/outbound',
media: 'chat',
mediaType: 'sms/whatsapp',
searchContext: '+1234567890',
endTime: '1750053834829',
additionalData: {
description: 'chat transcript between agent and customer'
}
}
}