Auto-Respond to Instagram, Facebook & WhatsApp with Llama 3.2

Go to Workflow
0 views
Built by Oneclick AI Squad Oneclick AI Squad
Created on June 05, 2026

Description

This automated n8n workflow enables AI-powered responses across multiple social media platforms, including Instagram DMs, Facebook messages, and WhatsApp chats using Meta's APIs. The system provides intelligent customer support, lead generation, and smart engagement at scale through AI-driven conversation management and automated response routing.

Good to Know

Supports multi-platform messaging across Instagram, Facebook, and WhatsApp
Uses AI Travel Agent and Ollama Chat Model for intelligent response generation
Includes platform memory for maintaining conversation context and history
Automatic message processing and routing based on platform and content type
Real-time webhook integration for instant message detection and response

How It Works

WhatsApp Trigger** - Monitors incoming WhatsApp messages and initiates automated response workflow
Instagram Webhook** - Captures Instagram DM notifications and processes them for AI analysis
Facebook Webhook** - Detects Facebook Messenger interactions and routes them through the system
Message Processor** - Analyzes incoming messages from all platforms and prepares them for AI processing
AI Travel Agent** - Processes messages using intelligent AI model to generate contextually appropriate responses
Ollama Chat Model** - Provides advanced language processing for complex conversation scenarios
Platform Memory** - Maintains conversation history and context across multiple interactions for personalized responses
Response Router** - Determines optimal response strategy and routes messages to appropriate sending mechanisms
Instagram Sender** - Delivers AI-generated responses back to Instagram DM conversations
Facebook Sender** - Sends automated replies through Facebook Messenger API
Send Message (WhatsApp)** - Delivers personalized responses to WhatsApp chat conversations

How to Use

Import workflow into n8n
Configure Meta's Instagram Graph API, Facebook Messenger API, and WhatsApp Business Cloud API
Set up approved Meta Developer App with required permissions
Configure webhook endpoints for real-time message detection
Set up Ollama Chat Model for AI response generation
Test with sample messages across all three platforms
Monitor response accuracy and adjust AI parameters as needed

Requirements

Access to Meta's Instagram Graph API, Facebook Messenger API, and WhatsApp Business Cloud API
Approved Meta Developer App
Webhook setup and persistent token management for real-time messaging
Ollama Chat Model integration
AI Travel Agent configuration

Customizing This Workflow

Modify AI prompts for different business contexts (customer service, sales, support)
Adjust response routing logic based on message content or user behavior
Configure platform-specific message templates and formatting
Set up custom memory storage for enhanced conversation tracking
Integrate additional AI models for specialized response scenarios
Add message filtering and content moderation capabilities

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
WhatsApp Business Cloud
n8n-nodes-base.whatsApp