Skip to main content

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

Workflow preview

Workflow preview
100%
Chat with GPT-5 on Telegram: AI-powered conversational bot preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 r...

Best for

  • AI Chatbot automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-aimlapi.aimlapi, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by AI/ML API | D1m7asis.

Original n8n.io source

1.1 Workflow description

Title
Chat with GPT-5 on Telegram: AI-powered conversational bot
Workflow name
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

2. 🔐 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

3. 📗 Prepare Google Sheet (optional logging)

  • Name: e.g., GPT5 Bot Logs
  • Sheet: Sheet1
  • Columns:
user_id | date | query | response

4. 🔧 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

  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

  • Use a test chat with your bot
  • Trigger via /execute workflow (not “Execute Node”)
  • Add Set or Console nodes for debugging

📎 Resources

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 📩 Receive Telegram Message

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - Sticky Note — Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note — Customization

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note — Setup Guide

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note — Logging & Testing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - 📝 Log Successful Generation

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 7 - Sticky Note — Receive Message

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note — GPT‑5 Processing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note — Send Response

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note — Logging

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - 🧠 Process with GPT‑5

Type / Role
n8n-nodes-aimlapi.aimlApi - aimlApi
Config choices
Version 1

Block 12 - 📤 Send Response to Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - Sticky Note — Receive Message1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - 💬 Simulate Typing in Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

3. Summary Table

Workflow Chat with GPT-5 on Telegram: AI-powered conversational bot
Complexity intermediate
Nodes 14
Categories AI Chatbot, Multimodal AI
Author AI/ML API | D1m7asis
Published 13 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7331/7331.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Chat with GPT-5 on Telegram: AI-powered conversational bot do?

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 r...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Chatbot, Multimodal AI use case.