Ai-powered Telegram trivia bot with auto question generation & user management
Ready for 3.0What 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).
- Parse Telegram Data (Code): runs custom JavaScript code
- Get Possible Categories (Code): runs custom JavaScript code
- Check Existing User (NocoDB): get many
- OpenAI: uses OpenAI, with 1 tool (NocoDB)
- User Exists? (If): checks a condition and branches into true / false
- Send New Questions Available Notification (Telegram): uses Telegram
- Merge User Data (Code): runs custom JavaScript code
- Create New User (NocoDB): create
- Is Command? (If): checks a condition and branches into true / false
- Command Router (Switch): routes items into 6 branches
…plus 18 more steps. See the full node list below.
Services it uses
Other Telegram + OpenAI templates (807) · Other OpenAI + NocoDB templates (12) · Other Telegram + NocoDB templates (3)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Code
n8n-nodes-base.code - NocoDB
n8n-nodes-base.nocoDb - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Merge
n8n-nodes-base.merge - OpenAI
@n8n/n8n-nodes-langchain.openAi - Noco Db Tool
n8n-nodes-base.nocoDbTool - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Aggregate
n8n-nodes-base.aggregate
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…