8
n8n 한국어amn8n.com

AI 소셜 미디어 자동 응답 플러그인(Instagram, Facebook 및 WhatsApp)

중급

이것은Support Chatbot, AI Chatbot분야의자동화 워크플로우로, 12개의 노드를 포함합니다.주로 Code, Switch, Webhook, WhatsApp, HttpRequest 등의 노드를 사용하며. Llama 3.2 기반 AI 소셜 미디어 메시지 자동 응답 시스템(Instagram, Facebook, WhatsApp)

사전 요구사항
  • HTTP Webhook 엔드포인트(n8n이 자동으로 생성)
  • 대상 API의 인증 정보가 필요할 수 있음
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "CiNwrwKWPu3H2Je8",
  "meta": {
    "instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281"
  },
  "name": "AI Social Media Auto-Responder Add-on (Instagram, Facebook & WhatsApp)",
  "tags": [],
  "nodes": [
    {
      "id": "a6f84e67-3376-41fe-9f84-79c20b9abd5e",
      "name": "WhatsApp 트리거",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "0d34f8e7-7cae-4aac-8b56-c1ea698bde5e",
      "parameters": {
        "options": {},
        "updates": [
          "messages"
        ]
      },
      "credentials": {
        "whatsAppTriggerApi": {
          "id": "jt1wbDtaEmlHpPFc",
          "name": "WhatsApp -test"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "03c454b3-c54a-4137-8f0b-70e77f04eb6a",
      "name": "Instagram Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        200
      ],
      "webhookId": "1366ec6d-04d2-4019-93d6-c3578fa106ba",
      "parameters": {
        "path": "1366ec6d-04d2-4019-93d6-c3578fa106ba",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "e7f9f0b3-62a1-4efb-b29f-a80a59e57781",
      "name": "Facebook Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        400
      ],
      "webhookId": "ead9ab3d-3c85-45bd-800c-85661b2d4c48",
      "parameters": {
        "path": "ead9ab3d-3c85-45bd-800c-85661b2d4c48",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "3f48de85-02f1-4227-b913-ef5fa501a9ff",
      "name": "메시지 프로세서",
      "type": "n8n-nodes-base.code",
      "position": [
        220,
        200
      ],
      "parameters": {
        "jsCode": "const inputData = $input.first().json;\n\n// WhatsApp Message Processing - Based on your actual data structure\nif (inputData.messaging_product === 'whatsapp' && inputData.messages && inputData.messages[0]) {\n  return {\n    platform: 'whatsapp',\n    senderId: inputData.contacts[0].wa_id,\n    senderName: inputData.contacts[0].profile.name || 'User',\n    message: inputData.messages[0].text.body,\n    messageId: inputData.messages[0].id,\n    timestamp: inputData.messages[0].timestamp\n  };\n}\n\n// Instagram DM Processing\nif (inputData.object === 'instagram' && inputData.entry && inputData.entry[0]) {\n  const entry = inputData.entry[0];\n  const messaging = entry.messaging ? entry.messaging[0] : null;\n  \n  if (messaging) {\n    return {\n      platform: 'instagram',\n      senderId: messaging.sender.id,\n      senderName: 'Instagram User',\n      message: messaging.message.text,\n      messageId: messaging.message.mid,\n      timestamp: messaging.timestamp || Date.now()\n    };\n  }\n}\n\n// Facebook Messenger Processing\nif (inputData.object === 'page' && inputData.entry && inputData.entry[0]) {\n  const entry = inputData.entry[0];\n  const messaging = entry.messaging ? entry.messaging[0] : null;\n  \n  if (messaging) {\n    return {\n      platform: 'facebook',\n      senderId: messaging.sender.id,\n      senderName: 'Facebook User',\n      message: messaging.message.text,\n      messageId: messaging.message.mid,\n      timestamp: messaging.timestamp\n    };\n  }\n}\n\n// Default WhatsApp fallback based on your current data\nreturn {\n  platform: 'whatsapp',\n  senderId: inputData.contacts ? inputData.contacts[0].wa_id : 'unknown',\n  senderName: inputData.contacts ? (inputData.contacts[0].profile.name || 'User') : 'Unknown User',\n  message: inputData.messages ? inputData.messages[0].text.body : 'Hello',\n  messageId: inputData.messages ? inputData.messages[0].id : 'unknown',\n  timestamp: inputData.messages ? inputData.messages[0].timestamp : Date.now()\n};"
      },
      "typeVersion": 2
    },
    {
      "id": "f7cbdab7-7712-4dbd-a384-2e93cec174ce",
      "name": "AI 여행 에이전트",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        440,
        200
      ],
      "parameters": {
        "text": "={{ $json.message }}",
        "options": {
          "systemMessage": "=You are {{ assistant\\_name }}, a professional, friendly, and smart virtual assistant for {{ business\\_name }}.\nYour role is to handle conversations across WhatsApp, Instagram DMs, and Facebook Messenger with clarity, relevance, and an engaging tone.\n\nYou can assist with:\n\n* Answering any type of message (questions, feedback, greetings, etc.)\n* Offering help, recommendations, or information based on user intent\n* Generating leads and qualifying users for follow-up\n* Providing support, updates, or guidance on services/products\n* Driving user engagement with helpful and human-like interactions\n\n---\n\n**Current Platform:** `{{ $json.platform }}`\n**User:** `{{ $json.senderName }}`\n\nAdapt your tone and message style to the platform:\n\n* **WhatsApp** → Friendly and professional\n* **Instagram** → Trendy, casual, and emoji-friendly 😄\n* **Facebook** → Warm and informative\n\nStart new conversations with a personalized greeting using their name when available.\n\n**Example Greetings:**\n\n* WhatsApp: `\"Hi {{ $json.senderName }}! 👋 I'm {{ assistant_name }} from {{ business_name }}. How can I assist you today?\"`\n* Instagram: `\"Hey {{ $json.senderName }}! 💬 I’m {{ assistant_name }} from {{ business_name }} — ready to help or chat! 😊\"`\n* Facebook: `\"Hello {{ $json.senderName }}! 👋 Welcome to {{ business_name }}. I'm {{ assistant_name }} — here to assist you with anything you need!\"`\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "138d5a96-77df-4090-9638-f97fefb86077",
      "name": "플랫폼 메모리",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        588,
        420
      ],
      "parameters": {
        "sessionKey": "={{ $json.platform }}_{{ $json.senderId }}",
        "sessionIdType": "customKey",
        "contextWindowLength": 150
      },
      "typeVersion": 1.3
    },
    {
      "id": "2511ccf9-d304-4bf5-87c5-a9df08d349fd",
      "name": "Ollama 채팅 모델",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        400,
        420
      ],
      "parameters": {
        "model": "llama3.2-16000:latest",
        "options": {}
      },
      "credentials": {
        "ollamaApi": {
          "id": "7td3WzXCW2wNhraP",
          "name": "Ollama - test"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "2768f9da-efd0-4b4a-9363-efca330bc365",
      "name": "응답 라우터",
      "type": "n8n-nodes-base.switch",
      "position": [
        816,
        200
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "version": 1,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "df1409ea-c9f3-49db-8211-09ebc3d6a4dc",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "rightType": "any"
                    },
                    "leftValue": "={{ $('Message Processor').item.json.platform }}",
                    "rightValue": "whatsapp"
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "version": 1,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "3abbb56f-b057-4fee-acbd-b668e8a82f7d",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "rightType": "any"
                    },
                    "leftValue": "={{ $('Message Processor').item.json.platform }}",
                    "rightValue": "instagram"
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "version": 1,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "fbbe45de-f30a-4fc1-8c97-36c13c4a55fa",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "rightType": "any"
                    },
                    "leftValue": "={{ $('Message Processor').item.json.platform }}",
                    "rightValue": "facebook"
                  }
                ]
              }
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "662582af-b7f0-4019-9aee-acb4d07d8f1e",
      "name": "Instagram 발신자",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1036,
        200
      ],
      "parameters": {
        "url": "=https://graph.facebook.com/v18.0/{{ $('Message Processor').item.json.senderId }}/messages",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {}
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Authorization",
              "value": "Bearer YOUR_INSTAGRAM_ACCESS_TOKEN"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "KCqBydsOZHvzNKAI",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "ed99f2fc-74b7-441b-9811-b106203dd117",
      "name": "Facebook 발신자",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1036,
        400
      ],
      "parameters": {
        "url": "https://graph.facebook.com/v18.0/me/messages",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {}
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Authorization",
              "value": "Bearer YOUR_FACEBOOK_ACCESS_TOKEN"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "KCqBydsOZHvzNKAI",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "c2225425-78df-44da-a5b4-4113dfcfba8c",
      "name": "메시지 전송",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1036,
        0
      ],
      "webhookId": "20a10490-a88a-4f19-b262-3e3055884ac5",
      "parameters": {
        "textBody": "={{ $json.output }}",
        "operation": "send",
        "phoneNumberId": "=550325331503475",
        "additionalFields": {},
        "recipientPhoneNumber": "={{ $('Message Processor').item.json.senderId }}"
      },
      "credentials": {
        "whatsAppApi": {
          "id": "b0PxTDPdWzznWnfG",
          "name": "WhatsApp-test "
        }
      },
      "typeVersion": 1
    },
    {
      "id": "fad91265-1b34-4e8a-b6e9-303a7bb9b154",
      "name": "스티키 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -220
      ],
      "parameters": {
        "width": 780,
        "height": 280,
        "content": "## Purpose:\nEnable your AI assistant to automatically respond to Instagram DMs, Facebook messages, and WhatsApp chats using Meta’s APIs—ideal for customer support, lead generation, and smart engagement at scale.\n\n## Requirements:\n\n1. Access to Meta’s Instagram Graph API, Facebook Messenger API, and WhatsApp Business Cloud API\n2. Approved Meta Developer App\n3. Webhook setup and persistent token management for real-time messaging"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "03c4ca8e-da13-4c0c-84e1-8762522da61d",
  "connections": {
    "c2225425-78df-44da-a5b4-4113dfcfba8c": {
      "main": [
        []
      ]
    },
    "f7cbdab7-7712-4dbd-a384-2e93cec174ce": {
      "main": [
        [
          {
            "node": "2768f9da-efd0-4b4a-9363-efca330bc365",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ed99f2fc-74b7-441b-9811-b106203dd117": {
      "main": [
        []
      ]
    },
    "138d5a96-77df-4090-9638-f97fefb86077": {
      "ai_memory": [
        [
          {
            "node": "f7cbdab7-7712-4dbd-a384-2e93cec174ce",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "2768f9da-efd0-4b4a-9363-efca330bc365": {
      "main": [
        [
          {
            "node": "c2225425-78df-44da-a5b4-4113dfcfba8c",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "662582af-b7f0-4019-9aee-acb4d07d8f1e",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "ed99f2fc-74b7-441b-9811-b106203dd117",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e7f9f0b3-62a1-4efb-b29f-a80a59e57781": {
      "main": [
        [
          {
            "node": "3f48de85-02f1-4227-b913-ef5fa501a9ff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "662582af-b7f0-4019-9aee-acb4d07d8f1e": {
      "main": [
        []
      ]
    },
    "a6f84e67-3376-41fe-9f84-79c20b9abd5e": {
      "main": [
        [
          {
            "node": "3f48de85-02f1-4227-b913-ef5fa501a9ff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "03c454b3-c54a-4137-8f0b-70e77f04eb6a": {
      "main": [
        [
          {
            "node": "3f48de85-02f1-4227-b913-ef5fa501a9ff",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3f48de85-02f1-4227-b913-ef5fa501a9ff": {
      "main": [
        [
          {
            "node": "f7cbdab7-7712-4dbd-a384-2e93cec174ce",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2511ccf9-d304-4bf5-87c5-a9df08d349fd": {
      "ai_languageModel": [
        [
          {
            "node": "f7cbdab7-7712-4dbd-a384-2e93cec174ce",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 지원 챗봇, AI 챗봇

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수12
카테고리2
노드 유형10
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

저자
Oneclick AI Squad

Oneclick AI Squad

@oneclick-ai

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34