{
  "name": "Create daily trivia icebreakers in Slack with OpenTDB & Google Sheets log",
  "nodes": [
    {
      "id": "ae38a38c-9ff2-4b8a-8d98-d8dbe5e36469",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        608,
        432
      ]
    },
    {
      "id": "0b944199-c67a-4f77-9d7f-ab1743ee956b",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -512,
        448
      ]
    },
    {
      "id": "ffa93ec5-11a3-4390-aca4-2a29e23aca15",
      "name": "Sheets: Append Trivia",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1056,
        448
      ]
    },
    {
      "id": "d6ed8342-6f43-47f8-ade3-ccfc353f2006",
      "name": "Slack: Post Trivia",
      "type": "n8n-nodes-base.slack",
      "position": [
        832,
        448
      ]
    },
    {
      "id": "ee2920c2-ddf0-46da-a20c-6a80814bccc9",
      "name": "Switch: triviaType",
      "type": "n8n-nodes-base.switch",
      "position": [
        -64,
        432
      ]
    },
    {
      "id": "d68d1cb6-b8ee-465d-881f-11c821a7b12e",
      "name": "Set: Choose Trivia Type",
      "type": "n8n-nodes-base.set",
      "position": [
        -288,
        448
      ]
    },
    {
      "id": "64cf3c29-bc3f-4d8b-b5cb-3c8c895f8a16",
      "name": "HTTP OpenTDB Easy",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        256
      ]
    },
    {
      "id": "09adb329-e04a-4856-82c3-e9008a2b0f47",
      "name": "Set Message Easy",
      "type": "n8n-nodes-base.set",
      "position": [
        384,
        256
      ]
    },
    {
      "id": "0b87ced1-e968-4867-8e81-90d09f03c9f5",
      "name": "HTTP OpenTDB Medium",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        448
      ]
    },
    {
      "id": "a3fd7aa8-672c-4420-b5be-b3b978b7e6c2",
      "name": "Set Message Medium",
      "type": "n8n-nodes-base.set",
      "position": [
        384,
        448
      ]
    },
    {
      "id": "66b5cc85-50ca-4fe6-8b75-1722a8dcd744",
      "name": "HTTP OpenTDB Hard",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        640
      ]
    },
    {
      "id": "5692e7f9-0737-4225-b3a0-c49bf9c3d22e",
      "name": "Set Message Hard",
      "type": "n8n-nodes-base.set",
      "position": [
        384,
        640
      ]
    },
    {
      "id": "7ca423c6-44b7-4002-a94a-dbae89ce39a7",
      "name": "Sticky: Template Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        -128
      ],
      "parameters": {
        "width": 900,
        "height": 520,
        "content": "## Daily trivia to Slack + Google Sheets\n\nThis workflow fetches a random multiple-choice trivia question from the Open Trivia Database (OpenTDB), posts it to Slack, and logs it in Google Sheets to bui"
      }
    },
    {
      "id": "833aa505-da7f-4a43-a070-557e4b820c46",
      "name": "Sticky: Trigger & Routing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        176
      ],
      "parameters": {
        "width": 520,
        "height": 260,
        "content": "## Trigger and difficulty routing\n\n- **Schedule Trigger** starts the workflow once per day at your chosen time.\n- **Set: Choose Trivia Type** randomly assigns a difficulty value (`easy`, `medium`, or "
      }
    },
    {
      "id": "f59b76ab-d7ba-4772-b4d3-3980b5d8977a",
      "name": "Sticky: Easy Branch",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -144
      ],
      "parameters": {
        "width": 520,
        "height": 320,
        "content": "## Easy trivia branch\n\n- **HTTP OpenTDB Easy** calls the OpenTDB API with `difficulty=easy` and returns one multiple-choice question.\n- **Set Message Easy** normalizes the response into common fields:"
      }
    },
    {
      "id": "0d642e28-3a34-44ba-b4f2-21b3e9f21dc6",
      "name": "Sticky: Medium & Hard Branches",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        832
      ],
      "parameters": {
        "width": 560,
        "height": 280,
        "content": "## Medium & hard trivia branches\n\n- **HTTP OpenTDB Medium** and **HTTP OpenTDB Hard** call the same OpenTDB endpoint with different `difficulty` values.\n- **Set Message Medium** and **Set Message Hard"
      }
    },
    {
      "id": "49fe5900-8502-4046-9825-7f7e855ac288",
      "name": "Sticky: Merge, Slack & Sheets",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        64
      ],
      "parameters": {
        "width": 620,
        "height": 320,
        "content": "## Merge, Slack posting, and Sheets logging\n\n- **Merge** combines items from the easy, medium, and hard branches into a single stream.\n- **Slack: Post Trivia** uses `messageTitle` and `messageBody` to"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Slack: Post Trivia",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set: Choose Trivia Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Message Easy": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Message Hard": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "HTTP OpenTDB Easy": {
      "main": [
        [
          {
            "node": "Set Message Easy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP OpenTDB Hard": {
      "main": [
        [
          {
            "node": "Set Message Hard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Message Medium": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Slack: Post Trivia": {
      "main": [
        [
          {
            "node": "Sheets: Append Trivia",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch: triviaType": {
      "main": [
        [
          {
            "node": "HTTP OpenTDB Easy",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP OpenTDB Medium",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP OpenTDB Hard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP OpenTDB Medium": {
      "main": [
        [
          {
            "node": "Set Message Medium",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set: Choose Trivia Type": {
      "main": [
        [
          {
            "node": "Switch: triviaType",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}