Inventory Reconciliation between Notion & Airtable with GPT-4o Slack Alerts
Go to WorkflowDescription
๐ Description
This workflow performs automated inventory reconciliation between Notion (physical counts) and Airtable (system counts), ensuring both databases stay synchronized.
It fetches records from both systems, merges them into a unified comparison payload, validates the structure, and calculates discrepancies.
If a mismatch is detected, the workflow automatically updates Airtable with the corrected count and notifies the operations team on Slack.
If everything matches, a simple โNo action neededโ Slack message is sent.
Any malformed or incomplete payloads are logged into Google Sheets for audit tracking.
โ๏ธ What This Workflow Does (Step-by-Step)
๐ข Manual Trigger โ Execute Workflow
Starts the reconciliation process on demand.
๐ฅ Fetch Records from Notion
Retrieves physical stock data (cycle count) stored in Notion.
๐ฆ Fetch Records from Airtable
Loads inventory data from Airtableโs system-of-record table.
๐ Merge Notion + Airtable Inputs
Combines both datasets into a single payload for unified processing.
๐ Validate Payload Structure (IF Node)
Ensures that key fields (like id) exist.
Valid โ continue
Invalid โ logged to Google Sheets.
๐งพ Log Invalid Versioning Requests to Google Sheets
Stores broken or incomplete payload entries for later review.
๐งฎ Build Combined Notion + Airtable Payload (Code Node)
Constructs the structured comparison object:
{ notion: {...}, airtable: [...] }
๐ Compare Notion Record With Airtable Record (Code Node)
Performs core reconciliation logic:
Matches items by name
Compares physical vs. system count
Calculates difference
Determines if a correction is needed
If mismatch โ flagged for update.
๐ Check If Record Requires Update (IF Node)
Branches logic into:
Mismatch โ Update Airtable + Alert
Match โ No action summary
๐ ๏ธ Update Airtable Record With Corrected Count
Writes the accurate physical count from Notion into Airtable.
๐ง Configure GPT-4o โ Slack Summary Models
Two models:
For โno action neededโ summaries
For โAirtable updatedโ discrepancy alerts
๐ค Generate Slack Summary / Generate Slack Summary1
AI produces short, precise, operations-friendly Slack messages based on whether a discrepancy existed.
๐ฌ Slack โ Send Summary Notification / Send Update Notification
Sends final Slack message to the operations user, confirming:
Stock match status
Updates made
Item details
Difference values
๐งฉ Prerequisites
Notion API integration
Airtable API credentials
Azure OpenAI GPT-4o
Slack API connection
Google Sheets OAuth
๐ก Key Benefits
โ Eliminates manual reconciliation errors
โ Keeps Airtable continuously aligned with real physical counts
โ Provides instant Slack visibility to operations teams
โ Logs all invalid or malformed cases
โ Centralizes Notion + Airtable consistency checks
๐ฅ Perfect For
Operations teams managing multi-system inventory
Warehouse cycle count workflows
Audit-driven companies needing accurate stock data
Businesses using Notion + Airtable as parallel systems