1. First add Telegram > onMessage Node
go to Telegram app > find BotFather >create new bot chat and Create API KeyDone! Congratulations on your new bot. You will find it at t.me/sashidziner_bot . You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you’ve finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this. Use this token to access the HTTP API: (automatic generate API key)
Keep your token secure and store it safely, it can be used by anyone to control your bot.
For a description of the Bot API, see this page: https://core.telegram.org/bots/api
generate API key copy past and Credential to connected
2. Basic LLM Chain
Source for Prompt (User Message) > select Define belowPrompt (User Message) > Reply the user requested query: {{ $json.message.text }}
3. OpenAI Chat Model
Model - gpt-4.1-mini