- System events containing complex data structures (in a serialized JSON string).
- System messages containing simple text.
System events
The payload of the system event is a serialized JSON string stored in thedetails property, and its format depends on the source, subtype, and version. The sources send the newest available version, but existing chat documents may contain older versions. Later version numbers indicate more recent versions.
Sample system event body
cdp
CDP stands for Customer Data Platform. It collects customers’ data and emits events related to their interactions with the Text ecosystem.store_order_was_created
Generated when a customer creates an order in an organization’s store.- Version 2
- Version 1
Changes from Version 1: The
title property in order’s line items became mandatory. A mandatory product_id property in order’s line items was added.Sample store_order_was_created payload
store_product_added_to_cart
Generated when a customer adds one or more products to their cart in an organization’s store.Sample store_product_added_to_cart payload
store_product_removed_from_cart
Generated when a customer removes one or more products from their cart in an organization’s store.Sample store_product_removed_from_cart payload
messaging
Messaging source includes system events related to messaging activities, such as information about the generation of thread summaries.summary
Sent when requesting a thread summary in active threads.Sample summary payload
System messages
This section lists the system message types generated in the Text ecosystem. In addition to system messages generated by Text, applications can define their own system messages. The content of the system message event is a string stored in thetext property, and its format depends on the system_message_type. The variables used to generate the text are specified in the text_vars property.
The list of system message types, sorted alphabetically: