Templates / Create a Witty Telegram Bot with AI-Powered Humor, Roasts & Stats using OpenRouter

Create a Witty Telegram Bot with AI-Powered Humor, Roasts & Stats using OpenRouter

Ready for 3.0

by Sergey Skorobogatov ✓ · 349 views · created 2025-08-20 · AI Chatbot, Multimodal AI

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-10-19.

What this workflow does

This AI workflow has 26 nodes and runs on Telegram events (plus 1 other trigger). Along the way it connects Telegram, OpenRouter Chat Model and Postgres.

How it runs

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

  1. Log message + statistics (Postgres): run a query
  2. Switch: routes items into 8 branches
  3. Get scheduled posts (Postgres): run a query
  4. Chat history (Postgres): run a query
  5. Get user statistics (Postgres): run a query
  6. Generating an information response (Code): runs custom JavaScript code
  7. Get top users (Postgres): run a query
  8. If: checks a condition and branches into true / false
  9. Mention Analysis (Code): runs custom JavaScript code
  10. Log command (Postgres): run a query

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

Services it uses

TelegramOpenRouter Chat ModelPostgres

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.

Nodes used (9)

From the author

GiggleGPTBot — Witty Telegram Bot with AI & Postgres 📝 Overview 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…

Excerpt from Sergey Skorobogatov'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.