How to fix a broken webhook in Klaviyo
Step 1 - Identify the error
Typically the error happens if data is missing from the webhook body. This could be a Product Name, a Product URL or Product ID.
Inside Klaviyo you will encounter this error when sending a Test Request:
And inside Logs in Alvas you would see this:
Step 2 - Go to the email and turn on Integration Mode
Inside Alvas, go to Emails.
Open the email you're working with.
Go to texts.
Turn on integration mode.
Step 3 - Setup custom Webhook
Click Setup Custom Webhook.
Here you see a list of all the metrics from your Klaviyo account.
Find the Metric that is used to trigger your flow.
Tip: You can look at the trigger in your flow to see the name of that Metric.
In my case, the trigger is called Viewed Product (Alvas), so i find that and click it.
Then click Next.
Now we're using AI to understand the data structure of your trigger. This allows us to create a Webhook Body that fits your specific data structure.
You will typically wait 10 seconds here.
When that's done you can copy the Webhook Body.
And then paste it into your broken webhook in Klaviyo.
Step 4 - Final Testing and Verification
Send a test request of the webhook by clicking Preview.
Then click Send Test Request.
And verify that it is sucessful.