WhatsApp Business メッセージ自動メディアダウンロード(HTTP ストレージ)

中級

これはBuilding Blocks, Marketing分野の自動化ワークフローで、6個のノードを含みます。主にWhatsApp, HttpRequest, WhatsAppTriggerなどのノードを使用。 WhatsApp Business メッセージから自動のにメディアファイルを HTTP ストレージへダウンロード

前提条件
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "4e229722e6c43a4914d2d66178b48335adf795d73afbee5b0ea0c52938ef4d8e",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "a24e0949-dcf6-48d4-8b9e-ce201e8b87d8",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2380,
        -400
      ],
      "parameters": {
        "width": 320,
        "height": 240,
        "content": "This note indicates that the workflow triggers when a new WhatsApp message with media is received."
      },
      "typeVersion": 1
    },
    {
      "id": "f513cc8b-89d3-4481-b7fa-ac9d33ba8562",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1980,
        -400
      ],
      "parameters": {
        "width": 320,
        "height": 240,
        "content": "This note explains that the media ID is used to retrieve a private URL for downloading the media."
      },
      "typeVersion": 1
    },
    {
      "id": "3bae6af6-8858-4da4-ab2c-846a2c3e0ffe",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        -400
      ],
      "parameters": {
        "width": 320,
        "height": 240,
        "content": "This note highlights that the media file is downloaded using the retrieved private URL."
      },
      "typeVersion": 1
    },
    {
      "id": "f694abd7-dacf-41a7-82aa-157bfcf54f83",
      "name": "WhatsApp メディアトリガー",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -2280,
        -320
      ],
      "webhookId": "864469fd-2008-445c-83fe-852dac2b236a",
      "parameters": {
        "options": {},
        "updates": [
          "messages"
        ]
      },
      "credentials": {
        "whatsAppTriggerApi": {
          "id": "a41n62XWot5Pm1XE",
          "name": "WhatsApp OAuth account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "33e74a92-4475-470d-8003-7631ea0b706f",
      "name": "メディアダウンロードURL取得",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -1880,
        -320
      ],
      "webhookId": "b052dd6a-55b8-4195-a64e-c0088b7419cc",
      "parameters": {
        "resource": "media",
        "operation": "mediaUrlGet",
        "mediaGetId": "={{ $json.messages[0].image.id }}"
      },
      "credentials": {
        "whatsAppApi": {
          "id": "yVJyvYLlRszyE5sV",
          "name": "WhatsApp account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5e9b09e8-b9d2-4571-a897-d49d32a68c3c",
      "name": "メディアファイルダウンロード",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1500,
        -320
      ],
      "parameters": {
        "url": "={{ $json.url }}",
        "options": {
          "response": {
            "response": {}
          }
        },
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "Ihwbk0P1mYkOZZlr",
          "name": "Whatsapp APi Token"
        },
        "httpHeaderAuth": {
          "id": "Rymur2oAzX9lewU9",
          "name": "Whatsapp API Token"
        }
      },
      "typeVersion": 4.2
    }
  ],
  "pinData": {},
  "connections": {
    "f694abd7-dacf-41a7-82aa-157bfcf54f83": {
      "main": [
        [
          {
            "node": "33e74a92-4475-470d-8003-7631ea0b706f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "33e74a92-4475-470d-8003-7631ea0b706f": {
      "main": [
        [
          {
            "node": "5e9b09e8-b9d2-4571-a897-d49d32a68c3c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - ビルディングブロック, マーケティング

有料ですか?

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

ワークフロー情報
難易度
中級
ノード数6
カテゴリー2
ノードタイプ4
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Usman Liaqat

Usman Liaqat

@usmanliaqat

Full Stack Website Developer & Automation Expert

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34