Skip to main content

chat-nextgen-completed-cc-v1 Event

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

Properties

Object containing the following properties:

PropertyDescriptionType
eventName (*)Name of the event'completed'
eventId (*)Unique identifier for the eventstring
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/outbound
'inbound' | 'outbound'
media (*)Type of media, here it is chat'chat'
mediaType (*)Type of chat media, here it can be sms/whatsapp'sms' | 'whatsapp'
searchContext (*)It will hold the customer's contact numberstring
endTime (*)The time when the chat endsstring
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-completed-cc-v1 event is emitted by the 8x8 Mashell UI component when a chat-nextgen (sms or whatsapp) is completed.

Listeners

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

Additional Information

Sample Event Payload:

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

Event Attribute details

Event attributeData TypeOptionalDefault valueDescription
eventTypestringNomashell-chat-nextgen-completed-cc-event-v1Name of event type
statusstringNosuccess / failedStatus of the event which is emitted from MaestroSDK is successful or failed
dataobjectNo-Holds details of event
eventNamestringNocompletedName of the event
eventIdstringNo-Unique identifier for the event
methodstringNomapEventEvents published to third party are named as mapEvent
directionstringNoinbound / outboundWhen an agent sends or receives SMS from a customer OR when an agent receives Whatsapp from a customer. here it can be inbound/outbound
mediastringNochatType of media, here it is chat
mediaTypestringNosms / whatsappType of chat media, here it can be sms/whatsapp
searchContextstringNo-It will hold the customer's contact number
endTimestringNo-The time when the chat ends
additionalDataobjectNo-It will hold customer details like description
descriptionstringNo-It will hold chat transcription between customer and agent
schemaVersionstringNo1.0.0Current schema version of the event