Hi, is there a way for inbound customer SMS to trigger a webhook to an external platform?
Hey
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:
- Customer texts Klaviyo SMS number
- Klaviyo triggers flow
- Flow hits an external webhook
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:
- How fast is the trigger - ours needs to be instantaneous because it’s a live chat
- What info is shared by the trigger? At a minimum, we’d need to have the sender phone number, recipient phone number, timestamp, and message body
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
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.