Skip to main content

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

Workflow preview

Workflow preview
100%
Auto-respond to Instagram, Facebook & WhatsApp with Llama 3.2 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 provide...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.whatsapptrigger, n8n-nodes-base.webhook, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatollama, n8n-nodes-base.switch, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Auto-respond to Instagram, Facebook & WhatsApp with Llama 3.2
Workflow name
Auto-respond to Instagram, Facebook & WhatsApp with Llama 3.2

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

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - WhatsApp Trigger

Type / Role
n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
Config choices
Version 1

Block 2 - Instagram Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 3 - Facebook Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 4 - Message Processor

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - AI Travel Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 6 - Platform Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 7 - Ollama Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOllama - lmChatOllama
Config choices
Version 1

Block 8 - Response Router

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3

Block 9 - Instagram Sender

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Facebook Sender

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Send message

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Auto-respond to Instagram, Facebook & WhatsApp with Llama 3.2
Complexity intermediate
Nodes 12
Categories Support Chatbot, AI Chatbot
Author Oneclick AI Squad
Published 29 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6632/6632.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Auto-respond to Instagram, Facebook & WhatsApp with Llama 3.2 do?

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 provide...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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.