Templates / Send GPT-4 Telegram polls to multiple groups with Google Sheets analytics

Send GPT-4 Telegram polls to multiple groups with Google Sheets analytics

Needs changes

by Oneclick AI Squad ✓ · 102 views · created 2025-10-31 · Social Media, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs on a schedule (cron 0 9,17 * * 1-5). Along the way it connects Google Sheets, OpenAI Chat Model and Telegram.

How it runs

Trigger: On a schedule (cron 0 9,17 * * 1-5).

  1. Load Topic Queue from Sheets (Google Sheets): uses Google Sheets
  2. Select Highest Priority Topic (Code): runs custom JavaScript code
  3. Load Telegram Group Registry (Google Sheets): uses Google Sheets
  4. GPT-4 Poll Question Generation (AI Agent): runs an AI agent, with model: GPT-4o Model
  5. Validate Poll Quality and Safety (Code): runs custom JavaScript code
  6. Split Groups for Parallel Deploy (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Send Poll to Telegram Group (Telegram): uses Telegram
  8. Send Context Message with Hashtags (Telegram): uses Telegram
  9. Collect Deploy Result Per Group (Code): runs custom JavaScript code
  10. Merge: merges the data from its input branches

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

Services it uses

Google SheetsOpenAI Chat ModelTelegram

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in GPT-4 Poll Question Generation (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
GPT-4 Poll Question Generation (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (9)

From the author

An enterprise-grade n8n workflow that leverages OpenAI GPT-4 to generate contextually relevant poll questions and automatically distributes them across multiple Telegram groups and channels. Includes comprehensive analytics tracking, smart error handling,…

Excerpt from Oneclick AI Squad'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.