This workflow provides a complete, automated post-purchase solution triggered by a successful payment webhook from Abacate Pay. (For international users, think of Abacate Pay as 'the Brazilian Stripe' – a popular and robust payment gateway in Brazil).
When a successful payment is registered, this workflow instantly sends a beautiful, responsive HTML confirmation email to the customer and posts a detailed notification to a designated Slack channel.
The key feature is its ability to dynamically reward first-time buyers. The workflow checks the customer's purchase history, and if it's their first order, it automatically generates a 10% discount coupon for their next purchase and includes it in the welcome email.
Configs
node makes it easy to manage static variables like company name and tokens.billing.paid
).Set
node and fill in your company's information (companyName
, companySite
, companyEmail
) and the token
used to validate the webhook requests.GetOrders
, CreateCustomCoupon
): In both nodes, go to the "Authentication" or "Header" section and replace the placeholder Bearer Token with your actual Abacate Pay API key.SMTP
, Gmail
).SMTP
, SendGrid
, Gmail
)