Templates / Ai-powered Telegram trivia bot with auto question generation & user management

Ai-powered Telegram trivia bot with auto question generation & user management

Ready for 3.0

by Luka Zivkovic ✓ · 3,835 views · created 2025-06-29 · Miscellaneous, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 31 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects Telegram, NocoDB and OpenAI.

How it runs

Trigger: On Telegram events (message) (plus 1 other trigger).

  1. Parse Telegram Data (Code): runs custom JavaScript code
  2. Get Possible Categories (Code): runs custom JavaScript code
  3. Check Existing User (NocoDB): get many
  4. OpenAI: uses OpenAI, with 1 tool (NocoDB)
  5. User Exists? (If): checks a condition and branches into true / false
  6. Send New Questions Available Notification (Telegram): uses Telegram
  7. Merge User Data (Code): runs custom JavaScript code
  8. Create New User (NocoDB): create
  9. Is Command? (If): checks a condition and branches into true / false
  10. Command Router (Switch): routes items into 6 branches

…plus 18 more steps. See the full node list below.

Services it uses

TelegramNocoDBOpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (11)

From the author

Complete Telegram Trivia Bot with AI Question Generation Build a fully-featured Telegram trivia bot that automatically generates fresh questions daily using OpenAI and tracks user progress with NocoDB. Perfect for communities, education, or entertainment! Get…

Excerpt from Luka Zivkovic's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.