Documentation Logo

Webhook- for flow automations

5 minutes to complete

Add a webhook into your flow, just above the email that will use the GIF

Klaviyo settings screenshot

We'll give you a custom webhook URL & authorization header to use here

Klaviyo settings screenshot

Add the below JSON body to the webhook:

{
 "email": "{{ person.email }}",
 "name" : "{{ person.first_name|default:'' }}",
 "event_data" : "{{ event|strip_html|escape|urlencode }}"
}
Klaviyo settings screenshot

Add a 10min delay between the webhook & email nodes to ensure enough processing time

Klaviyo settings screenshot

Last step is to add the dynamic image to your email template which we’ll do once your GIF is approved and ready to go