Once you configure the integration from within the Viral Loops Campaign wizard, please follow the below instructions for the Webhook Configuration:
1. Log in to your Customer.io account.
2. Click on the Data & Integrations icon on the left, and then select Integrations.
3. Scroll down to API where we have Custom Webhook (Advanced) and select it. Click on Next on the bottom right corner
4. Give your webhook a memorable name. An example can be VL-{CAMPAIGN-NAME}. Leave the shared secret field blank as we will not be using it. Click on Next: Review Destinations.
5. Confirm the source and destination from the diagram provided and click Enable Custom Webhook to save your settings.
6. A successful pop-up will show. Click on Edit destination to set up a connection to Viral Loops.
7. Click Add Action to set up a trigger.
8. Change Trigger to Type - is - Identify.
9. In the Data Structure, paste the webhook URL :
https://app.viral-loops.com//api/integrations/customerio/hooks/participation/{CAMPAIGN_API_TOKEN}.
10. Again in the Data Structure, set Payload to deliver to webhook URL (JSON-encoded). to $.traits
11. Click Save and you'll all be set! New users will be automatically imported to your campaign.



