HTTP, LoyaltyLion, and Klaviyo ActionsUpdated a day ago
HTTP Actions can also be performed by adding webhooks directly inside a Macro.
LoyaltyLion Actions
To award a given number of points to a customer, create an HTTP hook with the info below:
1Title: Award any number of points to a customer2POST3URL: https://api.loyaltylion.com/v2/customers/{{ticket.customer.integrations[XXXXX].customers[0].merchant_id}}/points4Headers:5 Authorization Basic {based64 encoded API key}6 application/json7Body:8{9 "points": 150010}11
Klaviyo Actions
If you want to add a customer to a specific Klaviyo list, you can add an HTTP Action that will do it for you.
1. Go to the Klaviyo segment you want to subscribe customers to.
2. Copy the Subscribe URL (for example https://manage.kmail-lists.com/subscriptions/subscribe?a=123456789).
3. In Gorgias, click the dropdown menu in the top-left corner, then select Workflows. In the menu, locate Tools, then select Macros.
4. Click on Create macro in the top right.
5. Click on Add action -> External actions -> HTTP hook.
6. Fill the hook with the info below:
1Title: Add customer to Klaviyo list2POST: url from step 23Body (application/x-www-form-urlencoded): email {{ticket.customer.email}}4
To add a customer to a Klaviyo list, apply the macro you created.
If you only have one list you want to push all customer emails to, you can set up an HTTP integration. If you have multiple lists, it would be best to keep using Macros.