Academy

How to fix a broken webhook in Klaviyo

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:

Guide image

And inside Logs in Alvas you would see this:

Guide image

Step 2 - Go to the email and turn on Integration Mode

Inside Alvas, go to Emails.

Guide image

Open the email you're working with.

Guide image

Go to texts.

Guide image

Turn on integration mode.

Guide image

Step 3 - Setup custom Webhook

Click Setup Custom Webhook.

Guide image

Here you see a list of all the metrics from your Klaviyo account.

Guide image

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.

Guide image

In my case, the trigger is called Viewed Product (Alvas), so i find that and click it.

Guide image

Then click Next.

Guide image

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.

Guide image

When that's done you can copy the Webhook Body.

Guide image

And then paste it into your broken webhook in Klaviyo.

Guide image

Step 4 - Final Testing and Verification

Send a test request of the webhook by clicking Preview.

Guide image

Then click Send Test Request.

Guide image

And verify that it is sucessful.

Guide image