Telegram에서 GPT-5와 대화: AI 추동 대화 로봇
중급
이것은AI Chatbot, Multimodal AI분야의자동화 워크플로우로, 14개의 노드를 포함합니다.주로 Telegram, AimlApi, GoogleSheets, TelegramTrigger 등의 노드를 사용하며. Telegram에서 GPT-5와 채팅: AI 추동 대화 로봇
사전 요구사항
- •Telegram Bot Token
- •Google Sheets API 인증 정보
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "355b2d103ad4834400263e78c73e64bbdb709c896780479c01a9ab9ccd7df6cf",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "368c3442-b61b-4e35-9de0-f7ef3f52aa0f",
"name": "📩 Telegram 메시지 수신",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
1072,
1968
],
"webhookId": "3ceea664-fd53-4141-8bc6-4fdaca0a661d",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "cFC7gGbzU7PQGk6J",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "fe8f2304-f2f6-45d5-8f26-3e07f59f2122",
"name": "스티커 노트 — 개요",
"type": "n8n-nodes-base.stickyNote",
"position": [
1168,
304
],
"parameters": {
"color": 5,
"width": 560,
"height": 496,
"content": "# 💬 AI Chat Bot — Telegram + AIMLAPI (via n8n)\n\nThis workflow lets users chat with **GPT-5** directly in Telegram. Messages are processed and answered in real-time via **AIMLAPI**.\n\n---\n\n## 🚀 Features\n\n* Chat with GPT-5 using natural language\n* Context-aware conversation\n* Telegram delivery of responses\n* Easy to extend with logging or moderation"
},
"typeVersion": 1
},
{
"id": "1d3c2472-92fe-4d4e-b157-81de61882d0b",
"name": "스티커 노트 — 사용자 지정",
"type": "n8n-nodes-base.stickyNote",
"position": [
1168,
816
],
"parameters": {
"color": 5,
"width": 560,
"height": 560,
"content": "## ⚙️ Customization\n\n* Change the `model` parameter to use other AI models (Claude, Gemini, etc.)\n* Add:\n * Message logging to Google Sheets or DB\n * NSFW filtering\n * Command handling (`/help`, `/reset`)\n\n---\n\n## 💡 Example User Flow\n\n1. User sends:\n ```\n What's the capital of Japan?\n ```\n2. Bot replies:\n > The capital of Japan is Tokyo.\n\n3. Chat continues naturally with context preserved"
},
"typeVersion": 1
},
{
"id": "fc3443dd-7c1d-478f-846b-e20b2d480898",
"name": "스티커 노트 — 설정 가이드",
"type": "n8n-nodes-base.stickyNote",
"position": [
1744,
448
],
"parameters": {
"color": 5,
"width": 560,
"height": 544,
"content": "# 🛠 Setup Guide\n\n### 1. 📲 Create a Telegram Bot\n* Go to [@BotFather](https://t.me/BotFather)\n* Use `/newbot`, set a name and username\n* Save the **API token**\n\n---\n### 2. 🔐 Connect Telegram API in n8n\n* Go to `Credentials > Telegram API`\n* Create new credentials using the token from BotFather\n\n---\n### 3. 🔌 Set Up AIMLAPI Credentials in n8n\n* Go to `Credentials > AI/ML API`\n* Enter your **API key**\n* Base URL: `https://api.aimlapi.com/v1`\n* Docs: [docs.aimlapi.com](https://docs.aimlapi.com)"
},
"typeVersion": 1
},
{
"id": "cdd88b85-4766-4e2c-9e5f-7b409963c443",
"name": "스티커 노트 — 로깅 및 테스트",
"type": "n8n-nodes-base.stickyNote",
"position": [
1744,
1008
],
"parameters": {
"color": 5,
"width": 560,
"height": 432,
"content": "## 📁 Optional Data Logging\n\nYou can log every chat message to Google Sheets or a database for analytics:\n\n` | user_id | date | message | response | `\n` | ------- | ---- | ------- | -------- | `\n\n---\n## 🧪 Testing Tips\n\n* Use a test Telegram chat before production\n* Add `Console` or `Set` nodes to inspect payloads\n* For realistic tests, run via `/execute` from Telegram, **not** \"Execute Node\""
},
"typeVersion": 1
},
{
"id": "f6b40a2d-c83a-47aa-9046-23cdc601ef73",
"name": "📝 성공적 생성 로그 기록",
"type": "n8n-nodes-base.googleSheets",
"position": [
2784,
1968
],
"parameters": {
"columns": {
"value": {
"date": "={{ new Date().toISOString().split('T')[0] }}",
"query": "={{ $('📩 Receive Telegram Message').item.json.message.text }}",
"result": "={{ $('🧠 Process with GPT‑5').item.json.content }}",
"user_id": "={{ $json.result.from.id }}"
},
"schema": [
{
"id": "user_id",
"type": "string",
"display": true,
"required": false,
"displayName": "user_id",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "date",
"type": "string",
"display": true,
"required": false,
"displayName": "date",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "query",
"type": "string",
"display": true,
"required": false,
"displayName": "query",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "result",
"type": "string",
"display": true,
"required": false,
"displayName": "result",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": 2060422727,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/19rsFwln4KMpGjOzxOdz7OC_-kRH8_qD4Agx5lXlDD9k/edit#gid=2060422727",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "19rsFwln4KMpGjOzxOdz7OC_-kRH8_qD4Agx5lXlDD9k",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/19rsFwln4KMpGjOzxOdz7OC_-kRH8_qD4Agx5lXlDD9k/edit?usp=drivesdk",
"cachedResultName": "AI bot usage statistic"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "OaJ0A7gqb1dgxqB8",
"name": "Google Sheets account"
}
},
"typeVersion": 4.6
},
{
"id": "a00ee4eb-0c89-48a2-87c1-000197b71a55",
"name": "스티커 노트 — 메시지 수신",
"type": "n8n-nodes-base.stickyNote",
"position": [
944,
1552
],
"parameters": {
"color": 3,
"width": 384,
"height": 608,
"content": "# 📥 Step 1 — Receive Telegram Message\nListens for new messages sent to your Telegram bot.\n\nCaptures:\n* **chat.id** — used for sending responses back\n* **message.text** — the text provided by the user\n\n💡 You can restrict to specific commands/keywords if needed."
},
"typeVersion": 1
},
{
"id": "375019d6-a2c0-438c-950c-376603599dc5",
"name": "스티커 노트 — GPT‑5 처리",
"type": "n8n-nodes-base.stickyNote",
"position": [
1744,
1552
],
"parameters": {
"width": 384,
"height": 608,
"content": "# 🧠 Step 2 — Process with GPT‑5\nSends the raw Telegram message text to **AI/ML API** using `openai/gpt-5-chat-latest`.\n\nPurpose:\n* Improve or expand the input text\n* Make it more descriptive/structured as needed\n\n⚙️ Configurable:\n* Change the model ID\n* Add system instructions to control style, tone, or length"
},
"typeVersion": 1
},
{
"id": "e58d2186-f12e-43a4-9b7c-a644d27e64fa",
"name": "스티커 노트 — 응답 전송",
"type": "n8n-nodes-base.stickyNote",
"position": [
2144,
1552
],
"parameters": {
"color": 4,
"width": 384,
"height": 608,
"content": "# 📤 Step 3 — Send Response to Telegram\nSends the model’s response back to the same user.\n\nIncludes:\n* **chat_id** — from the original message\n* **text/caption** — the result returned by GPT‑5\n\n💡 You can format text, add emojis, or customize the reply style here."
},
"typeVersion": 1
},
{
"id": "06a31bfb-15af-40fe-b468-057cf985180f",
"name": "스티커 노트 — 로깅",
"type": "n8n-nodes-base.stickyNote",
"position": [
2640,
1552
],
"parameters": {
"color": 5,
"width": 384,
"height": 608,
"content": "# 📝 Step 4 — Log Interaction (Optional)\nAppends a row to your sheet/database with:\n* **date** — ISO date\n* **user_id** — from Telegram\n* **query** — original message text\n* **result** — model output (text or link, depending on your setup)\n\nUse this for:\n* Usage tracking & quotas\n* Analytics and QA"
},
"typeVersion": 1
},
{
"id": "333a49e9-e553-4f95-87b9-d89548db6114",
"name": "🧠 GPT‑5로 처리",
"type": "n8n-nodes-aimlapi.aimlApi",
"position": [
1888,
1968
],
"parameters": {
"model": "openai/gpt-5-chat-latest",
"prompt": "={{ $('📩 Receive Telegram Message').item.json.message.text }}",
"options": {},
"requestOptions": {}
},
"credentials": {
"aimlApi": {
"id": "EXXHjMACiSMAhuC8",
"name": "AI/ML account"
}
},
"retryOnFail": false,
"typeVersion": 1,
"alwaysOutputData": false
},
{
"id": "960ea33b-3c1a-4ad1-a330-18aab8bc030a",
"name": "📤 Telegram로 응답 전송",
"type": "n8n-nodes-base.telegram",
"position": [
2288,
1968
],
"webhookId": "4a46da0a-9a91-4f31-802a-f0ce89516aa7",
"parameters": {
"text": "={{ $json.content }}",
"chatId": "={{ $('📩 Receive Telegram Message').item.json.message.chat.id }}",
"additionalFields": {
"appendAttribution": false,
"reply_to_message_id": "={{ $('📩 Receive Telegram Message').item.json.message.message_id }}"
}
},
"credentials": {
"telegramApi": {
"id": "cFC7gGbzU7PQGk6J",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "7cc29371-2e04-440c-baea-4f7a716a5acf",
"name": "스티커 노트 — 메시지 수신1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1344,
1552
],
"parameters": {
"color": 3,
"width": 384,
"height": 608,
"content": "# 💬 Step 1.5 — Simulate Typing in Telegram\n\n\nSends a \"typing…\" chat action to the user in Telegram before delivering the actual \nresponse. \n\nThis creates a more natural conversational experience by letting the user know the bot is processing their message. \n\nUseful for longer AI processing times or when generating detailed responses."
},
"typeVersion": 1
},
{
"id": "3e50eeda-e420-48fe-b136-1191d679f422",
"name": "💬 Telegram에서 타이핑 효과 시뮬레이션",
"type": "n8n-nodes-base.telegram",
"position": [
1488,
1968
],
"webhookId": "d275c6c6-00c3-4ccd-9e29-48c99574d7b2",
"parameters": {
"chatId": "={{ $json.message.chat.id }}",
"operation": "sendChatAction"
},
"credentials": {
"telegramApi": {
"id": "cFC7gGbzU7PQGk6J",
"name": "Telegram account"
}
},
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"333a49e9-e553-4f95-87b9-d89548db6114": {
"main": [
[
{
"node": "960ea33b-3c1a-4ad1-a330-18aab8bc030a",
"type": "main",
"index": 0
}
]
]
},
"368c3442-b61b-4e35-9de0-f7ef3f52aa0f": {
"main": [
[
{
"node": "3e50eeda-e420-48fe-b136-1191d679f422",
"type": "main",
"index": 0
}
]
]
},
"960ea33b-3c1a-4ad1-a330-18aab8bc030a": {
"main": [
[
{
"node": "f6b40a2d-c83a-47aa-9046-23cdc601ef73",
"type": "main",
"index": 0
}
]
]
},
"3e50eeda-e420-48fe-b136-1191d679f422": {
"main": [
[
{
"node": "333a49e9-e553-4f95-87b9-d89548db6114",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - AI 챗봇, 멀티모달 AI
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
Telegram, AIMLAPI, Google 스프레드시트를 사용하여 다모델 AI 채팅 로봇을 만들기
Telegram, AIMLAPI와 Google 스프레드시트를 사용하여 다중 모델 AI 채팅 로봇을 생성합니다.
If
Set
Code
+
If
Set
Code
25 노드AI/ML API | D1m7asis
개인 생산성
APImage를 사용하여 AI 이미지 생성 및 Google Drive에 업로드
Telegram에서 GPT-4o를 사용하여 Flux Pro와 함께 AI 이미지 강화 생성
If
Set
Telegram
+
If
Set
Telegram
22 노드AI/ML API | D1m7asis
콘텐츠 제작
GPT-4o 기반의 Telegram 심리 건강 지원 로봇을 구축합니다.
GPT-4o를 기반으로 한 Telegram 심리 건강 지원 로봇을 구축합니다.
Set
Switch
Telegram
+
Set
Switch
Telegram
15 노드AI/ML API | D1m7asis
지원 챗봇
GPT-4o와 Telegram을 기반으로 한 상호작용적인 러시아어 지도 로봇
GPT-4o와 Telegram을 기반으로 한 상호작용식 러시아어 지원 로봇
Set
Switch
Telegram
+
Set
Switch
Telegram
16 노드AI/ML API | D1m7asis
콘텐츠 제작
带有 Chatgpt Agent Prompt 检查의信用卡
AI驱动信用卡推荐系统,통합OpenAI GPT、Telegram및Google Sheets
If
Set
Code
+
If
Set
Code
31 노드Nishant
AI 챗봇
GPT-4o Vision과 Telegram 이미지 분석 및 텍스트 추출
GPT-4o Vision과 Telegram을 사용한 이미지 분석 및 텍스트 추출
Code
Telegram
Http Request
+
Code
Telegram
Http Request
16 노드AI/ML API | D1m7asis
문서 추출