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

  1. πŸ“² Create Telegram Bot

Open @BotFather Use /newbot, choose name + username Save the API token

  1. πŸ” 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

  1. πŸ“— Prepare Google Sheet (optional logging)

Name: e.g., GPT5 Bot Logs Sheet: Sheet1 Columns:

user_id | date | query | response

  1. πŸ”§ 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

0
Downloads
1
Views
7.13
Quality Score
beginner
Complexity
Author:AI/ML API | D1m7asis(View Original β†’)
Created:9/10/2025
Updated:11/17/2025

πŸ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments