How it works
This workflow starts when a shopper adds an item to a Wysh wishlist. It posts an Added to Wishlist custom event to the Attentive Custom Events API using the shopper's email address and the saved product data.
If Wysh supplies a variant ID, Shopify Flow fetches the matching product and adds variant details to the request. If no variant ID is present, the workflow uses a separate request without the variant block.
Before you start
- Install Shopify Flow and Wysh.
- Use an Attentive account that can create a custom app.
- Create an Attentive custom app with write access to Custom Events.
- Copy the bearer token. The downloaded workflow leaves the token blank.
Install the workflow
- Download the ZIP and extract
wysh_attentive_wishlist_item_added.flow. - In Shopify Flow, choose Import workflow.
- Select the extracted
.flowfile. - Review the Wysh trigger, variant check, product lookup and both HTTP request branches.
- Save the workflow without switching it on.
Connect Attentive
- Open each Send HTTP request step.
- Find the
Authorizationheader. - Enter
Bearer YOUR_TOKEN, keeping one space afterBearer. - Leave the endpoint as
https://api.attentivemobile.com/v1/events/custom.
Update both HTTP request branches. Leaving either branch blank will cause some wishlist events to fail.
Review the payload
The request includes wishlist, product, pricing, stock and customer-email data. The variant branch also includes the matched variant ID, SKU, price, inventory, barcode and weight.
Keep the Added to Wishlist event name aligned with any Attentive journey that depends on it.
Enable and test
- Use a test customer with an email address to save a product in Wysh.
- Test a product with a selected variant and a product without a variant ID in the trigger data.
- Confirm the correct branch runs and returns a successful HTTP response.
- Check the custom event and properties in Attentive before activation.
Troubleshooting
- 401 or 403 response: check the bearer token and Custom Events permission.
- Only some events fail: confirm the token was added to both HTTP request steps.
- Variant fields are missing: confirm Wysh supplied a variant ID and the Shopify product lookup succeeded.
- Event is not visible yet: check the Flow response first, then allow for Attentive processing time.