Skip to main content

Create product satisfaction surveys with Telegram, Google Sheets and AI

Workflow preview

Workflow preview
100%
Create product satisfaction surveys with Telegram, Google Sheets and AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template uses a Telegram chatbot to conduct a Product Satisfaction Survey and fetches questions and stores answers in a Google sheet. It augments an AI Agent to ask follow up questions to ...

Best for

  • Market Research automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.telegram, n8n-nodes-base.if, n8n-nodes-base.redis, n8n-nodes-base.googlesheets, n8n-nodes-base.set, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.memoryredischat

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Create product satisfaction surveys with Telegram, Google Sheets and AI
Workflow name
Create product satisfaction surveys with Telegram, Google Sheets and AI

This n8n template uses a Telegram chatbot to conduct a Product Satisfaction Survey and fetches questions and stores answers in a Google sheet. It augments an AI Agent to ask follow-up questions to engage the user and uncover more insights in their responses.

This template is intended to demonstrate how you'd realistically approach a workflow where there is structured conversation (static questions) but you still want to include an free-form element (follow-up questions) which can only be accomplished via AI.

Check out an example Survey results: https://docs.google.com/spreadsheets/d/e/2PACX-1vQWcREg75CzbZd8loVI12s-DzSTj3NE_02cOCpAh7umj0urazzYCfzPpYvvh7jqICWZteDTALzBO46i/pubhtml?gid=0&single=true

How it works

  • A chat session is started with the user who needs to enter the bot command "/next" to start the survey.
  • Once started, the template pulls in questions from a google sheet to ask the user. Questions are asked in sequence from left column to right column.
  • When the user answers the question, a text classifier node is used to determine if a follow-up question could be asked.
  • If so, a mini conversation is initiated by the AI agent to get more details.
  • If not, the survey proceeds to the next question.
  • All answers and mini-conversations are recorded in the Google Sheet under the respective question.
  • When all questions are answered, the template will stop the survey and give the user a chance to restart.

How to use

  • You'll need to setup a Telegram bot (see docs)
  • Create a google sheet with an ID column. Populate the rest of the columns with your survey questions (see sample)
  • Ensure you have a Redis instance to capture state. Either self-host or sign-up to Upstash for a free account.
  • Update the "Set Variable" node with your google sheet ID and survey title.
  • Share your bot to allow others to participate in your survey.

Requirements

  • Telegram for Chatbot
  • Google Sheets for Survey questions and answers
  • Redis for State Management and Chat Memory
  • Community+ license and above for Execution data node - you can remove this node if you don't have this licence.

Customising this workflow

  • Not using Telegram? This template technically works with other chat apps such as Whatsapp, wechat and even n8n's hosted chat!
  • This state management pattern can also be applied to other use-cases and scenarios. Try it for other types of surveys!

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 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.1

Block 2 - Send Next Question

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

Block 3 - Send Response

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

Block 4 - Has No Record?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Is Survey Continue?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Get State2

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

Block 7 - Get Columns1

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

Block 8 - Set Variables1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Message Type1

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 10 - Get Command1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Bot Actions1

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 12 - Memory3

Type / Role
@n8n/n8n-nodes-langchain.memoryRedisChat - memoryRedisChat
Config choices
Version 1.4

Block 13 - Get Survey State1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Reset Agent Memory1

Type / Role
@n8n/n8n-nodes-langchain.memoryManager - memoryManager
Config choices
Version 1.1

Block 15 - Memory4

Type / Role
@n8n/n8n-nodes-langchain.memoryRedisChat - memoryRedisChat
Config choices
Version 1.4

Block 16 - Start Session1

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

Block 17 - Get State3

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

Block 18 - Increment Index1

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

Block 19 - Interview Agent1

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

Block 20 - Get Record1

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

Block 21 - Append Responses1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Update Answer2

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 23 - Get Last Bot Message1

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

Block 24 - Update Answer3

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Showing the first 24 of 40 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create product satisfaction surveys with Telegram, Google Sheets and AI
Complexity advanced
Nodes 40
Categories Market Research, AI Chatbot
Author Jimleuk
Published 09 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3115/3115.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 Create product satisfaction surveys with Telegram, Google Sheets and AI do?

This n8n template uses a Telegram chatbot to conduct a Product Satisfaction Survey and fetches questions and stores answers in a Google sheet. It augments an AI Agent to ask follow up questions to ...

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 Market Research, AI Chatbot use case.