Quick overview
This workflow receives abandoned-cart events via a webhook, uses ApogeoAPI to geolocate the shopper and convert the cart total from USD to the shopper’s local currency, then waits one hour and sends a localized recovery email via SMTP.
How it works
- Receives an abandoned cart event via a POST webhook containing the shopper email, IP address, cart total in USD, and checkout URL.
- Uses ApogeoAPI to geolocate the shopper’s IP address and retrieve the country details, including the local currency.
- Uses ApogeoAPI to fetch the current USD-to-local exchange rate and calculates a localized cart total plus a region-specific greeting, language, and coupon.
- Waits one hour to give the shopper time to complete the purchase without a reminder.
- Sends a recovery email via SMTP that includes the localized cart total, localized message copy, coupon code, and a link back to the checkout.
Setup
- Self-host n8n and install the
n8n-nodes-apogeoapi community node.
- Create an ApogeoAPI account, add your ApogeoAPI credentials in n8n, and ensure the workflow nodes reference that credential.
- Configure your store (for example, Shopify) to POST abandoned-cart events to the workflow webhook URL and map the event fields to the expected payload.
- Add an SMTP (or other supported email) credential and update the “from” address used to send the recovery email.
Requirements
- Self-hosted n8n — community nodes are not available on n8n Cloud
- An ApogeoAPI account — signup includes 14 days of full access; IP geolocation and exchange rates require a paid plan afterwards
- An SMTP credential to send the recovery email
- An ecommerce platform that can POST abandoned-cart events to a webhook, sending email, first_name, ip and cart_total_usd
Customization
- Change the wait duration before the reminder is sent
- Replace the coupon codes per region, or remove the discount entirely
- Add more languages to the localization rules in the Code node
- Adjust currency rounding and the display format of the localized total
- Swap the email node for SMS, WhatsApp or a push channel