{
  "name": "Quote of the Day",
  "description": "Starts your morning with a little lift — an inspiring quote delivered to Telegram every day.",
  "tags": [
    "quote",
    "motivation",
    "telegram",
    "daily",
    "inspiration"
  ],
  "type": "triggered",
  "nodes": [
    {
      "id": "sticky-intro",
      "position": {
        "x": 20,
        "y": 20
      },
      "data": {
        "color": "#fff266",
        "content": "🌟 A little lift, every morning.\n\nEach day this fetches a fresh quote and sends it to your Telegram. Set the time below, connect Telegram, and choose your chat. Keep your browser open at that time for scheduled runs to fire."
      },
      "type": "stickyNote",
      "width": 340,
      "height": 180
    },
    {
      "id": "trigger-schedule",
      "position": {
        "x": 100,
        "y": 280
      },
      "data": {
        "instance": {
          "id": "af-base-node:trigger:schedule"
        },
        "label": "Every morning at 9am",
        "inputs": {
          "rules": [
            {
              "triggerInterval": "days",
              "daysBetweenTriggers": 1,
              "triggerAtHour": "9",
              "triggerAtMinute": 0
            }
          ]
        },
        "parameters": {
          "notes": "Runs once a day at the time you set."
        }
      },
      "type": "trigger"
    },
    {
      "id": "fetch-quote",
      "position": {
        "x": 440,
        "y": 280
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:httpRequest"
        },
        "label": "Get a quote",
        "inputs": {
          "method": "GET",
          "url": "https://zenquotes.io/api/random"
        },
        "parameters": {
          "notes": "Fetches a random quote from a free public service — no account needed."
        }
      },
      "type": "basic"
    },
    {
      "id": "send-telegram",
      "position": {
        "x": 780,
        "y": 280
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:telegram"
        },
        "label": "Send it to Telegram",
        "inputs": {
          "credential": "",
          "parameters": {
            "resource": "message",
            "operation": "send",
            "chatId": "",
            "text": "{{ $input.data.0.q }} — {{ $input.data.0.a }}",
            "parseMode": "none"
          }
        },
        "parameters": {
          "notes": "Sends today's quote to your Telegram chat."
        }
      },
      "type": "basic"
    },
    {
      "id": "sticky-telegram",
      "position": {
        "x": 780,
        "y": 460
      },
      "data": {
        "color": "#ffd9b3",
        "content": "Setup needed: connect your Telegram bot and set the chat ID this should message."
      },
      "type": "stickyNote",
      "width": 300,
      "height": 110
    }
  ],
  "edges": [
    {
      "id": "e-schedule-fetch",
      "type": "flowEdge",
      "source": "trigger-schedule",
      "target": "fetch-quote"
    },
    {
      "id": "e-fetch-telegram",
      "type": "flowEdge",
      "source": "fetch-quote",
      "target": "send-telegram"
    }
  ]
}