Automate Chinese Vocabulary Practice with n8n and Telegram Bot

This workflow automates Chinese vocabulary learning by integrating Telegram with Google Sheets and an AI agent in n8n. It delivers interactive multiple-choice questions and personalized feedback, saving language learners hours of manual quiz preparation and improving practice effectiveness.
telegramTrigger
googleSheets
agent
+4
Workflow Identifier: 1569
NODES in Use: telegramTrigger, googleSheets, aggregate, agent, lmChatOpenAi, memoryBufferWindow, telegram
Automate Chinese vocabulary with n8n and Telegram

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow helps a user practice Chinese vocabulary using a Telegram chatbot. It solves the problem of spending much time creating flashcards and quizzes manually. The system reads vocabulary from a Google Sheet, creates quiz questions, and gives fast feedback within Telegram chat. This makes learning easier and saves time.

When a user sends a message on Telegram, the workflow triggers an AI to find a vocabulary word and make a multiple-choice question. The AI checks the user’s answer, then replies with encouragement or corrections. It remembers the chat history to keep the conversation clear and personal.

The user gets a smooth quiz game experience inside Telegram. They don’t need extra apps or tools. The vocabulary comes from an easy-to-edit Google Sheet. This keeps content fresh and simple to update.


Tools and Services Used

  • Telegram Bot API: Receives user messages.
  • Google Sheets API: Stores and provides vocabulary words.
  • OpenAI API (GPT-4o-mini): Generates quiz questions and evaluates answers.
  • n8n Platform: Orchestrates the workflow automation.
  • LangChain Simple Memory Node: Maintains chat context per user.

Inputs, Processing Steps, and Outputs

Inputs

  • User messages sent on Telegram chat.
  • Vocabulary data from Google Sheets including English and Chinese words.

Processing Steps

  • Telegram Trigger catches incoming user messages.
  • Google Sheets node fetches current vocabulary list.
  • Aggregate node compiles vocabulary into English and Chinese arrays.
  • Simple Memory node tracks conversation history using chat ID.
  • OpenAI Chat Model generates quiz content and evaluates answers.
  • LangChain AI Agent formats quiz questions and feedback.
  • Telegram node sends quiz questions or feedback messages.

Outputs

  • Interactive multiple-choice quiz questions sent to the user in Telegram.
  • Instant feedback messages for correct or incorrect answers.
  • Maintained session memory for personalized learning.

Beginner Step-by-Step: How to Use This Workflow in n8n Production

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor and click “Import from File.”
  3. Select the downloaded workflow file to import.

Step 2: Configure Credentials and Settings

  1. Add your Telegram Bot API Key in the Telegram Trigger and Telegram nodes.
  2. Set your Google Sheets API credentials in the Google Sheets node.
  3. Enter your OpenAI API Key in the OpenAI Chat Model node.
  4. If needed, update Google Sheet IDs, sheet names, or chat IDs to match your setup.

Step 3: Test the Workflow

  1. Send a test message on Telegram to your bot.
  2. Watch the execution log in n8n to verify the workflow triggers and sends a quiz question.

Step 4: Activate for Production

  1. Turn on the workflow by switching it to “Active” in n8n.
  2. Check logs regularly and adjust prompts or settings as needed.

Note: For privacy or control, consider self-host n8n to run the workflow on your own server.


Customizations

  • Add extra columns in Google Sheets like audio URLs or example sentences for richer quiz content.
  • Change the AI prompt in the LangChain AI Agent node to adjust quiz difficulty or question style.
  • Track user progress by saving answers and scores to a new Google Sheets or database node.
  • Swap the OpenAI model in the OpenAI Chat Model node for different balance of cost and performance.
  • Use multiple language vocabularies by switching sheets or tables based on user preferences.

Troubleshooting

  • Issue: No quiz answers sent back after sending messages.
    Fix: Check that the chat ID in the Telegram reply node is set exactly to {{ $('Telegram Trigger').item.json.message.chat.id }}.
  • Issue: Google Sheets node shows authentication errors.
    Fix: Re-connect the Google Sheets credentials with correct permission scopes. Verify the spreadsheet sharing settings.
  • Issue: AI agent gives questions not related to vocabulary.
    Fix: Confirm the Aggregate node correctly sends complete and accurate vocabulary arrays.

Pre-Production Checklist

  • Send messages on Telegram to verify that the Telegram Trigger node activates.
  • Verify the Google Sheets node outputs correct vocabulary lists.
  • Check the Aggregate node produces arrays named “initialLanguage” and “targetLanguage”.
  • Test the AI agent node generates relevant quiz questions.
  • Ensure the Telegram bot sends back well formatted questions and feedback.
  • Backup your vocabulary Google Sheet data regularly.

Deployment Guide

Set the workflow status to Active in n8n. Make sure the Telegram bot webhook is correctly configured. Monitor workflow execution logs for errors or unexpected responses.

Because sessions keep user context, the quiz adapts over time. Regularly update vocabulary data to keep learning fresh.

Using self-host n8n can help if improved control or privacy is needed.


Conclusion

✓ The workflow turns Telegram into a simple, automated Chinese vocabulary tutor.

✓ It saves users time by creating and grading quiz questions automatically.

✓ It gives immediate personalized feedback using AI and maintains chat context.

→ Users can practice anytime with no extra apps or manual quiz making.

→ The vocabulary is easy to update using a Google Sheet, keeping learning content fresh.

Automate Chinese vocabulary with n8n and Telegram

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The Telegram Trigger node starts the workflow when it receives a new message from the user.
Vocabulary words and translations are stored in a Google Sheet accessed by the Google Sheets node.
The Simple Memory node manages session data using the Telegram chat ID to keep personalized conversation history.
An OpenAI API Key is needed for the OpenAI Chat Model node to generate questions and evaluate answers.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.