Back to Catalog

Automated inventory management with Airtable PO creation & supplier emails

iamvaariamvaar
397 views
2/3/2026
Official Page

In-depth description of this automation:

This is a fully automated daily supply chain and procurement workflow that keeps product stock levels healthy and suppliers updated, by automatically generating and emailing purchase orders (POs) and syncing PO statuses in Airtable.


📅 Daily triggers

  • Two Schedule Trigger nodes run:

    • One runs at midnight (00:00) to manage low stock and new purchase order creation.
    • Another runs at 1:00 AM to process existing pending POs and email suppliers.

🚦 Step-by-step breakdown

1️⃣ Get Products with low stock

  • Searches the “Products Table” in Airtable for items where {stock_level} <= {reorder_threshold}.
  • Detects products that need restocking.

2️⃣ Get supplier details

  • Fetches supplier data for each low-stock product using its supplier_id.

3️⃣ Calculate Dynamic Reorder Quantity

  • JS code calculates an optimal reorder quantity:

    • Uses average_daily_sales × (lead_time × 1.5) × safety_margin (1.2)
    • Adds extra buffer so the new order covers both immediate demand and next cycle.

4️⃣ Search existing POs

  • Looks in the “Purchase Orders” table for active POs (status Pending or Sent) matching each product.
  • Prevents duplicate orders.

5️⃣ Remove duplicate product orders

  • JS node compares current low-stock products with existing POs.
  • Filters out products already covered, so new POs are only created for truly uncovered products.

6️⃣ Create new purchase orders

  • For filtered products, creates new PO records in Airtable with:

    • product_name
    • product_id
    • calculated reorder_qty
    • supplier info and email
    • initial status Pending

📧 Process existing pending purchase orders and email suppliers

7️⃣ Get Purchase Orders which are pending

  • Searches Airtable for all POs with status Pending.

8️⃣ Group products with suppliers

  • JS code groups these POs by supplier_id.
  • Builds a summary (total products, total quantity) and an HTML email with a styled table of items.

9️⃣ Send PO emails to suppliers

  • Uses Brevo (SendInBlue) to send emails.
  • Subject and content include supplier-specific order details.

🔄 Update PO statuses to Sent

  • Extracts Airtable record IDs of the sent POs.
  • Updates those POs in Airtable, changing status from PendingSent.

📌 Summary

✅ Runs every day ✅ Dynamically calculates reorder needs ✅ Avoids duplicate purchase orders ✅ Automatically creates purchase orders in Airtable ✅ Groups & emails daily PO summaries to suppliers ✅ Updates PO status after sending email


⚙ Tables involved

  • Products Table: stores products, stock levels, reorder thresholds, average daily sales, supplier references.
  • Suppliers Table: stores supplier emails and metadata.
  • Purchase Orders Table: tracks product orders with supplier IDs, status, quantities, etc.

This workflow makes daily procurement fully automated: detects risk of stockouts, creates POs smartly, keeps suppliers in sync by email, and updates order statuses in one closed loop — perfect for any small or mid-sized business using Airtable + N8N.

Automated Inventory Management with Airtable and Brevo

This n8n workflow automates the process of managing inventory, specifically focusing on Purchase Order (PO) creation and sending supplier emails, by integrating with Airtable and Brevo (formerly Sendinblue). It periodically checks your Airtable base for items that need attention and then takes action based on predefined logic.

What it does

This workflow simplifies inventory management by automating the following steps:

  1. Triggers on a Schedule: The workflow runs automatically at regular intervals (e.g., daily, hourly) to check for updates.
  2. Fetches Data from Airtable: It connects to a specified Airtable base and table to retrieve inventory records.
  3. Processes Data with Custom Logic: A Code node is used to apply custom JavaScript logic to the fetched Airtable data. This likely involves filtering records, calculating quantities, or determining which items require a PO or supplier email.
  4. Sends Emails via Brevo: Based on the logic in the Code node, the workflow sends emails to suppliers or internal teams using Brevo, potentially for PO creation or inventory alerts.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance (cloud or self-hosted).
  • Airtable Account: An Airtable account with an existing base and table containing your inventory data.
    • Airtable API Key: Configured as an n8n credential.
  • Brevo (Sendinblue) Account: An account with Brevo for sending emails.
    • Brevo API Key: Configured as an n8n credential.

Setup/Usage

  1. Import the Workflow:
    • Download the provided JSON file for this workflow.
    • In your n8n instance, go to "Workflows" and click "New".
    • Click the "Import from JSON" button and paste the workflow JSON.
  2. Configure Credentials:
    • Locate the "Airtable" node and select or create your Airtable API credential.
    • Locate the "Brevo" node and select or create your Brevo API credential.
  3. Configure Airtable Node:
    • In the "Airtable" node, specify your Base ID and Table Name where your inventory data is stored.
    • Adjust any filters or view settings as needed to fetch the relevant records.
  4. Customize Code Node:
    • Open the "Code" node. This is where you'll define the specific logic for processing your Airtable data.
    • Modify the JavaScript code to:
      • Filter inventory items that need a Purchase Order.
      • Extract necessary information for supplier emails (e.g., supplier name, item details, quantities).
      • Prepare the data structure for the Brevo email.
  5. Configure Brevo Node:
    • In the "Brevo" node, configure the email details:
      • Sender Email and Sender Name.
      • Recipient Email(s) (these can be dynamically pulled from the previous nodes).
      • Subject and HTML Content for the email. Use expressions to inject data from the Code node (e.g., {{ $json.supplierEmail }}, {{ $json.poDetails }}).
  6. Set Schedule Trigger:
    • Open the "Schedule Trigger" node and set your desired interval for the workflow to run (e.g., every 1 hour, once a day at a specific time).
  7. Activate the Workflow:
    • Once all configurations are complete, save the workflow and activate it by toggling the "Active" switch in the top right corner of the workflow editor.

The workflow will now run automatically based on your schedule, checking Airtable for inventory updates and sending emails via Brevo as configured.

Related Templates

Automate event RSVPs with email validation & badge generation using VerifiEmail & HTMLCssToImage

Validated RSVP Confirmation with Automated Badge Generation Overview: This comprehensive workflow automates the entire event RSVP process from form submission to attendee confirmation, including real-time email validation and personalized digital badge generation. ✨ KEY FEATURES: • Real-time Email Validation - Verify attendee emails using VerifiEmail API to prevent fake registrations • Automated Badge Generation - Create beautiful, personalized event badges with attendee details • Smart Email Routing - Send confirmation emails with badges for valid emails, rejection notices for invalid ones • Comprehensive Logging - Track all RSVPs (both valid and invalid) in Google Sheets for analytics • Dual Path Logic - Handle valid and invalid submissions differently with conditional branching • Anti-Fraud Protection - Detect disposable emails and invalid domains automatically 🔧 WORKFLOW COMPONENTS: Webhook Trigger - Receives RSVP submissions Email Validation - Verifies email authenticity using VerifiEmail API Conditional Logic - Separates valid from invalid submissions Badge Creator - Generates HTML-based personalized event badges Image Converter - Converts HTML badges to shareable PNG images using HTMLCssToImage Email Sender - Delivers confirmation with badge or rejection notice via Gmail Data Logger - Records all attempts in Google Sheets for tracking and analytics 🎯 PERFECT FOR: • Conference organizers managing hundreds of RSVPs • Corporate event planners requiring verified attendee lists • Webinar hosts preventing fake registrations • Workshop coordinators issuing digital badges • Community event managers tracking attendance 💡 BENEFITS: • Reduces manual verification time by 95% • Eliminates fake email registrations • Creates professional branded badges automatically • Provides real-time RSVP tracking and analytics • Improves attendee experience with instant confirmations • Maintains clean, verified contact lists 🛠️ REQUIRED SERVICES: • n8n (cloud or self-hosted) • VerifiEmail API (https://verifi.email) • HTMLCssToImage API (https://htmlcsstoimg.com) • Gmail account (OAuth2) • Google Sheets 📈 USE CASE SCENARIO: When someone submits your event RSVP form, this workflow instantly validates their email, generates a personalized badge with their details, and emails them a confirmation—all within seconds. Invalid emails receive a helpful rejection notice, and every submission is logged for your records. No manual work required! 🎨 BADGE CUSTOMIZATION: The workflow includes a fully customizable HTML badge template featuring: • Gradient background with modern design • Attendee name, designation, and organization • Event name and date • Email address and validation timestamp • Google Fonts (Poppins) for professional typography 📊 ANALYTICS INCLUDED: Track metrics like: • Total RSVPs received • Valid vs invalid email ratio • Event-wise registration breakdown • Temporal patterns • Organization/company distribution ⚡ PERFORMANCE: • Processing time: ~3-5 seconds per RSVP • Scales to handle 100+ concurrent submissions • Email delivery within 10 seconds • Real-time Google Sheets updates 🔄 EASY SETUP: Import the workflow JSON Configure your credentials (detailed instructions included) Create your form with required fields (name, email, event, designation, organization) Connect the webhook Activate and start receiving validated RSVPs! 🎓 LEARNING VALUE: This workflow demonstrates: • Webhook integration patterns • API authentication methods • Conditional workflow branching • HTML-to-image conversion • Email automation best practices • Data logging strategies • Error handling techniques ---

Jitesh DugarBy Jitesh Dugar
67

Automatically detect & classify GitHub API errors with GPT-4o to Airtable, Notion & Slack

Automatically detect, classify, and document GitHub API errors using AI. This workflow connects GitHub, OpenAI (GPT-4o), Airtable, Notion, and Slack to build a real-time, searchable API error knowledge base — helping engineering and support teams respond faster, stay aligned, and maintain clean documentation. ⚙️📘💬 🚀 What This Template Does 1️⃣ Triggers on new or updated GitHub issues (API-related). 🪝 2️⃣ Extracts key fields (title, body, repo, and link). 📄 3️⃣ Classifies issues using OpenAI GPT-4o, identifying error type, category, root cause, and severity. 🤖 4️⃣ Validates & parses AI output into structured JSON format. ✅ 5️⃣ Creates or updates organized FAQ-style entries in Airtable for quick lookup. 🗂️ 6️⃣ Logs detailed entries into Notion, maintaining an ongoing issue knowledge base. 📘 7️⃣ Notifies the right Slack team channel (DevOps, Backend, API, Support) with concise summaries. 💬 8️⃣ Tracks & prevents duplicates, keeping your error catalog clean and auditable. 🔄 💡 Key Benefits ✅ Converts unstructured GitHub issues into AI-analyzed documentation ✅ Centralizes API error intelligence across teams ✅ Reduces time-to-resolution for recurring issues ✅ Maintains synchronized records in Airtable & Notion ✅ Keeps DevOps and Support instantly informed through Slack alerts ✅ Fully automated, scalable, and low-cost using GPT-4o ⚙️ Features Real-time GitHub trigger for API or backend issues GPT-4o-based AI classification (error type, cause, severity, confidence) Smart duplicate prevention logic Bi-directional sync to Airtable + Notion Slack alerts with contextual AI insights Modular design — easy to extend with Jira, Teams, or email integrations 🧰 Requirements GitHub OAuth2 credentials OpenAI API key (GPT-4o recommended) Airtable Base & Table IDs (with fields like Error Code, Category, Severity, Root Cause) Notion integration with database access Slack Bot token with chat:write scope 👥 Target Audience Engineering & DevOps teams managing APIs Customer support & SRE teams maintaining FAQs Product managers tracking recurring API issues SaaS orgs automating documentation & error visibility 🪜 Step-by-Step Setup Instructions 1️⃣ Connect your GitHub account and enable the “issues” webhook event. 2️⃣ Add OpenAI credentials (GPT-4o model for classification). 3️⃣ Create an Airtable base with fields: Error Code, Category, Root Cause, Severity, Confidence. 4️⃣ Configure your Notion database with matching schema and access. 5️⃣ Set up Slack credentials and choose your alert channels. 6️⃣ Test with a sample GitHub issue to validate AI classification. 7️⃣ Enable the workflow — enjoy continuous AI-powered issue documentation!

Rahul JoshiBy Rahul Joshi
41

WhatsApp customer support bot with GPT-4 Mini, Google Sheets & Rapiwa API

Who Is This For? This n8n automation workflow is designed for customer support teams, business owners, or service providers who want to automate customer interactions on WhatsApp. If you regularly receive customer queries about your products, services, or technical issues — and need a system that can instantly respond, fetch data from Google Sheets or Docs, log support tickets, and send human-like replies — this workflow is for you. It’s perfect for teams using Rapiwa, Google Sheets, and Google Docs who want to provide a smart, AI-driven, yet personal support experience. What This Workflow Does This workflow is structured around a single intelligent AI assistant called Rapiwa that interacts with customers in real time through WhatsApp. Key Features AI-Driven Support Assistant (Rapiwa) WhatsApp Integration via Rapiwa API Dynamic Data Access (Google Sheets + Docs) Knowledge Base Search Conversation Memory Automatic Logging Multi-Product Support Workflow Overview Rapiwa Trigger (Start Node) Starts the workflow automatically whenever a new WhatsApp message is received in your Rapiwa account. Example: When a customer sends a message like “What’s the price of SocialVibe?” or “I can’t access my dashboard”, this node triggers the workflow. If (Check Text) Detects if the incoming message contains text (not just images, videos, or audio). If it’s text, the workflow continues; otherwise, it stops or handles it differently. AI Agent – Customer Support Agent This is the brain of the system — your AI Assistant (Rapiwa). Interprets the user’s question, retrieves information, and replies in a clear, WhatsApp-friendly format. Reads product details and company info from Google Sheets/Docs. Fetches documentation links from the connected “Support Desk” and product-specific HTTP tools. Logs customer issues to the support sheet for tracking and analysis. Memory (Session Context) Stores chat history per user session so Rapiwa remembers context during a conversation. Research (AI Support Tool) Acts as Rapiwa’s research assistant — gathers and organizes information from multiple sources. Sources: Google Sheets, Google Docs, HTTP Tools, and Support Desk. Replay (Rapiwa Send Message) Sends the AI’s final message back to the customer on WhatsApp using the Rapiwa API. WhatsApp-optimized plain text messages only. Data & Integrations 🔹 Google Sheets (Database) Product Data Sheet: Holds product names, descriptions, and pricing. Service Data Sheet: Lists offered services with details. Support Log Sheet: Records each issue (Issue, Category, Solution). 🔹 Google Docs Provides company information when a user asks about your organization. Example Use Case User Message: > “Hi, I’m having a problem with my Faculty login.” Rapiwa’s AI Response: > “I’m sorry you’re having trouble logging in to Faculty. Please try resetting your password here: https://faculty.spagreen.net/docs/reset-password > If the issue continues, I can log this for support. Would you like me to do that?” Useful Links install process: how to install rapiwa Dashboard: https://app.rapiwa.com Official Website: https://rapiwa.com Documentation: https://docs.rapiwa.com Support & Help WhatsApp: Chat on WhatsApp Discord: SpaGreen Community Facebook Group: SpaGreen Support Website: https://spagreen.net Developer Portfolio: Codecanyon SpaGreen

RapiwaBy Rapiwa
279