#engineering-discussions

Attaching a Webhook to the Chat System for MRM

TLDR Adrian Ang asked how to attach a webhook to their chat system. sojan_official suggested using a cloud function for the webhook event.

Powered by Struct AI

1

3
18mo
Solved
Join the chat
Jun 23, 2022 (18 months ago)
Adrian Ang
Photo of none
Adrian Ang
11:54 PM
Hi, I'm trying to attach a webhook to the chat system. The idea is to send data to our 3rd party MRM (Marketing Resource Management) through an API call. Is there a built-in functionality where we can put our custom code whenever a new "contact" is created? Thanks!
Jun 30, 2022 (18 months ago)
sojan_official
Photo of md5-788237a2af5ff191b07ee9f215706ead
sojan_official
07:24 PM
We don't have ability to run code. But you could configure a cloud function that react for the webhook event : https://github.com/chatwoot/google-cloud-functions-demo
Jul 05, 2022 (18 months ago)
Adrian Ang
Photo of none
Adrian Ang
12:41 AM
Thank you - that's perfcet