Skip to main content

Automated order confirmations with Abacate Pay: first-buyer coupon rewards via email & Slack

Workflow preview

Workflow preview
100%
Automated order confirmations with Abacate Pay: first-buyer coupon rewards via email & Slack preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 Str...

Best for

  • CRM automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.respondtowebhook, n8n-nodes-base.code, n8n-nodes-base.emailsend, n8n-nodes-base.slack, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Matheus Pedrosa.

Original n8n.io source

1.1 Workflow description

Title
Automated order confirmations with Abacate Pay: first-buyer coupon rewards via email & Slack
Workflow name
Automated order confirmations with Abacate Pay: first-buyer coupon rewards via email & Slack

Workflow Overview

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.

Key Features:

  • Webhook Trigger: Securely listens for successful payment events from Abacate Pay.
  • First-Time Buyer Detection: Queries past orders to identify new customers.
  • Automatic Coupon Generation: Creates a unique, single-use discount coupon for new buyers.
  • Dynamic Content: The email and Slack messages automatically include the coupon details, but only for first-time buyers.
  • Responsive HTML Email: Sends a professional and mobile-friendly order confirmation.
  • Rich Slack Notifications: Uses Block Kit for well-formatted, actionable alerts for your team.
  • Centralized Configuration: A single Configs node makes it easy to manage static variables like company name and tokens.

Setup Instructions:

  1. Webhook Node: Copy the webhook URL and paste it into your Abacate Pay dashboard for the "payment successful" event (e.g., billing.paid).
  2. Configs Node: Open this Set node and fill in your company's information (companyName, companySite, companyEmail) and the token used to validate the webhook requests.
  3. HTTP Request Nodes (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.
  4. Send Email Node: Select your email credentials from the dropdown or configure a new account (e.g., SMTP, Gmail).
  5. Slack Node: Select your Slack credentials and choose the channel where you want to receive notifications.
  6. Activate the Workflow: Save and activate the workflow. It's now ready to process incoming orders!

Required Credentials:

  • Abacate Pay API Credentials
  • Email Credentials (e.g., SMTP, SendGrid, Gmail)
  • Slack API Credentials

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Configs

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - CheckToken

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 4 - RespondError

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 5 - MakeBodyEmail

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Send Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 7 - Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 8 - CreateCustomCoupon

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - GetOrders

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - CheckFirstOrder

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automated order confirmations with Abacate Pay: first-buyer coupon rewards via email & Slack
Complexity intermediate
Nodes 13
Categories CRM, Multimodal AI
Author Matheus Pedrosa
Published 14 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7400/7400.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated order confirmations with Abacate Pay: first-buyer coupon rewards via email & Slack do?

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 Str...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM, Multimodal AI use case.