GiggleGPTBot is a witty Telegram bot built with n8n , OpenRouter , and Postgres.
It delivers short jokes, motivational one-liners, and playful roasts, responds to mentions, and posts scheduled witty content.
The workflow also tracks user activity and provides lightweight statistics and leaderboards.
/joke, /inspire, /random, /roast, /help, /stats, /top.@GiggleGPTBot.Triggers
Telegram Trigger β receives all messages and commands from a chat.Schedule Trigger β runs hourly to check for planned posts.Processing
Switch routes commands (/joke, /inspire, /random, /roast, /help, /stats, /top).Chat history fetches the latest context.Mention Analysis determines if the bot was mentioned.Generating an information response builds replies for /help, /stats, /top.AI response to command, AI response to mention, AI post generation) craft witty content via OpenRouter.Persistence
Init Database ensures tables exist (user_messages, bot_responses, bot_commands, message_reactions, scheduled_posts, user_stats).Delivery
Telegram Send nodes (Send AI response, Send info reply, Reply to Mention, Submit scheduled post).Create a Telegram Bot with @BotFather and get your API token.
Add credentials in n8n:
Telegram API (your bot token)OpenRouter (API key from openrouter.ai)Postgres (use your DB, Supabase works well).Run theInit Database node once to create all required tables.
(Optional) Seed schedule with the Adding a schedule node β it inserts:
chat_id to your group/channel ID.)Activate workflow and connect Telegram Webhook or Polling.
/joke β witty one-liner with light irony./inspire β short motivational phrase./random β unexpected witty remark./roast β sarcastic roast (no offensive targeting)./stats β shows your personal stats./top β displays leaderboard./help β lists available commands.@GiggleGPTBot + message β bot replies in context./quote, /fact, /news).π¦ Import this workflow, configure credentials, run the DB initializer β and your witty AI-powered Telegram companion is ready!


