Back to Templates
This n8n workflow lets users chat with GPT-5 directly in Telegram.
It simulates typing for a natural UX, sends messages to GPT-5 via AI/ML API, and replies back in the same chat.
Optionally, each interaction can be logged in Google Sheets.
openai/gpt-5-chat-latest (AI/ML API)


/newbot, choose name + usernameTelegram API: paste the BotFather tokenAI/ML API: create a key from aimlapi.comGoogle Sheets: connect via OAuth2/Service AccountGPT5 Bot LogsSheet1user_id | date | query | response
| Node | Function |
|---|---|
📩 Receive Telegram Message |
Trigger on user message |
💬 Simulate Typing |
Sends "typing…" action to Telegram |
🧠 Process with GPT-5 |
Calls AI/ML API with message text |
📤 Send Response to Telegram |
Replies back to user with model output |
📝 Log Interaction (optional) |
Appends log row to Google Sheets |
What’s the capital of Japan?
The capital of Japan is Tokyo.
/execute workflow (not “Execute Node”)Set or Console nodes for debugging