Téléchargement automatique des médias des messages WhatsApp Business (stockage HTTP)
Ceci est unBuilding Blocks, Marketingworkflow d'automatisation du domainecontenant 6 nœuds.Utilise principalement des nœuds comme WhatsApp, HttpRequest, WhatsAppTrigger. Téléchargement automatique des fichiers multimédia des messages WhatsApp Business vers un stockage HTTP
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
Nœuds utilisés (6)
Catégorie
{
"meta": {
"instanceId": "4e229722e6c43a4914d2d66178b48335adf795d73afbee5b0ea0c52938ef4d8e",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "a24e0949-dcf6-48d4-8b9e-ce201e8b87d8",
"name": "Note adhésive",
"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": "Note adhésive 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": "Note adhésive 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": "Déclencheur Médias 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": "Récupérer l'URL de téléchargement",
"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": "Télécharger le fichier multimédia",
"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
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - Blocs de construction, Marketing
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
Partager ce workflow