Chat with GPT-5 on Telegram: AI-Powered Conversational Bot
π¬ 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
π© Telegram-based chat input π¬ Typing indicator before reply π§ High-quality AI responses via openai/gpt-5-chat-latest (AI/ML API) π€ Replies sent back in Telegram with formatting π Optional logging to Google Sheets π Secure credential handling in n8n
π Setup Guide
- π² Create Telegram Bot
Open @BotFather Use /newbot, choose name + username Save the API token
- π Set Up Credentials in n8n
Telegram API: paste the BotFather token AI/ML API: create a key from aimlapi.com (Optional) Google Sheets: connect via OAuth2/Service Account
- π Prepare Google Sheet (optional logging)
Name: e.g., GPT5 Bot Logs Sheet: Sheet1 Columns:
user_id | date | query | response
- π§ Configure Workflow
Import the JSON into n8n Attach your credentials to the Telegram + AI/ML API nodes (Optional) update Google Sheets node with Sheet ID
βοΈ Flow Summary
| 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 |
π‘ Example User Flow
User sends:
Whatβs the capital of Japan?
Bot replies after "typingβ¦":
The capital of Japan is Tokyo.
Conversation continues naturally.
π§ͺ Testing
Use a test chat with your bot Trigger via /execute workflow (not βExecute Nodeβ) Add Set or Console nodes for debugging
π Resources
π AI/ML API Docs π€ GPT-5 Models
Related Templates
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π€ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments