This guide walks you through the step-by-step process of configuring a webhook to trigger a Wax flow directly from a Yotpo flow.
Step 1: Setting Up the Webhook in WAX
Go to WAX and Select the Flow
Navigate to WAX and select the flow you want to work with.
Select the Entry Record Button
Click the button for "Webhook" in the flow.
Set Up the URL for the Webhook
Once you’re in the webhook, you’ll need to add an URL.
Click “Add” to create a new URL.
Name the URL appropriately (e.g., "Abandoned & Checkout" if you’re working within the "Abandoned & Checkout" flow).
Generate Information
After adding the URL, WAX will generate the necessary information that you’ll use to set up the webhook in Yotpo.
Step 2: Setting Up the Webhook in Yotpo
Go to the Desired Flow in Yotpo
Navigate to the flow in Yotpo where you want to add the webhook from WAX.
Add Action and Webhook
Click on the “Add” button and then select “Add Action”.
Choose to add a Webhook.
Name the Webhook
Give the webhook a name (e.g., "Abandoned Checkout Flow").
Copy and Paste WAX Information
Go back to WAX and copy the URL generated for the destination in WAX.
Paste this URL into Yotpo under the webhook configuration.
Add the Authorization Key
Also, copy the authorization key from WAX and paste it into the relevant field in Yotpo.
Step 3: Setting up the Json Body
Handle Data Variables
In Yotpo, you’ll need to manage the data variables carefully.
Replace any placeholder data with the correct variables.
Remove Extra Spaces
Pay close attention to any spaces between the variables. Make sure to remove any extra spaces, especially when transferring data
Update First Name and Last Name
If required, do the same for other attributes like the first name or last name, ensuring there are no spaces between the variables.
Add Abandoned Checkout URL
For an abandoned checkout flow, you’ll need to add the Abandoned Checkout URL as a variable.
Validate the JSON Data
Once all the data is in place and configured, validate the JSON to ensure everything is correct.
Save Your Configuration