Automatisierter Herunterladen von Mediendateien aus WhatsApp Business-Nachrichten (HTTP-Speicher)

Fortgeschritten

Dies ist ein Building Blocks, Marketing-Bereich Automatisierungsworkflow mit 6 Nodes. Hauptsächlich werden WhatsApp, HttpRequest, WhatsAppTrigger und andere Nodes verwendet. Automatisierter Download von Mediendateien aus WhatsApp Business-Nachrichten zu HTTP-Speicher

Voraussetzungen
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "meta": {
    "instanceId": "4e229722e6c43a4914d2d66178b48335adf795d73afbee5b0ea0c52938ef4d8e",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "a24e0949-dcf6-48d4-8b9e-ce201e8b87d8",
      "name": "Notiz",
      "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": "Notiz 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": "Notiz 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 Medien-Trigger",
      "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": "Medien-Download-URL abrufen",
      "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": "Mediendatei herunterladen",
      "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
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - Bausteine, Marketing

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes6
Kategorie2
Node-Typen4
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Autor
Usman Liaqat

Usman Liaqat

@usmanliaqat

Full Stack Website Developer & Automation Expert

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34