{
  "name": "Daily Interview Question Starter",
  "nodes": [
    {
      "id": "1",
      "name": "Every Morning",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "days",
              "daysInterval": 1,
              "triggerAtHour": 8,
              "triggerAtMinute": 0
            }
          ]
        }
      }
    },
    {
      "id": "2",
      "name": "Pick Topic",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        300,
        0
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a1",
              "name": "topic",
              "type": "string",
              "value": "={{ ['HR', 'Python', 'SQL', 'Excel', 'Aptitude', 'Projects', 'Stats'][$today.weekday - 1] }}"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "id": "3",
      "name": "Make Question",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.6,
      "position": [
        600,
        0
      ],
      "parameters": {
        "promptType": "define",
        "text": "=You write ONE fresher-level interview question in simple Hinglish (Roman script).\nTopic: {{ $json.topic }}\nFormat:\nQ: <one clear question>\nHint: <3 short lines that point to the answer, no full answer>\nNever invent facts; if the topic needs a fact, keep the question conceptual."
      }
    },
    {
      "id": "4",
      "name": "Gemini Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "typeVersion": 1,
      "position": [
        620,
        260
      ],
      "parameters": {
        "options": {}
      }
    },
    {
      "id": "5",
      "name": "Send Question",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        980,
        0
      ],
      "parameters": {
        "chatId": "",
        "text": "=Aaj ka sawaal ({{ $('Pick Topic').item.json.topic }}):\n{{ $json.text }}",
        "additionalFields": {
          "appendAttribution": false
        }
      }
    }
  ],
  "connections": {
    "Every Morning": {
      "main": [
        [
          {
            "node": "Pick Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick Topic": {
      "main": [
        [
          {
            "node": "Make Question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Make Question": {
      "main": [
        [
          {
            "node": "Send Question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Model": {
      "ai_languageModel": [
        [
          {
            "node": "Make Question",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}