📄 What this workflow does
Every 3 hours, the workflow fetches 3 random English words, asks Gemini to generate a short Vietnamese vocabulary digest (word, Vietnamese meaning, and an example sentence), and sends it to a Telegram chat. Perfect for steady, low-effort vocab exposure in groups.
👤 Who is this for
- English learners who want a gentle, automated learning cadence.
- Teachers/tutors who share daily vocab in Telegram groups.
- Community admins who want lightweight, useful content for members.
- Anyone who prefers bite-sized language learning on autopilot.
✅ Requirements
- Gemini API access (configured in n8n).
- Telegram Bot token + chat ID (the chat you want to receive messages).
- Internet access to Random Word API (no API key required).
- n8n instance with outbound HTTPS access.
⚙️ How to set up
- Add your Gemini credentials in n8n (the Google Gemini/PaLM node).
- Add your Telegram credentials and set the chatId in the “Send a text message” node.
- (Optional) Adjust the schedule interval (default: every 3 hours).
- (Optional) Change the number of words by updating the HTTP Request URL param words=3.
- (Optional) Edit the Gemini prompt language/content to fit your style (currently Vietnamese output).
- Run once to test; confirm the message arrives in Telegram.
🔁 How it works
- Schedule Trigger → runs every 3 hours.
- HTTP Request → calls random-word-api to get 3 words.
- Edit Fields (Set) → wraps the API response under word.
- Aggregate → prepares the word field for the LLM.
- Message a model (Gemini) → creates a Vietnamese digest: English word, Vietnamese meaning, and example sentence for each word.
- Send a text message (Telegram) → posts the digest to your specified chat.
💡 About Margin AI
Margin AI is an AI-services agency that acts as your AI Service Companion. We design intelligent, human-centric automation solutions—turning your team’s best practices into scalable, automated workflows and tools. Industries like marketing, sales, and operations benefit from our tailored AI consulting, automation tools, chatbot development, and more.