AutomationFlowsGeneral › Webhook Returning Xml

Webhook Returning Xml

Webhook Returning Xml. Uses xml, respondToWebhook. Webhook trigger; 4 nodes.

Webhook trigger★★☆☆☆ complexity4 nodesXml
General Trigger: Webhook Nodes: 4 Complexity: ★★☆☆☆

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "302c87d4-2c92-40a0-9a77-cef4ddd7db6d",
      "name": "XML",
      "type": "n8n-nodes-base.xml",
      "position": [
        840,
        440
      ],
      "parameters": {
        "mode": "jsonToxml",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "88ba5ee7-4788-452f-9d64-bf192fe90e5f",
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "position": [
        660,
        440
      ],
      "parameters": {
        "values": {
          "number": [
            {
              "name": "number",
              "value": 1
            }
          ],
          "string": [
            {
              "name": "string",
              "value": "my text"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 1
    },
    {
      "id": "6cda9dc3-0fdd-4f3a-aecf-0ff0efd28c33",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1020,
        440
      ],
      "parameters": {
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "content-type",
                "value": "application/xml"
              }
            ]
          }
        },
        "respondWith": "text",
        "responseBody": "={{ $json.data }}"
      },
      "typeVersion": 1
    },
    {
      "id": "94644433-fb9b-4532-81d2-d9673eb6e15e",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        480,
        440
      ],
      "parameters": {
        "path": "test",
        "options": {},
        "responseMode": "responseNode"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Set": {
      "main": [
        [
          {
            "node": "XML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "XML": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

About this workflow

Webhook Returning Xml. Uses xml, respondToWebhook. Webhook trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →