Telegram ChatGPT Session Management
detail.loadingPreview
Manages user sessions for a Telegram bot interacting with ChatGPT.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow enables a Telegram bot to manage user conversation sessions with ChatGPT. It allows users to initiate new sessions, switch between existing ones, and resume previous conversations, ensuring context is maintained for a more coherent chat experience.
Key Features
- Manages multiple chat sessions for individual users.
- Allows users to start a new session with a
/newcommand. - Enables switching to a different session with
/currentor/resume. - Utilizes Google Sheets for persistent session storage and state management.
- Integrates with OpenAI's GPT models for natural language understanding and generation.
How To Use
- Import the workflow into your n8n instance.
- Configure the Telegram credentials by adding your Bot Token.
- Configure the OpenAI API credentials with your API key.
- Configure the Google Sheets credentials to access your session management spreadsheet.
- Set up your Google Sheet named 'Chatbot with session' with columns 'SESSION' and 'STATE'. The 'STATE' column should be used to mark sessions as 'current', 'expire', or other relevant states.
- Adjust the
sessionKeyandsessionIdTypein the 'Simple Memory' node if a different session key is required. - Deploy the workflow and interact with your Telegram bot.
Apps Used
Workflow JSON
{
"id": "11d14092-e4a4-4587-b9b4-7e0e9eeb3d88",
"name": "Telegram ChatGPT Session Management",
"nodes": 0,
"category": "AI & Machine Learning",
"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: 11d14092-e4a4...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Create an AI-Powered Telegram Bot with Langchain and DALL-E 3
Build a sophisticated Telegram bot using n8n, integrating Langchain for AI conversation and DALL-E 3 for image generation. This workflow allows for dynamic chat interactions and creative image creation directly through Telegram.
Telegram AI Langchain Bot with DALL-E 3 Image Generation
An n8n workflow that acts as a Telegram bot, powered by Langchain, for AI chat interactions and image generation using DALL-E 3.
AI-Powered Company Research and Enrichment for Google Sheets
Leverage AI with OpenAI and LangChain to automatically research companies, extract key data like domain, market, and pricing, and update Google Sheets. This workflow uses the 'OpenAI Chat Model', 'get_website_content' tool, and 'SerpAPI - Search Google' to enrich your data.
Telegram AI Chatbot with Long-Term Memory and Note Storage
Build a sophisticated Telegram chatbot powered by AI, capable of maintaining long-term memory and storing notes using Google Docs. This workflow leverages Langchain and n8n nodes to create an intelligent conversational agent.
NeurochainAI Basic API Integration for Telegram
Integrates NeurochainAI's text and image generation APIs with a Telegram bot.
Automated Customer Feedback Sentiment Analysis with OpenAI and Google Sheets
This n8n workflow automatically analyzes customer feedback for sentiment using OpenAI and stores the results in Google Sheets. It's triggered by a form submission, making feedback processing seamless.