🤖 Chat with GPT-5 on Telegram: AI-powered conversational bot

1,947 views · 🤖 AI Chatbots & Agents

Description

💬 GPT-5 Powered Telegram Bot — AI/ML API + n8n

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.


🚀 Features


image.png

image.png

image.png

🛠 Setup Guide

1. 📲 Create Telegram Bot

2. 🔐 Set Up Credentials in n8n

3. 📗 Prepare Google Sheet (optional logging)

user_id | date | query | response

4. 🔧 Configure Workflow


⚙️ Flow Summary

NodeFunction
📩 Receive Telegram MessageTrigger on user message
💬 Simulate TypingSends “typing…” action to Telegram
🧠 Process with GPT-5Calls AI/ML API with message text
📤 Send Response to TelegramReplies back to user with model output
📝 Log Interaction (optional)Appends log row to Google Sheets

💡 Example User Flow

  1. User sends:
What’s the capital of Japan?
  1. Bot replies after “typing…”:
The capital of Japan is Tokyo.
  1. Conversation continues naturally.

🧪 Testing


📎 Resources

🔗 Nodes Used

Google Sheets, Telegram, Telegram Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup