Chat variables
Leverage dynamic data during live messaging.
Last updated
{
"id": JSHSFHDHBJVKOISFIU,
"display_name": "Weiying",
"location": "MY",
"email": "weiying@proto.cx",
"phone_number": "34898483245",
"ip_address": "0.0.0.0",
}{
"id": customer.id,
"external_customer_id": customer.external_customer_id,
"name": customer.name,
"location": customer.location,
"email": customer.email,
"phone_number": customer.phone_number,
"provided_unique_id": customer.provided_unique_id,
"tags": list(set(customer_tags)),
"tag_groups": [tag_group.name for tag_group in customer.tag_groups],
"custom_fields": {
cf.custom_field.name: cf.value
for cf in (customer_custom_fields or [])
}
}{
"id": channel.id,
"type": "webchat",
}{
"id": new_ticket_id,
"title": subject,
"customer_id": customer_id,
"assignee_type": assignee.type,
"assignee_id": assignee.id,
"description": description,
"bot_id": bot.id,
"channel_id": channel.id,
"custom_attrs": ["fetched_custom_field.name: cf.value"]
}{
"id": new_ticket_id,
"status": ticket_status,
"assignee_names": [assignee_names],
"assigned_team_names": [assigned_team_names],
"customer_name": customer_name
}[
{
"id": new_ticket_id,
"status": ticket_status,
"assignee_names": [assignee_names],
"assigned_team_names": [assigned_team_names],
"customer_name": customer_name
}
...
]