{
  "id": "VQKwOBOL659w93wt",
  "name": "Serve Inspirational Quotes On-Demand via Webhook using ZenQuotes API",
  "tags": [
    {
      "id": "F1KjxL3SjfvVqZqo",
      "name": "training-n8n",
      "createdAt": "2025-04-29T10:40:13.332Z",
      "updatedAt": "2025-04-29T10:40:13.332Z"
    }
  ],
  "nodes": [
    {
      "id": "88e43bad-07dc-4742-b3c6-fe70059d209f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        -240
      ],
      "parameters": {
        "color": 4,
        "width": 280,
        "height": 200,
        "content": "## Beginner friendly workflow on how to work with API and format the data into your desire output"
      },
      "typeVersion": 1
    },
    {
      "id": "65d7b23d-b919-4dc3-b16e-d60565d5cda5",
      "name": "Get Random Quote from ZenQuotes",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        80
      ],
      "parameters": {
        "url": "https://zenquotes.io/api/random",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "count",
              "value": "5"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "c5ad35dc-62b6-488f-a501-d834e538dbf9",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        80
      ],
      "parameters": {
        "path": "c376e35b-80f3-4086-abec-d2c5a4501fb3",
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "3a5da469-919c-411e-a5e9-a95a2178b01a",
      "name": "Send response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        940,
        80
      ],
      "parameters": {
        "options": {},
        "respondWith": "json",
        "responseBody": "{\n  \"quote\": \"{{ $json.quotes }}\"\n}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "cc390845-9e73-4761-92aa-5bbbff906e77",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        40
      ],
      "parameters": {
        "width": 260,
        "height": 180,
        "content": "### Receives incoming requests"
      },
      "typeVersion": 1
    },
    {
      "id": "4996be52-267c-4900-87c1-3d6654ef0938",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        40
      ],
      "parameters": {
        "color": 2,
        "width": 300,
        "height": 220,
        "content": "### Fetches random quotes"
      },
      "typeVersion": 1
    },
    {
      "id": "94532c78-d55e-4672-b984-385cd2e04b5c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        40
      ],
      "parameters": {
        "color": 3,
        "width": 260,
        "height": 200,
        "content": "### Formats into \u2018quote \u2013 author\u2019 strings"
      },
      "typeVersion": 1
    },
    {
      "id": "83a09872-7da8-47ed-8b3d-e81b52d75050",
      "name": "Format data",
      "type": "n8n-nodes-base.set",
      "position": [
        640,
        80
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "6b646b1c-914b-437e-ba5e-5a1fbfebbde9",
              "name": "quotes",
              "type": "string",
              "value": "=\"{{ $json.q }}\" - {{ $json.a }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "978227eb-2963-4dda-8341-fe75c2376506",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        40
      ],
      "parameters": {
        "width": 260,
        "height": 200,
        "content": "### Sends back JSON array"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "79051d11-19e3-4326-bf6e-0ac0f81ffc43",
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Get Random Quote from ZenQuotes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format data": {
      "main": [
        [
          {
            "node": "Send response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Random Quote from ZenQuotes": {
      "main": [
        [
          {
            "node": "Format data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}