AutomationMart
Home/Browse/Prevent duplicate webhook executions with AARI idempotency gate
n8n

Prevent duplicate webhook executions with AARI idempotency gate

n8nn8n6 modulesv1.0
ShopifyGmailStripe

Who this template is for This template is for anyone running n8n workflows that receive webhooks and perform side effects such as payments, emails, database inserts, or API calls. Webhook providers commonly use at-least-once delivery. If a webhook request times out or fails, the provider retries the same event. From n8n’s perspective this appears as a new trigger, which can cause the workflow to execute twice. How it works This workflow adds an idempotency check before any side eff

At a glance

Prevent duplicate webhook executions with AARI idempotency gate is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Shopify, Gmail, Stripe. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Shopify, Gmail, Stripe
Modules
6
Price
Free
Version
v1.0
Prevent duplicate webhook executions with AARI idempotency gate workflow diagram

About this workflow

Who this template is for This template is for anyone running n8n workflows that receive webhooks and perform side effects such as payments, emails, database inserts, or API calls. Webhook providers commonly use at-least-once delivery. If a webhook request times out or fails, the provider retries the same event. From n8n’s perspective this appears as a new trigger, which can cause the workflow to execute twice. How it works This workflow adds an idempotency check before any side effect runs. When the first event arrives, the workflow records its idempotency key and proceeds normally. If the same event arrives again within 24 hours, the gate returns a BLOCK decision and the workflow stops before any side effects execute. The webhook responds immediately with a 200 OK response., so providers do not retry due to workflow execution time. The idempotency gate then decides whether the workflow should proceed or stop. This prevents duplicate executions such as: - duplicate payments - duplicate confirmation emails - duplicate database rows - duplicate external API calls How to set it up Setup usually takes about 2 minutes. 1. Create a free AARI API key at api.getaari.com/n8n 2. In n8n go to Credentials → New → Header Auth 3. Set the header name to X-API-Key 4. Paste your API key as the value 5. Select this credential in the AARI idempotency gate node 6. Replace the placeholder action node with your real workflow action (Stripe, Gmail, Postgres, etc.) Detailed instructions are included in the sticky notes inside the workflow. Requirements - n8n version 1.0 or later - AARI API key (free tier available) Customization You may need to adjust the idempotencykey depending on your webhook payload. Examples: - Stripe webhook events: {{ $json.id }} - Shopify order events: {{ $json.orderid }} - Generic events: combine stable fields such as {{ $json.type }}:{{ $json.created }} (for example event type + creation time) The key should uniquely identify the event so duplicates can be detected reliably.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Automate agile refinement prep with Gmail, OpenAI & Google Sheets

Who is this for? This workflow is designed for Scrum Masters, Agile Coaches, and Product Owners who want to automate backlog refinement preparation using Google Sheets, Gmail, and OpenAI. It’s ideal for teams seeking consistent, high-quality refinement sessions with minimal manual effort. 🧩 What problem is this workflow solving? Many Agile teams struggle with unprepared refinement sessions, unclear user stories, and inconsistent feedback. This workflow solves that by automating the selection,

Free

Manage Google Calendar & Gmail with a Gemini/GPT powered AI assistant

Manage Google Calendar events and Gmail with a customizable AI assistant ⚠️ Disclaimer: This workflow uses Google Calendar and Gmail nodes which you will have to configure yourself Who’s it for This workflow is built for busy professionals, freelancers, and teams who want to automate calendar scheduling and email handling with the help of an AI assistant. Instead of switching between Gmail and Google Calendar, you can delegate tasks like “schedule a meeting,” “send an invite,” or “check my lat

Free

Score and route inbound web leads with OpenAI, Gmail and Google Sheets

Quick overview This workflow receives web form submissions via webhook, uses OpenAI to score and classify each lead, then emails hot leads through Gmail and logs them to separate Google Sheets tabs for hot versus cold review. How it works 1. Receives a POST webhook request containing lead details (name, email, company, role, message). 2. Normalizes the incoming fields and adds a timestamp. 3. Sends the lead details to OpenAI Chat Completions to return a JSON score (1–10), intent label, and one-s

Free

AI-powered customer feedback collection with GPT-4o, Google Sheets & Slack alerts

Description Automatically send personalized customer feedback requests once a support ticket is marked as closed and centralize responses for service quality tracking. Uses Google Sheets as the ticket source, filters only resolved tickets, and delivers tailored survey invitations via Gmail. Ensures timely, relevant outreach while reducing manual follow-ups. 📧✨ What This Template Does - Fetches support ticket data from a Google Sheets database (“Ticket status dummy”). 📊 - Filters for ticke

Free

YouTube comment scraper & analyzer with GPT-4o + email summary report

How it Works ## This workflow automates the collection and analysis of YouTube comments from a video and sends a summary report via email, using Google Sheets, the YouTube API, OpenAI (GPT-4o), and Gmail. Whether you're a content creator, brand manager, or social media analyst, this workflow helps you automate sentiment analysis and receive insights directly in your inbox — all triggered from a simple spreadsheet. 🎯 Use Case Ideal for: - YouTubers monitoring audience sentiment - Marketing teams

Free

Abandoned cart recovery for Shopify via Gmail, Google Sheets & Twilio (no-code)

Who is this for? This template is ideal for solo store owners, eCommerce marketers, automation beginners, or anyone using Shopify and Gmail who wants to recover lost revenue without coding. What problem does this solve? Customers often leave items in their cart without completing the purchase. Manually chasing those sales is inefficient and inconsistent. This workflow automates the recovery process by sending emails (and optionally SMS) based on Shopify checkout activity. What this workflow does

Free

🛠️ ActiveCampaign tool MCP server 💪 all 48 operations

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator? Join the community Complete MCP server exposing all ActiveCampaign Tool operations to AI agents. Zero configuration needed - all 48 operations pre-built. ⚡ Quick Setup 1. Import this workflow into your n8n instance 2. Activate the workflow to start your MCP server 3. Copy the webhook URL from the MCP trigger node 4. Connect AI agents using the MCP URL 🔧 How it Works • MCP Trigg

Free

Flag bounced emails in Google Sheets from Gmail delivery error messages

Scanning Email Inbox for Delivery Errors Prerequisite: Automate Personalized Email Campaigns with Google Docs, Sheets, and SMTP. How It Works After running your email campaign, some messages may fail to deliver. This workflow scans your email inbox for delivery errors (e.g., bounced messages), flags problematic email addresses in the Google Sheet and ensures future campaigns skip them. How to Use 1. Ensure Prerequisite Workflow: - You should have the Email Campaign Workflow configured and runn

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet
·1 purchase

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free1 sold