🧑🎓 AIベースの言語講師(Telegram、Googleスプレッドシート、GPT-4o)
中級
これはAI分野の自動化ワークフローで、9個のノードを含みます。主にTelegram, Aggregate, GoogleSheets, Agent, TelegramTriggerなどのノードを使用、AI技術を活用したスマート自動化を実現。 🧑🎓 AIに基づいた言語教師(Telegram、Googleスプレッドシート、GPT-4o)
前提条件
- •Telegram Bot Token
- •Google Sheets API認証情報
- •OpenAI API Key
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "6a5e68bcca67c4cdb3e0b698d01739aea084e1ec06e551db64aeff43d174cb23",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "bc49829b-45f2-4910-9c37-907271982f14",
"name": "付箋ノート3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1500,
-520
],
"parameters": {
"width": 780,
"height": 540,
"content": "### 3. Do you need more details?\nFind a step-by-step guide in this tutorial\n\n[🎥 Watch My Tutorial](https://youtu.be/MQV8wDSug7M)"
},
"typeVersion": 1
},
{
"id": "80af5237-9046-4b40-ac7c-167d8e0a490f",
"name": "AIエージェント",
"type": "@n8n/n8n-nodes-langchain.agent",
"notes": "Pinyin + Example",
"position": [
-2140,
-140
],
"parameters": {
"text": "={{ $('Telegram Trigger').item.json.message.text }}",
"options": {
"systemMessage": "=# Context\nYou are an AI-powered language tutor designed to help {{ $('Telegram Trigger').item.json.message.chat.first_name }} practice Chinese vocabulary efficiently. \n\n# Role\nYour primary role is to generate interactive Multiple-Choice Questions (MCQs) and evaluate the user's responses.\n\n# Types of Exercises\n- MCQ: Provide an English word and four Chinese answer choices, one correct and three incorrect.\n\n# Rules for MCQ Generation\n1. Select a random **Chinese word** from this list {{ $json.targetLanguage }}\n2. Randomly select **three incorrect Chinese options** from the list or outside the list.\n3. **Do NOT mark the correct answer with ✅** in the question.\n4. Present the question in the following format:\nExample Question Format:\nWhat is the correct translation for \"Warehouse\"?\nA) 运输\nB) 仓库 \nC) 合同\nD) 投标\n5. Ask the user to respond with **A, B, C, or D**.\n\n# Evaluating User Responses:\n1. **Wait for the user's answer. Do NOT assume correctness before checking.**\n2. If the user selects the correct answer:\n- Respond positively: \"Great job! ✅ [Correct Answer] [Correct Answer's Pinyin] means [English Meaning].\"\n3. If the user selects the wrong answer:\n- Provide corrective feedback: \"Oops! ❌ The correct answer was [Correct Answer] ([English Meaning]).\"\n4. If the user provides an **invalid response** (e.g., \"Hello\"), ask them to respond with **A, B, C, or D**.\n\n# Post-Evaluation:\n- After giving feedback, always generate another question. Do not ask the user if he wants another question\n\n# Behavior & Tone\n- Be engaging and encouraging.\n- Ensure clarity in feedback.\n- Guide the user patiently if they provide invalid inputs."
},
"promptType": "define",
"hasOutputParser": true
},
"notesInFlow": true,
"typeVersion": 1.7
},
{
"id": "8b35027e-ec5b-4c3e-9a5b-2780b6c40223",
"name": "OpenAI チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-2180,
100
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"typeVersion": 1.2
},
{
"id": "688d6882-4930-407d-bf58-5f6add8eb159",
"name": "シンプルメモリ",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-2000,
140
],
"parameters": {
"sessionKey": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "33f4a062-73f9-4a99-abca-1184ef2c2a41",
"name": "Telegram トリガー",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-2960,
-140
],
"webhookId": "88179da7-9927-4bdc-8bd7-78022810b48e",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"notesInFlow": true,
"typeVersion": 1.1
},
{
"id": "af385807-d024-477e-9a42-c195043e95da",
"name": "語彙取得",
"type": "n8n-nodes-base.googleSheets",
"position": [
-2700,
-140
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 0,
"cachedResultUrl": "=",
"cachedResultName": "="
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "=",
"cachedResultUrl": "=",
"cachedResultName": "="
}
},
"notesInFlow": true,
"typeVersion": 4.5
},
{
"id": "3ab67ca5-9839-4fa6-bfc1-4dbbaf5593fc",
"name": "付箋ノート1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3000,
-520
],
"parameters": {
"color": 7,
"width": 680,
"height": 540,
"content": "### 1. Workflow Trigger with Telegram Message\n1. The workflow is triggered by a user message. \n2. The second node retrieves the vocabulary list from a Google Sheet.\n3. The third node combines all the words in Chinese and English in two distinctive lists.\n\n#### How to setup?\n- **Telegram Node:** set up your telegram bot credentials\n[Learn more about the Telegram Trigger Node](https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.telegramtrigger/)\n- **Retrieve Vocabulary from a Google Sheet Node**:\n 1. Add your Google Sheet API credentials to access the Google Sheet file\n 2. Select the file using the list, an URL or an ID\n 3. Select the sheet in which you have stored your vocabulary list\n [Learn more about the Google Sheet Node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets)\n"
},
"typeVersion": 1
},
{
"id": "740a2d04-46fe-41f1-b887-f88f3e23c50d",
"name": "付箋ノート",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2300,
-520
],
"parameters": {
"color": 7,
"width": 760,
"height": 780,
"content": "### 2. Conversational AI Agent\nThe AI agent will take as inputs the two vocabulary lists and user's message to asks questions and process answers. Conversations are recorded by chat id; each user has its own conversation with the bot.\n\n#### How to setup?\n- **Telegram Nodes:** set up your telegram bot credentials\n[Learn more about the Telegram Trigger Node](https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.telegramtrigger/)\n- **AI Agent with the Chat Model**:\n 1. Add a chat model with the required credentials *(Example: Open AI 4o-mini)*\n 2. Adapt the system prompt with the **target learning language** and the format of the question you want to have.\n"
},
"typeVersion": 1
},
{
"id": "e92a55dc-6d9d-4008-bb40-72a7f2dd470c",
"name": "語彙リスト統合",
"type": "n8n-nodes-base.aggregate",
"position": [
-2460,
-140
],
"parameters": {
"options": {},
"fieldsToAggregate": {
"fieldToAggregate": [
{
"renameField": true,
"outputFieldName": "initialLanguage",
"fieldToAggregate": "initialText"
},
{
"renameField": true,
"outputFieldName": "targetLanguage",
"fieldToAggregate": "translatedText"
}
]
}
},
"typeVersion": 1
},
{
"id": "18b29677-cfc0-4817-9321-35090a3fda2e",
"name": "ユーザーへの回答",
"type": "n8n-nodes-base.telegram",
"position": [
-1740,
-140
],
"webhookId": "=",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"additionalFields": {
"appendAttribution": false
}
},
"notesInFlow": true,
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"80af5237-9046-4b40-ac7c-167d8e0a490f": {
"main": [
[
{
"node": "18b29677-cfc0-4817-9321-35090a3fda2e",
"type": "main",
"index": 0
}
]
]
},
"688d6882-4930-407d-bf58-5f6add8eb159": {
"ai_memory": [
[
{
"node": "80af5237-9046-4b40-ac7c-167d8e0a490f",
"type": "ai_memory",
"index": 0
}
]
]
},
"33f4a062-73f9-4a99-abca-1184ef2c2a41": {
"main": [
[
{
"node": "af385807-d024-477e-9a42-c195043e95da",
"type": "main",
"index": 0
}
]
]
},
"8b35027e-ec5b-4c3e-9a5b-2780b6c40223": {
"ai_languageModel": [
[
{
"node": "80af5237-9046-4b40-ac7c-167d8e0a490f",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"af385807-d024-477e-9a42-c195043e95da": {
"main": [
[
{
"node": "e92a55dc-6d9d-4008-bb40-72a7f2dd470c",
"type": "main",
"index": 0
}
]
]
},
"e92a55dc-6d9d-4008-bb40-72a7f2dd470c": {
"main": [
[
{
"node": "80af5237-9046-4b40-ac7c-167d8e0a490f",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - 人工知能
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
AI自動化とアイグゥチューブの構築と販売
販売AIの自動化とエージェントの構築
If
Set
Wait
+
If
Set
Wait
74 ノードNICKYAI
その他
AI视频ジェネレーター - OpenAI、ElevenLabs与Telegram YouTube公開
統合OpenAI、ElevenLabs并経由Telegram公開至YouTubeのAI视频ジェネレーター
If
Set
Wait
+
If
Set
Wait
68 ノードFRANK LIN
営業
GPT、LangChain、およびインテリジェントルーティングに基づくAI駆動カスタマーサービス自動化
AI駆動カスタマーサービス自動化、GPT、LangChain、およびインテリジェントルーティングに基づく
Set
Gmail
Merge
+
Set
Gmail
Merge
46 ノードPaul
サポート
AI搭載YouTube Shorts自動化:OpenAIとElevenLabsを使用して生成と公開
AI駆動のYouTube Shorts自動化:OpenAIとElevenLabsを使用した作成と公開
If
Set
Wait
+
If
Set
Wait
76 ノードJonas Busch
人工知能
AI搭載YouTubeショート動画自動化:OpenAIとElevenLabsを使用して作成と公開
AI駆動のYouTube Shorts作成ツール(OpenAIスクリプトとElevenLabsボイス)
If
Set
Wait
+
If
Set
Wait
76 ノードWIKIPILOT
デザイン
🤖 AIチャットボット
Gmail、Telegram、GPT AIを使ってマルチチャネル対応の顧客サポートを自動化
Set
Gmail
Telegram
+
Set
Gmail
Telegram
23 ノードRedOne
サポート
ワークフロー情報
難易度
中級
ノード数9
カテゴリー1
ノードタイプ8
作成者
Samir Saci
@samirsaciAutomation, AI and Analytics for Supply Chain & Business Optimization Helping businesses streamline operations using n8n, AI agents, and data science to enhance efficiency and sustainability. Linkedin: www.linkedin.com/in/samir-saci
外部リンク
n8n.ioで表示 →
このワークフローを共有