Skip to main content

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

Workflow preview

Workflow preview
100%
Send GPT-4 Telegram polls to multiple groups with Google Sheets analytics preview
Open on n8n.io

1. Workflow Overview

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. Includ...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.splitinbatches, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

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

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, real-time admin notifications, and priority-based topic scheduling.

Perfect for community managers, HR teams, educators, marketing departments, and organizations running multiple Telegram communities who want to maintain consistent engagement without manual effort.

How it works

  1. Schedule Trigger - Fires on a configurable cron (default: 9 AM & 5 PM weekdays)
  2. Load Topic Queue - Reads priority-ranked topics from Google Sheets topic registry
  3. Select Best Topic - Picks the highest-priority, freshest topic with 24-hour dedup guard
  4. GPT-4 Poll Generation - Creates engaging, on-brand poll questions with emoji options
  5. Validate Poll - Enforces Telegram API limits and content safety before sending
  6. Multi-Group Deploy - Distributes poll + context message to every enabled Telegram group
  7. Analytics Logging - Writes per-poll deployment stats to Google Sheets
  8. Admin Telegram Alert - Sends real-time deploy summary to admin chat
  9. Topic Queue Update - Marks topic used, updates next-scheduled date

Google Sheets Setup

Sheet 1 — Topic Queue: topic | category | priority | language | tone | targetAudience | lastUsed | usageCount | enabled Sheet 2 — Group Registry: groupId | groupName | groupType | language | enabled Sheet 3 — Analytics Log: pollId | topic | question | totalGroups | successfulGroups | successRate | completedAt

Credentials Needed

  • OpenAI API — GPT-4o poll generation
  • Telegram Bot API — Sending polls and messages
  • Google Sheets — Topic queue, group registry, analytics
  • SMTP — Error alert emails

Key Features

  • Priority-based topic scheduling with staleness detection
  • Telegram API constraint enforcement (255 char question, 100 char options)
  • Per-group error isolation — one failed group never blocks others
  • Real-time admin Telegram notification with success/fail breakdown
  • Full SOC-ready audit log for every poll deployment

Explore More Automation: Contact us to design AI-powered lead nurturing, content engagement, and multi-platform reply workflows tailored to your growth strategy.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Poll Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 7 - Load Topic Queue from Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 8 - Select Highest Priority Topic

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Load Telegram Group Registry

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 10 - GPT-4 Poll Question Generation

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.6

Block 11 - GPT-4o Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 12 - Validate Poll Quality and Safety

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Split Groups for Parallel Deploy

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 14 - Send Poll to Telegram Group

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 15 - Send Context Message with Hashtags

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 16 - Collect Deploy Result Per Group

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Merge All Group Results

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 18 - Build Analytics Summary

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Log Analytics to Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 20 - Send Admin Telegram Notification

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 21 - Send Error Alert Email on Failures

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 22 - Update Topic Queue — Mark Used

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 23 - Build Final Deployment Report

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow Send GPT-4 Telegram polls to multiple groups with Google Sheets analytics
Complexity advanced
Nodes 23
Categories Social Media, Multimodal AI
Author Oneclick AI Squad
Published 31 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10383/10383.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send GPT-4 Telegram polls to multiple groups with Google Sheets analytics do?

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. Includ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.