Sell clothing on Facebook Messenger with Gemini, Stripe, and an admin app
Ready for 3.0What this workflow does
This AI workflow has 306 nodes and runs when an HTTP GET request hits its webhook URL (plus 13 other triggers). Along the way it connects Google Gemini Chat Model, Postgres Chat Memory, Data table and Google Gemini and 2 more. It also calls graph.facebook.com, generativelanguage.googleapis.com and api.stripe.com over HTTP.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 13 other triggers).
- Load verify token (Data table): get
- Acknowledge Event (200 OK) (Respond to Webhook): sends the response back to the webhook caller
- Load connections (messages) (Data table): get
- Load connections (return page) (Data table): get
- Delete Old Message IDs (Data table): delete rows
- Delete Stale Cart Lines (Data table): delete rows
- Read Draft Orders (Data table): get
- Build error details (Edit Fields (Set)): sets 1 field: details
- Render app (Code): runs custom JavaScript code
- Render orders module (Code): runs custom JavaScript code
…plus 263 more steps. See the full node list below.
Services it uses
HTTP calls to: graph.facebook.com, generativelanguage.googleapis.com, api.stripe.com
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 (27)
- Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Split Out
n8n-nodes-base.splitOut - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - Data Table Tool
n8n-nodes-base.dataTableTool - Google Gemini Tool
@n8n/n8n-nodes-langchain.googleGeminiTool - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Chat Memory Manager
@n8n/n8n-nodes-langchain.memoryManager - Wait
n8n-nodes-base.wait - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Filter
n8n-nodes-base.filter - Error Trigger
n8n-nodes-base.errorTrigger - Postgres
n8n-nodes-base.postgres - Manual Trigger
n8n-nodes-base.manualTrigger - Crypto
n8n-nodes-base.crypto - Google Drive
n8n-nodes-base.googleDrive
From the author
Quick overview This workflow turns Facebook Messenger messages into a clothing sales flow powered by Google Gemini, with carts and orders stored in n8n Data Tables, payments handled via Stripe Checkout, customer memory stored in Postgres, and an embedded…