Automated Content Generation Bot with Gemini AI
detail.loadingPreview
Leverage the power of Google's Gemini AI to automate content creation directly through a Telegram bot. This workflow transforms user prompts into blog articles, marketing copy, and more, streamlining your content pipeline.
About This Workflow
This n8n workflow empowers you to build an intelligent content generation bot powered by the advanced Gemini AI model. It integrates seamlessly with Telegram, allowing users to interact with the bot via messages and callbacks. The workflow intelligently routes user input, whether it's a direct request for content, a style selection, or a command like /start or /help. The core of the automation lies in the Gemini Chat Model node, which processes prompts and generates high-quality text outputs. This solution is ideal for marketers, content creators, and businesses looking to scale their content production efficiently.
Key Features
- Intelligent Input Handling: Recognizes various Telegram input types including messages, callback queries, and specific commands.
- Gemini AI Integration: Utilizes the powerful
models/gemini-2.5-flash-lite-preview-06-17model for versatile text generation. - Telegram Bot Interface: Provides a user-friendly chat interface for seamless interaction.
- Dynamic Menu Navigation: Offers interactive inline keyboards for easy selection of content types and actions.
- Customizable Content Generation: Can be adapted to generate various content formats based on user prompts.
How To Use
- Set up Telegram Bot: Create a new Telegram bot using BotFather and obtain your API token.
- Configure Telegram Trigger: In the
Trigger Telegram Messagenode, input your Telegram Bot API token. - Connect Gemini AI: Obtain your Google Gemini API key and configure the
Gemini Chat Modelnode with your credentials. - Customize Input Classification: Review and adjust the JavaScript code in the
Classify Telegram Inputnode to match your desired input handling logic. - Design Menu and Responses: Modify the
Send Main Menu to Userand subsequentSend Messagenodes to customize the bot's menu, prompts, and confirmation messages. - Map Callback Data: Ensure the
callback_datavalues in theinlineKeyboardmatch the conditions in theSwitch Callback Selectionnode for proper routing. - Develop Content Generation Logic: For each content type (e.g., 'image', 'blog'), configure the subsequent nodes to construct appropriate prompts for the Gemini Chat Model and handle the AI's output.
Apps Used
Workflow JSON
{
"id": "6fa52e34-08c1-4a43-b89e-84ba9109ce08",
"name": "Automated Content Generation Bot with Gemini AI",
"nodes": 29,
"category": "Marketing",
"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: 6fa52e34-08c1...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.
Automate LinkedIn Content Promotion for Your Ghost Blog with AI
Effortlessly promote your latest Ghost blog posts on LinkedIn. This workflow leverages AI to generate engaging, professional LinkedIn messages based on your article content and saves them, along with article metadata, directly to a Google Sheet.
AI-Powered Instagram Comment Automation
This n8n workflow intelligently automates responses to Instagram comments, leveraging advanced AI to engage with your audience. It filters out irrelevant content and personalizes replies, saving you time while boosting your social media presence.