Create a Session-Based Telegram Chatbot with GPT-4o-mini and Google Sheets
n8n template #3798Summary
Use templateHow It Works This workflow creates an AI-powered Telegram chatbot with session management, allowing users to: Start new conversations (/new). Check current sessions (/current). Resume past sessions (/resume). Get summaries (/summary). Ask questions (/question). Key Components: Session Management: Uses Google Sheets to track active/expired sessions (storing SESSION IDs and STATE). /new creates a session; /resume reactivates past ones. AI Processing: OpenAI GPT-4 generates responses with contextual memory (via Simple Memory node). Summarization: Condenses past conversations when requested. Data Logging: All interactions (prompts/responses) are saved to Google Sheets for audit and retrieval. Us
Hand off to your agent
Prompt
Help me set up the n8n workflow "Create a Session-Based Telegram Chatbot with GPT-4o-mini and Google Sheets" (https://n8n.io/workflows/3798). It uses: Google Sheets, Telegram, Code, AI Agent, Summarization Chain, Basic LLM Chain, OpenAI Chat Model, Simple Memory. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Similar workflows
NameViews
- Explore n8n Nodes in a Visual Reference Library5,197
- AI Email Analyzer: Process PDFs, Images & Save to Google Drive + Telegram21K
- Automate SEO blog content creation with GPT-4, Perplexity AI and WordPress6,949
- Automate SEO blog creation + social media with GPT-4, Perplexity and WordPress5,798
- Automated Research Report Generation with AI, Wiki, Search & Gmail/Telegram4,632
- Summarize YouTube Videos & Chat About Content with GPT-4o-mini via Telegram2,805
- Create & Share AI Videos with Telegram, Gemini & Post to TikTok, Instagram, FB376
- Generate AI Photos with Gemini & Auto-Post to FB, Instagram & X with Approval239