Crafted by Ritik Makhija — Automations · AI Workflows · Open Source Advocate

Browse 5,000+ n8n Automation Templates

DM “PROJECT” on Instagram to collaborate on custom automation

← Back

Parse json from External API and send to Slack

n8n_2000_workflows / parse-json-external-api-slack.json

Complexity: simpleNodes: 4
apibasedataerrorexternalfetchfromhttprequestincomingjsonn8nn8n_2000_workflowsnodesparseparse-json-external-api-slack.jsonsendsimpleslacktotriggerwebhook

Node Overview

Workflow JSON

{
  "name": "Parse json from External API and send to Slack",
  "nodes": [
    {
      "id": "trigger-external-api",
      "name": "Incoming Trigger",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        -600,
        195800
      ],
      "parameters": {
        "httpMethod": "POST",
        "path": "parse-json-from-external-api-and-send-to-slack",
        "responseCode": 200,
        "responseMode": "onReceived"
      }
    },
    {
      "id": "fetch-external-api",
      "name": "Fetch data from External API",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        -300,
        195800
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.example.com/external-api",
        "responseFormat": "json"
      }
    },
    {
      "id": "send-slack",
      "name": "Send to Slack",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        300,
        195800
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.example.com/slack",
        "responseFormat": "json",
        "options": {}
      }
    },
    {
      "id": "error-handler-600-195800",
      "name": "Send Error to Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        600,
        195800
      ],
      "parameters": {
        "resource": "message",
        "operation": "post",
        "channel": "#automation-alerts",
        "text": "={{ $json.get('error_message', 'An error occurred') }}"
      }
    }
  ],
  "connections": {
    "Incoming Trigger": {
      "main": [
        [
          {
            "node": "Fetch data from External API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch data from External API": {
      "main": [
        {
          "node": "Send to Slack",
          "type": "main",
          "index": 0
        }
      ]
    },
    "Send to Slack": {
      "main": [
        [
          {
            "node": "Send Error to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "active": false
}
Download JSON