{
  "name": "Birthday and ephemeris notification (Google Contact, Telegram & Home Assistant)",
  "nodes": [
    {
      "id": "a2f6a1b1-07e7-4ea8-8c44-507e4a4ce8d7",
      "name": "Google Contacts",
      "type": "n8n-nodes-base.googleContacts",
      "position": [
        500,
        -420
      ]
    },
    {
      "id": "448e68ee-81e5-4487-b023-0aeb7666009d",
      "name": "Get One first name list",
      "type": "n8n-nodes-base.set",
      "position": [
        940,
        -220
      ]
    },
    {
      "id": "de0a4d55-7bd7-4d24-97a0-593442472a57",
      "name": "First names",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        720,
        -220
      ]
    },
    {
      "id": "a8ee01f9-05d6-4589-b399-a0ff141995ec",
      "name": "Nominis - Saints du jour",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        720,
        40
      ]
    },
    {
      "id": "4c6c0726-187f-4697-b935-a93e68e7e9d2",
      "name": "Combine Firstname & Saints",
      "type": "n8n-nodes-base.merge",
      "position": [
        1160,
        -220
      ]
    },
    {
      "id": "61384cde-744a-4091-b639-dfbb9e801026",
      "name": "No Saint Today ?",
      "type": "n8n-nodes-base.if",
      "position": [
        1600,
        -220
      ]
    },
    {
      "id": "36836914-c1c0-45e4-8e40-e95255af0c04",
      "name": "Compose Message",
      "type": "n8n-nodes-base.set",
      "position": [
        2620,
        -400
      ]
    },
    {
      "id": "1c3eecb1-5623-4f0d-b361-9b1f0f520c40",
      "name": "Single list Birthday",
      "type": "n8n-nodes-base.set",
      "position": [
        1160,
        -620
      ]
    },
    {
      "id": "8417f6b0-1174-48ae-81a0-367a95eb9f71",
      "name": "Get Nominis URL",
      "type": "n8n-nodes-base.set",
      "position": [
        500,
        40
      ]
    },
    {
      "id": "ae03ca3a-b89e-461d-9fee-8fa5e0835ff6",
      "name": "Sent Telegram Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2840,
        -300
      ]
    },
    {
      "id": "72561cef-18c0-42bb-aeba-5a0c9edebbb2",
      "name": "Birthday Today?",
      "type": "n8n-nodes-base.if",
      "position": [
        720,
        -520
      ]
    },
    {
      "id": "73b23829-3de7-4ce1-af1a-3c0d3d7b8d47",
      "name": "Set Date Offset",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -200
      ]
    },
    {
      "id": "af033f75-db4f-4bdc-b2ea-fb5a9d226165",
      "name": "Everyday at 7am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -40,
        -200
      ]
    },
    {
      "id": "18992707-c7f8-471c-81c3-10c0c1c7562e",
      "name": "List of Saints of the day",
      "type": "n8n-nodes-base.set",
      "position": [
        940,
        40
      ]
    },
    {
      "id": "0446428f-678c-4798-84a1-17a4cfdc5615",
      "name": "Check if any firstname match a Saints of the day",
      "type": "n8n-nodes-base.code",
      "position": [
        1380,
        -220
      ]
    },
    {
      "id": "8ae56325-b16b-4222-b14b-6631da56eba5",
      "name": "Aggregate Birthdays",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        940,
        -620
      ]
    },
    {
      "id": "8ebf2870-feab-4ed9-bc18-2e1bd46cf0c6",
      "name": "Aggregate No Birthday",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        940,
        -420
      ]
    },
    {
      "id": "a66b44d7-6fee-4480-b2e7-dbf862c27d9b",
      "name": "\"Bonne fête\" celebration message",
      "type": "n8n-nodes-base.set",
      "position": [
        1960,
        -300
      ]
    },
    {
      "id": "40b49097-0910-44fc-9287-c976e13da70d",
      "name": "Birthday celebration message",
      "type": "n8n-nodes-base.set",
      "position": [
        1960,
        -500
      ]
    },
    {
      "id": "54d92f95-03c9-4258-9ebf-66fb9f13f195",
      "name": "Merge Birthday + Fête Messages",
      "type": "n8n-nodes-base.merge",
      "position": [
        2180,
        -400
      ]
    },
    {
      "id": "2e26ec97-bff0-41be-914e-e978cba49cd5",
      "name": "Check if any celebration to make",
      "type": "n8n-nodes-base.if",
      "position": [
        2400,
        -400
      ]
    },
    {
      "id": "693c9749-4d63-442a-b6f8-bd2090bb1be9",
      "name": "Send to Google Home Speaker",
      "type": "n8n-nodes-base.homeAssistant",
      "position": [
        2840,
        -500
      ]
    },
    {
      "id": "e2f0d6c7-711c-49d4-82a6-5216a166c75a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -340
      ],
      "parameters": {
        "width": 400,
        "height": 300,
        "content": "## Scheduling & Offset\nIf you need to put some time interval between now and the time of trigger"
      }
    },
    {
      "id": "4ddd362a-d254-42e8-8b81-ecb8e31951fe",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        0
      ],
      "parameters": {
        "width": 620,
        "height": 340,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Call Nominis API\nAPI to get information from the Saint of the day\n[More Info](https://nominis.cef.fr/contenus/integrations.html)"
      }
    },
    {
      "id": "dc4ca251-80ec-4069-94b2-205bb111d4b2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -720
      ],
      "parameters": {
        "width": 1260,
        "height": 680,
        "content": "## Birthday & First name Operations\nManipulation fo find first name & birthday dates and see if there are some matches"
      }
    },
    {
      "id": "42577f80-1c10-4935-af8f-076f1f2838c3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1880,
        -620
      ],
      "parameters": {
        "width": 860,
        "height": 520,
        "content": "## Celebration message composition"
      }
    }
  ],
  "connections": {
    "First names": {
      "main": [
        [
          {
            "node": "Get One first name list",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Birthday Today?": {
      "main": [
        [
          {
            "node": "Aggregate Birthdays",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Aggregate No Birthday",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compose Message": {
      "main": [
        [
          {
            "node": "Sent Telegram Message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send to Google Home Speaker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Everyday at 7am": {
      "main": [
        [
          {
            "node": "Set Date Offset",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Nominis URL": {
      "main": [
        [
          {
            "node": "Nominis - Saints du jour",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Contacts": {
      "main": [
        [
          {
            "node": "First names",
            "type": "main",
            "index": 0
          },
          {
            "node": "Birthday Today?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Date Offset": {
      "main": [
        [
          {
            "node": "Google Contacts",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Nominis URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Saint Today ?": {
      "main": [
        [
          {
            "node": "Merge Birthday + Fête Messages",
            "type": "main",
            "index": 1
          }
        ],
        [
          {
            "node": "\"Bonne fête\" celebration message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Birthdays": {
      "main": [
        [
          {
            "node": "Single list Birthday",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Single list Birthday": {
      "main": [
        [
          {
            "node": "Birthday celebration message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate No Birthday": {
      "main": [
        [
          {
            "node": "Merge Birthday + Fête Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get One first name list": {
      "main": [
        [
          {
            "node": "Combine Firstname & Saints",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Nominis - Saints du jour": {
      "main": [
        [
          {
            "node": "List of Saints of the day",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List of Saints of the day": {
      "main": [
        [
          {
            "node": "Combine Firstname & Saints",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Combine Firstname & Saints": {
      "main": [
        [
          {
            "node": "Check if any firstname match a Saints of the day",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Birthday celebration message": {
      "main": [
        [
          {
            "node": "Merge Birthday + Fête Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Birthday + Fête Messages": {
      "main": [
        [
          {
            "node": "Check if any celebration to make",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if any celebration to make": {
      "main": [
        [
          {
            "node": "Compose Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\"Bonne fête\" celebration message": {
      "main": [
        [
          {
            "node": "Merge Birthday + Fête Messages",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Check if any firstname match a Saints of the day": {
      "main": [
        [
          {
            "node": "No Saint Today ?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}