{
  "name": "send_image",
  "nodes": [
    {
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "ID"
            },
            {
              "name": "phone_number"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1.1,
      "position": [
        -592,
        288
      ],
      "id": "14d7271a-3618-4191-a9f7-a409cac1a798",
      "name": "When Executed by Another Workflow"
    },
    {
      "parameters": {
        "operation": "get",
        "dataTableId": {
          "__rl": true,
          "value": "lXxS4vHGjQbbAYAS",
          "mode": "list",
          "cachedResultName": "Images",
          "cachedResultUrl": "/projects/puWWqJ4WGov4SmWM/datatables/lXxS4vHGjQbbAYAS"
        },
        "matchType": "allConditions",
        "filters": {
          "conditions": [
            {
              "keyName": "image_id",
              "keyValue": "={{ $json.ID }}"
            }
          ]
        },
        "returnAll": true
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1,
      "position": [
        -320,
        288
      ],
      "id": "300df597-756c-45dc-9012-4290c4a6dbdd",
      "name": "Get row(s)"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "93ae85a7-8a33-41d9-956e-a95d0fda2edc",
              "name": "ID",
              "value": "RE-2025-5144",
              "type": "string"
            },
            {
              "id": "2d3219a3-1829-486b-bec3-3f21899020ae",
              "name": "phone",
              "value": "962787499976",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -336,
        -48
      ],
      "id": "654e6714-3b14-4e7c-baad-cbe0de6865da",
      "name": "Edit Fields",
      "disabled": true
    },
    {
      "parameters": {
        "resource": "messages-api",
        "operation": "send-image",
        "instanceName": "hoor_project",
        "remoteJid": "={{ $('When Executed by Another Workflow').item.json.phone_number }}",
        "media": "={{ $json.Image_Url }}",
        "options_message": {}
      },
      "type": "n8n-nodes-evolution-api-english.evolutionApi",
      "typeVersion": 1,
      "position": [
        -128,
        -48
      ],
      "id": "28d152a9-000a-41f5-822f-12000c4bb532",
      "name": "Send image2",
      "credentials": {
        "evolutionApi": {
          "name": "<your credential>"
        }
      },
      "disabled": true
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://cst-evolution-api-ydxmnayy.usecloudstation.com/message/sendMedia/my-EVOAPI",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "number",
              "value": "={{ $('When Executed by Another Workflow').item.json.phone_number }}"
            },
            {
              "name": "mediatype",
              "value": "image"
            },
            {
              "name": "mimetype",
              "value": "image/png"
            },
            {
              "name": "caption",
              "value": "="
            },
            {
              "name": "media",
              "value": "={{ $json.Image_Url }}"
            },
            {
              "name": "fileName",
              "value": "Image.png"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -48,
        288
      ],
      "id": "a442ba58-d75d-42a3-945c-00846deb4a6e",
      "name": "Send image",
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Get row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s)": {
      "main": [
        [
          {
            "node": "Send image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        []
      ]
    },
    "Send image2": {
      "main": [
        []
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "8f118d7f-2404-4cca-b1d3-4352a5636dd4",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "DiYoHzctLiIfb4z5",
  "tags": []
}