AI TelegramおよびWhatsApp Business向けエージェント

上級

これはAI分野の自動化ワークフローで、21個のノードを含みます。主にIf, Set, Code, OpenAi, Webhookなどのノードを使用、AI技術を活用したスマート自動化を実現。 AI 駆動型 Telegram と WhatsApp Business エージェント ワーキングフロー

前提条件
  • OpenAI API Key
  • HTTP Webhookエンドポイント(n8nが自動生成)
  • Telegram Bot Token
  • ターゲットAPIの認証情報が必要な場合あり
  • Google Sheets API認証情報

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "name": "AI Telegram & WhatsApp Business Agent",
  "tags": [
    {
      "id": "telegram",
      "name": "Telegram",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    {
      "id": "whatsapp",
      "name": "WhatsApp",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    {
      "id": "ai-agent",
      "name": "AI Agent",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    {
      "id": "customer-service",
      "name": "Customer Service",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    }
  ],
  "nodes": [
    {
      "id": "intro_sticky",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        180
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "telegram_trigger",
      "name": "Telegram Bot",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        160,
        280
      ],
      "webhookId": "telegram-ai-agent",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "whatsapp_webhook",
      "name": "WhatsApp Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        160,
        420
      ],
      "webhookId": "whatsapp-ai-webhook",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "normalize_message",
      "name": "メッセージデータの正規化",
      "type": "n8n-nodes-base.set",
      "position": [
        460,
        350
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "processing_sticky",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "get_customer_data",
      "name": "顧客履歴の取得",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        760,
        350
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "build_context",
      "name": "AIコンテキストの構築",
      "type": "n8n-nodes-base.code",
      "position": [
        1060,
        350
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "intelligence_sticky",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ai_assistant",
      "name": "AIビジネスアシスタント",
      "type": "n8n-nodes-base.openAi",
      "position": [
        1360,
        350
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ai_sticky",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1340,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "process_response",
      "name": "AI応答の処理",
      "type": "n8n-nodes-base.code",
      "position": [
        1660,
        350
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "platform_router",
      "name": "プラットフォームルーター",
      "type": "n8n-nodes-base.if",
      "position": [
        1960,
        350
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "send_telegram",
      "name": "Telegram メッセージ送信",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2260,
        280
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "send_whatsapp",
      "name": "WhatsApp メッセージ送信",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2260,
        420
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "delivery_sticky",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2240,
        60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "log_conversation",
      "name": "会話のログ記録",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2560,
        350
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "update_customer",
      "name": "顧客レコードの更新",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2860,
        350
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "check_escalation",
      "name": "エスカレーション確認",
      "type": "n8n-nodes-base.if",
      "position": [
        2560,
        200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "notify_team",
      "name": "サポートチームへ通知",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2860,
        200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "analytics_sticky",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2540,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "webhook_response",
      "name": "Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3160,
        420
      ],
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "updatedAt": "2025-01-01T00:00:00.000Z",
  "versionId": "1",
  "staticData": null,
  "connections": {
    "ai_assistant": {
      "main": [
        [
          {
            "node": "process_response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "build_context": {
      "main": [
        [
          {
            "node": "ai_assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "send_telegram": {
      "main": [
        [
          {
            "node": "log_conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "send_whatsapp": {
      "main": [
        [
          {
            "node": "log_conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "platform_router": {
      "main": [
        [
          {
            "node": "send_telegram",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "send_whatsapp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "update_customer": {
      "main": [
        [
          {
            "node": "webhook_response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check_escalation": {
      "main": [
        [
          {
            "node": "notify_team",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "log_conversation": {
      "main": [
        [
          {
            "node": "update_customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "process_response": {
      "main": [
        [
          {
            "node": "platform_router",
            "type": "main",
            "index": 0
          },
          {
            "node": "check_escalation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "telegram_trigger": {
      "main": [
        [
          {
            "node": "normalize_message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "whatsapp_webhook": {
      "main": [
        [
          {
            "node": "normalize_message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_customer_data": {
      "main": [
        [
          {
            "node": "build_context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "normalize_message": {
      "main": [
        [
          {
            "node": "get_customer_data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "triggerCount": 2
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - 人工知能

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数21
カテゴリー1
ノードタイプ11
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者
Amanda Benks

Amanda Benks

@amanda

Hi loves! I've been making workflows for n8n for two years, and I hope you like my flows <3

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34