Need to attach ticket ID in the DB post outbound notification

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?

@Rijo_Jacob

is the notification done via the Notification API or via the Campaign Manager?

@gautham via the APIs

@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?

@Akhil_Misri
The exact format would be {{data.event.extraParams.customPayload.ticketID}}

You can always log the whole event to view the complete payload