Templates / Automated Facebook message response with GPT-4o and Airtable inventory matching

Automated Facebook message response with GPT-4o and Airtable inventory matching

Ready for 3.0

by Rahul Joshi ✓ · 784 views · created 2025-11-28 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 17 nodes and runs on a schedule (every hour). Along the way it connects Airtable, Facebook Graph API, Azure OpenAI Chat Model and Google Sheets.

How it runs

Trigger: On a schedule (every hour).

  1. Fetch Facebook Conversation List (Facebook Graph API): uses Facebook Graph API
  2. Fetch Facebook Conversation Messages (Facebook Graph API): uses Facebook Graph API
  3. Validate Record Structure (If): checks a condition and branches into true / false
  4. Extract Latest Facebook Message (Code): runs custom JavaScript code
  5. Log Invalid Records to Google Sheet (Google Sheets): append
  6. AI – Extract Product & Customer Intent (AI Agent): runs an AI agent, with model: Configure GPT-4o — Message Classification Model
  7. Fetch Inventory Records from Airtable (Airtable): search
  8. Merge: merges the data from its input branches
  9. Build Combined AI + Inventory Payload ( (Code): runs custom JavaScript code
  10. AI – Match Requested Product in Inventory (AI Agent): runs an AI agent, with model: Configure GPT-4o — Product Matching Model

…plus 4 more steps. See the full node list below.

Services it uses

AirtableFacebook Graph APIAzure OpenAI Chat ModelGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

📘 Description This workflow automates AI-driven Facebook Messenger product inquiry handling, connecting Facebook DMs with Airtable inventory and returning instant automated replies based on product availability. It runs hourly, fetches new messages, extracts…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.