Block 1 - OpenAI Chat Model
- Type / Role
- @n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
How it Works This workflow lets you build a Messenger AI Agent capable of understanding text , images , and voice notes , and replying intelligently in real time. It starts by receiving messages fr...
@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolcalculator, @n8n/n8n-nodes-langchain.toolwikipedia, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.switch, n8n-nodes-base.function
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Stéphane Bordas.
Original n8n.io sourceThis workflow lets you build a Messenger AI Agent capable of understanding text, images, and voice notes, and replying intelligently in real time.
It starts by receiving messages from a Facebook Page via a Webhook, detects the message type (text, image, or audio), and routes it through the right branch. Each input is then prepared as a prompt and sent to an AI Agent that can respond using text generation, perform quick calculations, or fetch information from Wikipedia.
Finally, the answer is formatted and sent back to Messenger via the Graph API, creating a smooth, fully automated chat experience.
1. Connect credentials
Add your OpenAI API key and Facebook Page Access Token in n8n credentials.
2. Plug the webhook
Copy the Messenger webhook URL from your workflow and paste it into your Facebook Page Developer settings (Webhook → Messages → Subscribe).
3. Customize the agent
Edit the System Message of the AI Agent to define tone, temperature, and purpose (e.g. “customer support”, “math assistant”).
4. Enable memory & tools
Turn on Simple Memory to keep conversation context and activate tools like Calculator or Wikipedia.
5. Test & deploy
Switch to production mode, test text, image, and voice messages directly from Messenger.
💬 Multi-modal Understanding — Handles text, images, and audio messages seamlessly. ⚙️ Full Automation — End-to-end workflow from Messenger to AI and back. 🧠 Smart Replies — Uses OpenAI + Wikipedia + Calculator for context-aware answers. 🚀 No-Code Setup — Build your first Messenger AI in less than 30 minutes. 🔗 Extensible — Easily connect more tools or APIs like Airtable, Google Sheets, or Notion.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.
| Workflow | Facebook Messenger Bot with GPT-4 for Text, Image & Voice Processing |
|---|---|
| Complexity | advanced |
| Nodes | 34 |
| Categories | Support Chatbot, AI Chatbot |
| Author | Stéphane Bordas |
| Published | 07 Oct 2025 |
Use the JSON export at /data/workflows/9347/9347.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
How it Works This workflow lets you build a Messenger AI Agent capable of understanding text , images , and voice notes , and replying intelligently in real time. It starts by receiving messages fr...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.