Hi, is there a way for inbound customer SMS to trigger a webhook to an external platform?
Best answer by Brian Turcotte
View originalHi, is there a way for inbound customer SMS to trigger a webhook to an external platform?
Best answer by Brian Turcotte
View originalHey
In general, utilizing webhooks is only available with flows at this time but there’s no native inbound SMS flow trigger. There is a workaround to create a custom metric triggered by the inbound SMS that would then trigger a flow based on that metric. Then you could then add the webhook block within that flow.
Hey
Here’s the flow I’m trying to create:
The custom metric idea seems hacky but interesting. So, you’d create a metric like “Inbound SMS count” or something like that, that triggers every time the count changes?
Couple questions:
Thanks so much!
Steven
Admittedly, this is the extent of my knowledge on the situation. I’m going to move this post to the Developer Group where they can go into much more juicy technical detail and advise you further!
Hi
The use case you referenced is correct - you would need a custom event that triggers a flow (as webhooks are currently only available in flows), and then include the sender phone number, recipient phone number, timestamp, and message body in the payload of the webhook (which is JSON that can be customized).
That said, this is a custom use case that is technically beyond the scope of Community/Support, so you’re always welcome to reach out to one of our wonderful Official Partners for extra development help!
- Brian
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.