{
  "name": "Interview Coach Bot Starter",
  "nodes": [
    {
      "id": "1",
      "name": "New Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      }
    },
    {
      "id": "2",
      "name": "Interview Coach",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.6,
      "position": [
        320,
        0
      ],
      "parameters": {
        "promptType": "define",
        "text": "=You are a friendly interview coach for freshers. Reply in simple Hinglish, at most 4 short lines.\n\nIf \"Question asked\" below is empty, the message is a TOPIC: ask ONE interview question on that topic and nothing else.\nIf \"Question asked\" has text, the message is the candidate's ANSWER to it: say one thing that was good and ONE thing to improve. Never promise a job or a result.\n\nQuestion asked: {{ $json.message.reply_to_message ? $json.message.reply_to_message.text : '' }}\nMessage: {{ $json.message.text }}"
      }
    },
    {
      "id": "3",
      "name": "Gemini Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "typeVersion": 1,
      "position": [
        340,
        260
      ],
      "parameters": {
        "options": {}
      }
    },
    {
      "id": "4",
      "name": "Send Reply",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        700,
        0
      ],
      "parameters": {
        "chatId": "={{ $('New Message').item.json.message.chat.id }}",
        "text": "={{ $json.text }}",
        "additionalFields": {
          "appendAttribution": false
        }
      }
    }
  ],
  "connections": {
    "New Message": {
      "main": [
        [
          {
            "node": "Interview Coach",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Interview Coach": {
      "main": [
        [
          {
            "node": "Send Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Model": {
      "ai_languageModel": [
        [
          {
            "node": "Interview Coach",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}