Skip to main content
Answered

Get event which triggered a conversation


Hey there,

 

I created a transactional message from an event and I would like to get the events custom data in my webhook, once the user answered to the conversation. From the api I don't see any way to get the event which triggered the conversation. Can you help me out here?

Another option would be to listen for created events and trigger the conversation myself and add the meta data from the event as custom_attributes to the conversation. But how do I tell the API to send the conversation as snipped?

 

Thanks upfront

Best answer by Aparna

Hey @user2226​! You can use the topic conversation.user.replied to receive a notification when a user replied but this would send notification for all replies sent by the user in any conversation. More details in this doc

 

You can directly submit the event using this endpoint and also you can specify the metadata in the API call. You can list the event using the API to identify the users and then send messages to the users using API. If you want to update the user with attributes then you would need to use the update user endpoint

 

 

View original
Did this topic help you find an answer to your question?

2 replies

  • Employee
  • 328 replies
  • Answer
  • January 24, 2022

Hey @user2226​! You can use the topic conversation.user.replied to receive a notification when a user replied but this would send notification for all replies sent by the user in any conversation. More details in this doc

 

You can directly submit the event using this endpoint and also you can specify the metadata in the API call. You can list the event using the API to identify the users and then send messages to the users using API. If you want to update the user with attributes then you would need to use the update user endpoint

 

 


  • Author
  • New Participant
  • 2 replies
  • January 31, 2022

Hey, thanks for the answer. I checked the payload of the conversion.user.replied event and I don't see any reference to the event which triggered the conversation and thus I can't get the relation between conversion and event and therefore not the metadata of the event. Did I miss something here?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings