Use Case
An outbound WA notification goes out to the user with the CSAT survey.
The notification has 3 quick replies. A journey gets triggered when the user presses any of these quick replies. How to store the ticket ID in this DB as the journey gets triggered?
gautham
(Gautham Menon)
March 22, 2023, 5:41am
2
@Rijo_Jacob
is the notification done via the Notification API or via the Campaign Manager?
gautham
(Gautham Menon)
March 22, 2023, 7:15am
4
@Rijo_Jacob
{
"userDetails": {
"number": "{{userNumber}}"
},
"notification": {
"templateId": "{{template}}",
"params": {
"1": "ABC",
"2": "XYZ",
},
"type": "whatsapp",
"sender": "{{sender}}",
"language": "en_GB"
},
"config": {
/// ------------
/// PASS CUSTOM INFO WHICH YOU CAN FETCH IN THE BOT JOURNEY FOR ANY BUTTON CLICKED
"customPayload": {
"ticketID": "{{ticketID}}",
"otherValue":"{{otherVariable}}"
},
/// ------------
"checkOfficeHours":"true"
}
}
In the API body,
You’ll be able to access custom payload in the {{data.event}}
1 Like
@gautham would you fetch the value in the following form: {{data.event.customPayload.tickedID}} or would it be in a different format?
gautham
(Gautham Menon)
March 23, 2023, 4:26am
6
@Akhil_Misri
The exact format would be {{data.event.extraParams.customPayload.ticketID}}
You can always log the whole event to view the complete payload