AI-Powered Interactive Telegram Survey Bot
detail.loadingPreview
This n8n workflow creates an intelligent survey bot on Telegram, leveraging AI to process user responses. It dynamically serves questions from Google Sheets and manages survey progress using Redis, offering a seamless and interactive feedback collection experience.
About This Workflow
Revolutionize your data collection with this AI-powered interactive survey bot. Designed for Telegram, this workflow transforms static surveys into dynamic, engaging conversations. Questions are sourced directly from a Google Sheet, offering easy management, while Redis ensures robust user state tracking and survey progression. The integration of an AI agent allows for intelligent processing of user inputs, providing relevant feedback or moving the conversation forward. Ideal for gathering product satisfaction, customer insights, or conducting educational quizzes, this bot provides a modern, automated approach to interactive feedback.
Key Features
- Telegram Integration: Engage users directly within Telegram for a convenient survey experience.
- AI-Enhanced Responses: Utilizes an AI agent (e.g., LLM) to interpret and respond intelligently to user inputs.
- Dynamic Question Management: Load survey questions and options directly from a Google Sheet, making content updates simple.
- Persistent Survey State: Redis ensures user progress is saved, allowing surveys to be continued seamlessly across sessions.
- Bot Command Support: Handles standard Telegram commands like
/start,/next, and/resetfor intuitive user navigation.
How To Use
- Set up Telegram Bot: Obtain your API token from BotFather and configure the 'Telegram Trigger' node with your Telegram Bot credentials. Ensure the 'Send Next Question' and 'Send Response' nodes also use these credentials.
- Prepare Google Sheet: Create a Google Sheet containing your survey questions (e.g., one question per column). Configure the 'Get Columns1' node with your Google Sheets API credentials and update the
gsheetIdvariable in 'Set Variables1' to point to your survey sheet's ID. - Configure Redis: Set up a Redis instance and provide its credentials to the 'Get State2' node (and any 'Save State' nodes if present in the full workflow). The
cacheKeyin 'Set Variables1' should ensure unique state storage per user. - Integrate AI Agent: Connect your chosen AI model (e.g., OpenAI, custom LLM) to the 'Interview Agent1' node (which processes user responses) to enable intelligent conversation and feedback generation.
- Define Survey Logic: Customize the 'If' nodes ('Has No Record?', 'Is Survey Continue?') and the 'Message Type1' switch node to control the flow based on user input, survey progress, and completion.
Apps Used
Workflow JSON
{
"id": "8ed2ebaf-c293-4f75-903e-27e00642e4eb",
"name": "AI-Powered Interactive Telegram Survey Bot",
"nodes": 26,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 8ed2ebaf-c293...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Google Sheets to Icypeas: Automated Bulk Domain Scanning
This workflow streamlines the process of performing bulk domain scans by integrating your Google Sheets data directly with the Icypeas platform. Automate the submission of company names from your spreadsheet to Icypeas for comprehensive domain information, saving valuable time and effort.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.