WhatsApp Download Media Node

Describe the problem/error/question

WhatsApp Node is not downloading media from audio_id even though the expression is correct. Crazy thing is that, when I put the fixed data, it does download, but not when I put it on expression. I already made sure im draggin the id from the correct section and still is not working out for me :confused: (ILL REPLY WITH PHOTOS)

What is the error message (if any)?

cant get data from expression

Please share your workflow

{
“nodes”: [
{
“parameters”: {
“updates”: [
“messages”
]
},
“type”: “n8n-nodes-base.whatsAppTrigger”,
“typeVersion”: 1,
“position”: [
0,
0
],
“id”: “1dad6e3e-0294-48ce-8043-a7231c0858a4”,
“name”: “WhatsApp Trigger”,
“webhookId”: “1cf00990-0652-4987-9316-708f913bd072”,
“credentials”: {
“whatsAppTriggerApi”: {
“id”: “f3awQybGpnEsKjM7”,
“name”: “WhatsApp OAuth account”
}
}
},
{
“parameters”: {
“rules”: {
“values”: [
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“leftValue”: “={{ $json.messages[0].type }}”,
“rightValue”: “audio”,
“operator”: {
“type”: “string”,
“operation”: “equals”
},
“id”: “24799e6a-89c5-479a-aaf3-41bb31b4e449”
}
],
“combinator”: “and”
},
“renameOutput”: true,
“outputKey”: “Audio”
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “43dc2f35-5f88-4aea-bedd-09da45e053e8”,
“leftValue”: “={{ $json.messages[0].type }}”,
“rightValue”: “text”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
},
“renameOutput”: true,
“outputKey”: “Text”
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “614a4fd6-25d8-460f-975e-07668ce330e6”,
“leftValue”: “={{ $json.messages[0].type }}”,
“rightValue”: “document”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
},
“renameOutput”: true,
“outputKey”: “Document”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.switch”,
“typeVersion”: 3.2,
“position”: [
220,
0
],
“id”: “7e373bd8-51b4-4946-8298-248945546f6e”,
“name”: “Switch”
},
{
“parameters”: {
“resource”: “media”,
“operation”: “mediaUrlGet”,
“mediaGetId”: “={{ $(‘WhatsApp Trigger’).item.json.messages[0].audio.id }}”
},
“type”: “n8n-nodes-base.whatsApp”,
“typeVersion”: 1,
“position”: [
440,
-120
],
“id”: “3cd23f65-dfc8-4639-81d9-3a79a2430b14”,
“name”: “WhatsApp Business Cloud”,
“webhookId”: “88faca0e-0706-4929-9b9c-4fd0cd24affb”,
“credentials”: {
“whatsAppApi”: {
“id”: “NpPRNVXWlVy0uEBX”,
“name”: “WhatsApp account”
}
}
}
],
“connections”: {
“WhatsApp Trigger”: {
“main”: [
[
{
“node”: “Switch”,
“type”: “main”,
“index”: 0
}
]
]
},
“Switch”: {
“main”: [
[
{
“node”: “WhatsApp Business Cloud”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “d8d48c39d28506b54859343555639e28e1f7455c640ac6e452e273787eb34728”
}
}

Information on your n8n setup

  • n8n version: 1.82.3
  • Database (default: SQLite): I dont know? i havent used this so should be default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): still dont know :frowning: must be default too
  • Running n8n via (Docker, npm, n8n cloud, desktop app): im using the online version, on the web
  • Operating system: Mac Os Monterrey

ILL ADD SCREENSHOTS


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.