Templates / Answer Facebook Messenger product questions with OpenAI and Google Sheets

Answer Facebook Messenger product questions with OpenAI and Google Sheets

Ready for 3.0

by Dr. Firas ✓ · 1,164 views · created 2026-08-07 · 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 20 nodes and runs on Facebook events. Along the way it connects Facebook, OpenAI Chat Model, Google Sheets and Facebook Graph API.

How it runs

Trigger: On Facebook events.

  1. Split Out: splits a list into separate items
  2. Split Out: splits a list into separate items
  3. Check Valid Customer Message (If): checks a condition and branches into true / false
  4. Configuration (Edit Fields (Set)): sets 7 fields: openai_model, model_temperature, match_confidence_threshold…
  5. Log Skipped Event to Google Sheets (Google Sheets): append
  6. AI – Extract Product & Customer Intent (AI Agent): runs an AI agent, with model: OpenAI Model — Intent Extraction; output parser: Structured Output Parser
  7. Fetch Inventory Records from Google Sheets (Google Sheets): uses Google Sheets
  8. Combine Intent + Inventory Data (Merge): merges the data from its input branches
  9. Aggregate: combines items into one
  10. Prepare Product Matching Payload (Edit Fields (Set)): sets 3 fields: product_query, customer_intent, inventory_list

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

Services it uses

FacebookOpenAI Chat ModelGoogle SheetsFacebook Graph API

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 (11)

From the author

Quick overview This workflow listens for new Facebook Messenger messages, uses OpenAI to extract the requested product and intent, checks the request against an inventory stored in Google Sheets, replies via the Facebook Graph API, and logs skipped events and…

Excerpt from Dr. Firas'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.