Advanced Telegram AI Chatbot & Image Generator
detail.loadingPreview
This n8n workflow creates a sophisticated Telegram bot that leverages OpenAI's AI models to provide intelligent chat responses and generate images on demand. It's designed for personalization, multilingual interaction, and a seamless user experience, handling various commands and general conversation.
About This Workflow
Unleash the power of AI directly within your Telegram chats with this versatile n8n workflow. This solution builds an intelligent Telegram bot capable of engaging in dynamic conversations using GPT-4 and generating stunning images from text prompts via DALL-E. It intelligently processes user commands like /start for a warm welcome or /image for creative visuals, while also handling general chat with AI. Key features include dynamic language detection, personalized responses based on user details, and a smooth user experience with "typing" indicators. Automate interactions and elevate your Telegram presence effortlessly.
Key Features
- Intelligent Telegram Bot: Triggers on all Telegram updates, providing a responsive and interactive experience for users.
- Multifunctional AI Integration: Seamlessly integrates with OpenAI's GPT-4 for natural language understanding and DALL-E for on-demand image generation.
- Dynamic Command Handling: Differentiates between
/startfor greetings,/imagefor visual content, and general chat, routing messages appropriately. - Personalized & Multilingual Responses: Automatically detects user language and name, ensuring replies are relevant, friendly, and in the correct language, complete with emojis.
- Enhanced User Experience: Sends "typing" or "uploading photo" status to Telegram, keeping users informed of the bot's activity.
- Configurable AI Behavior: Easily adjust AI model temperature, response length, and the bot's core personality via a dedicated Settings node.
How To Use
- Telegram Trigger Node: Connect your Telegram Bot Token. Ensure 'updates' are configured to listen for
*(all updates). - Settings (Set Node): Customize
model_temperaturefor AI creativity (0.0-1.0),token_lengthfor response brevity. Most importantly, modify thesystem_commandstring to define your bot's core personality and instructions. Thebot_typingexpression can generally be left as is. - CheckCommand (Switch Node): This node intelligently routes messages based on user input. You typically won't need to change its rules unless you plan to add or modify specific commands.
- OpenAI Nodes (Chat_mode, Greeting, Create an image): For each of these nodes, select your configured OpenAI API credentials. The prompts are already set up dynamically to interact with the AI.
- Telegram Output Nodes (Text reply, Send Typing action): Ensure these nodes are also configured with your Telegram bot credentials and are correctly linked to send responses (text, typing actions) back to the user's
chatId. You might need to add a 'Telegram Send Photo' node after 'Create an image' for full image functionality. - Activate Workflow: Once all credentials are set and configurations are reviewed, activate the workflow. Test your bot by sending
/start,/image your prompt here, or any general message to observe its intelligent responses.
Apps Used
Workflow JSON
{
"id": "703e78e0-7c79-4df6-b951-4099a8026fe0",
"name": "Advanced Telegram AI Chatbot & Image Generator",
"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: 703e78e0-7c79...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
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.