Follow these steps to add and configure a push notification webhook within any Klaviyo flow.
Step 1: Add the Webhook to the Flow
- Open your Flow in Klaviyo.
- From the left sidebar (Actions), drag a Webhook component into your flowchart where the notification should trigger.
- Click the Webhook card in your chart and fill out the left panel:
- Enter a name for the webhook.
- Enter the Destination URL using the following format:
- {baseUrl}/customer/auth/klaviyo-push-notify/{secret}
The secret is automatically generated when FTx Control Center is connected to Klaviyo.
- Under Body, enter the push notification payload in JSON format.
JSON Body Fields
Figure 1.0
The following fields are required:
- external_id: Use {{ person.id }} to identify the customer who should receive the push notification.
- title: The headline displayed in the push notification.
- message: The main content of the push notification.
- campaignId: The campaign ID from FTx Control Center. When provided, the notification is associated with the specified campaign, and customers are redirected to the corresponding campaign details page when they click the notification.
Important: The JSON keys are case-sensitive and required. If any required key is missing or incorrectly formatted, the push notification will not be sent.
- Click Save to activate the webhook.
- Review the status message displayed by Klaviyo to confirm whether the webhook was configured successfully.
: Only JSON formatting is supported for the webhook payload.
Step 4: Personalize Your Text (Add Names or Event Details)
Instead of typing code manually, let Klaviyo generate personalization tags for you:
- Click the grey "View profile & event properties" button at the very bottom left of the panel.
- In the popup window, select what you need:
- "Profile" Tab: For customer details (like First Name, Email).
- "Event" Tab: For action details (like Item Name or Total Price if the flow is triggered by a purchase).
- Click directly on the property name you want to use. Klaviyo will instantly copy the secret code to your clipboard.
- Go back to your JSON box, click inside the quotes of your title or message, and paste it
- Examples of how it looks inside the JSON:
- "title": "Hey {{ person.first_name }}! Your Gift Awaits 🎁"
- "message": "Don't forget! Your {{ event.Item }} is still waiting in your cart."
Step 5: Save and Go Live
- Click "Save" at the bottom of the Webhook panel.
- Change the webhook status from Draft to Live when you are ready to launch!