Webhook for ending conversation in Messenger? | Community
Skip to main content
Answered

Webhook for ending conversation in Messenger?

  • March 14, 2022
  • 3 replies
  • 26 views

Use Case:

Customer uses our messenger to go through custom bot, eventually entering their contact information into the messenger when their situation is not resolved. Is there a webhook on the customer finishing the conversation in messenger so that I can submit that information to my CRM through my Lambda?

Best answer by Eric Fitz

That would also do the trick in your case! The key here is to use Operator's admin_id, which you'll find by returning your list of admins through the API.

3 replies

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • March 14, 2022

Hey @chris c13​, you'd use the conversation.admin.closed webhook topic with the admin_id for Operator!


  • Author
  • Connector
  • March 14, 2022

Hey @eric f11​, thanks for the reply. I'm actually exploring the conversation.user.created webhook right now as that seems to be more of what I need to do, since we're not closing. I think I'll likely use the conversation.admin.closed to add to the case once the conversation is over.


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Answer
  • March 14, 2022

That would also do the trick in your case! The key here is to use Operator's admin_id, which you'll find by returning your list of admins through the API.