{
  "name": "Ex 1.1 — Good Morning, Founder",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        0,
        0
      ],
      "id": "d69e4d45-8999-4490-baea-f7ae0829aea1",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "url": "https://hn.algolia.com/api/v1/search?query=fintech&tags=story",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [
        208,
        0
      ],
      "id": "29cf228c-2f43-4cf4-8b9a-d2699b9288c2",
      "name": "Get News"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "fbb88726-c8f7-4fea-915d-4755a0b40c1a",
              "name": "message",
              "value": "=☀️ Bonjour ! Voici ta veille du {{ $now.format('dd/MM') }} : 1. {{ $json.hits[0].titel }} → {{ $json.hits[0].url }} 2. {{ $json.hits[1].title }} → {{ $json.hits[1].url }} 3. {{ $json.hits[2].title }} → {{ $json.hits[2].url }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        416,
        0
      ],
      "id": "76454c30-14b7-4534-8da1-4cc4c52ee684",
      "name": "Format message"
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "send",
        "guildId": {
          "__rl": true,
          "value": "={{ $env.WORKSHOP_DISCORD_GUILD_ID }}",
          "mode": "id"
        },
        "channelId": {
          "__rl": true,
          "value": "={{ $env.WORKSHOP_DISCORD_CHANNEL_ID }}",
          "mode": "id"
        },
        "content": "=[1.1] {{ $json.message }}\n— {{ $env.WORKSHOP_NAME ? $env.WORKSHOP_NAME + ' · ' : '' }}{{ $env.WORKSHOP_STUDENT }}",
        "options": {}
      },
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        624,
        0
      ],
      "id": "987372f6-2440-4f5e-9ef8-ccbb1f560fdb",
      "name": "Send a message",
      "webhookId": "613c844d-6b9d-4948-a6c5-fe21c8dae0a6",
      "credentials": {
        "discordBotApi": {
          "id": "PV2eZfBD72BOpztJ",
          "name": "Workshop Discord"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get News": {
      "main": [
        [
          {
            "node": "Format message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format message": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "xI9spA4j7Iu69rEf",
  "tags": []
}
