Get weather forecast via Telegram
A workflow to receive weather updates on demand using a Telegram bot. The workflow is triggered using the Telegram Trigger node by issuing a message to the Telegram bot. The OpenWeatherMap node queries the weather API and returns the result using the Telegram node.
Send bulk messages to chats in Telegram
The Telegram API has a limitation to send only 30 messages per second. Use this workflow to send messages to more than 30 chats in Telegram.
Split test different agent prompts with Supabase and OpenAI
Split Test Agent Prompts with Supabase and OpenAI Use Case Oftentimes, it's useful to test different settings for a large language model in production against various metrics. Split testing is a good method for doing this. What it Does This workflow randomly assigns chat sessions to one of two prompts, the baseline and the alternative. The agent will use the same prompt for all interactions in that chat session. How it Works When messages arrive, a table containing information regarding session ID and which prompt to use is checked to see if the chat already exists If it does not, the session ID is added to the table and a prompt is randomly assigned These values are then used to generate a response Setup Create a table in Supabase called splittestsessions. It needs to have the following columns: sessionid (text) and showalternative (bool) Add your Supabase, OpenAI, and PostgreSQL credentials Modify the Define Path Values node to set the baseline and alternative prompt values. Activate the workflow and test by sending messages through n8n's inbuilt chat Experiment with different chat sessions to test see both prompts in action Next Steps Modify the workflow to test different LLM settings such as temperature Add a method to measure the efficacy of the two alternative prompts
Create structured eBooks in minutes with Google Gemini Flash 2.0 to Google Docs
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Description This workflow automates the creation of structured eBooks by generating chapters, table of contents, and content using Google Gemini Flash 2.0. Overview This n8n workflow allows users to input a topic or outline, which is then processed by Google Gemini Flash 2.0 to generate chapter titles, structured table of contents, and detailed section-wise content. The final output is formatted and exported into a Google Document, ready for review and further publishing. Who This Workflow Is For Authors & Writers Save time by auto-generating chapter ideas, summaries, and full-length content based on a topic or outline—great for fiction and nonfiction alike. Content Marketers Rapidly create downloadable eBooks, whitepapers, or lead magnets for campaigns without relying on long production cycles. Educators & Course Creators Convert your syllabus, course modules, or learning outcomes into structured, well-formatted educational eBooks. Agencies & Freelancers Offer AI-powered eBook creation as a value-added service to clients in need of fast, professional content. Entrepreneurs & Coaches Turn your knowledge, frameworks, or training material into publish-ready books to promote your brand or monetize content. Technical Writers & Documentarians Generate structured documentation or guides from outlines, simplifying the technical writing process with the help of AI. Tools Used n8n: Orchestrates input handling, AI processing, formatting, and export. Google Gemini Flash 2.0: Generates high-quality, structured content, including chapters, summaries, and body text. Google Docs: Used to compile and format the full eBook in a collaborative document. Google Drive / Email: Optional nodes for storing or delivering the final output. How to Install Import the Workflow: Download and import the .json file into your n8n instance. Configure Gemini Flash 2.0: Add your API key and set the desired creativity, length, and tone options. Provide Input: Use a webhook or manual trigger to define the eBook topic or structure. Customize Format: Modify prompts or Gemini instructions to match your eBook format, voice, or domain (e.g., fiction, business, technical). Export to Google Docs: Authenticate and configure the Google Docs node to write the output chapter-wise into a new or existing document. Optional Distribution: Connect to Google Drive or Gmail to store or send the final eBook. Use Cases Writers & Authors: Quickly draft entire eBooks based on minimal input. Marketers: Generate lead magnets, guides, and product documentation at scale. Educators: Produce structured learning materials or course eBooks. Agencies: Offer eBook creation services powered by AI. Entrepreneurs: Turn knowledge into content assets without hiring ghostwriters. Connect with Me Email: ranjancse@gmail.com LinkedIn: https://www.linkedin.com/in/ranjan-dailata/ Get Bright Data: Bright Data (Supports free workflows with a small commission) n8n automation ebookcreation googleai geminiflash aiwriting gdocs contentautomation ebookworkflow nocode contentmarketing gemini aiwriter automatedpublishing aicontent bookcreation geminiworkflow ebookgenerator gptalternative flash20 geminiflash2 authorautomation educationalcontent aiinmarketing n8nworkflow
Get an mp4 attachment from Gmail to Google Drive
This simple workflow allows you to get an mp4 attachment from gmail email and then upload it to Google Drive to get attachment webview link.
Website monitoring, scheduling, and email alerts template
🛠 Website Downtime Monitoring with Scheduled Checks and Email Alerts Easily monitor your website uptime and receive instant email alerts when it becomes unreachable — using this no-code template powered by n8n, a free and flexible workflow automation tool. This ready-to-use workflow periodically checks your website’s status and sends an alert email if it’s down. --- ⚙️ How it Works Schedule Website Check Triggers the workflow at regular intervals (e.g., every 8 hours by default). Check Website Status Sends an HTTP GET request to your site. Evaluate Response Determines if the site is reachable (expects HTTP status 200). Send Downtime Alert If the site is down, an alert email is sent to the specified address. --- 🔧 Steps to Customize HTTP Request Node Replace https://yourdomain.com with your actual website URL. Send Email Node Update the To Email and From Email fields with your addresses. Adjust Monitoring Frequency Modify the Schedule Trigger node to run every 5 minutes, hourly, or as needed. --- ✅ SMTP Configuration Instructions Before emails can be sent, you need to configure SMTP credentials in n8n. 📨 Option 1: Gmail SMTP Setup > Note: Gmail requires App Passwords (not your regular Gmail password) and 2FA to be enabled. Steps: Go to Google Account Security Settings. Enable 2-Step Verification. Go to App Passwords. Create a new app password (choose Mail and Other, name it n8n). In n8n: Go to Credentials → Create New → SMTP. Use the following values: Host: smtp.gmail.com Port: 465 (SSL) or 587 (TLS) User: your Gmail address (e.g., you@gmail.com) Password: the App Password you generated ✉️ Option 2: Generic SMTP Setup Use this if you're using your hosting provider's or business email SMTP server. Example Values: Host: smtp.yourdomain.com or provider-specific (e.g., smtp.sendgrid.net) Port: 587 (TLS) or 465 (SSL) User: your email address (e.g., alerts@yourdomain.com) Password: your email/SMTP password Secure: Yes (if using 465 or TLS-enabled 587) Then in the workflow's Send Email node, select the SMTP credentials you created. --- 📌 Requirements A running instance of n8n (self-hosted or n8n.cloud) SMTP credentials configured in n8n for email delivery Basic familiarity with the n8n visual editor --- 🧠 Pro Tips Rename Nodes: Use clear, descriptive names for maintainability. Sticky Notes: Use stickies on the canvas to help explain logic for others. Expand Alerts: Integrate with Slack, Discord, or Telegram for multi-channel alerts.
Generate startup ideas from Reddit posts using Gemini AI and Google Sheets
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Workflow Description: Startup Idea Finder (n8n) What This Workflow Does: This n8n workflow helps entrepreneurs discover startup ideas by automatically scraping top posts from multiple subreddits that often discuss unmet needs or problems (e.g., posts containing phrases like “Why is there no tool that”, “I wish there was an app for”, “someone should make”, etc.). The workflow extracts key information from these posts and sends it to Google’s Gemini 1.5 Flash-8b AI model, which analyzes the problem and suggests possible solutions or startup ideas. All relevant data and AI-generated insights are then saved to a Google Sheet for easy review and tracking. How It Works (Step-by-Step) Manual Trigger: The workflow starts with a manual trigger. Reddit Scraping: It queries multiple subreddits for top posts matching specific keywords that indicate a problem or unmet need. Merge & Edit Fields: The results are merged and filtered to keep only the necessary fields: title, selftext, ups, created, and url. AI Analysis: The filtered post data is sent to the Gemini 1.5 Flash-8b model with a prompt asking for: An explanation of the core problem, Whether existing solutions exist, A new startup idea if not, The target user, An implementation overview. Google Sheets Logging: Both the original post data and the AI’s output are appended as a new row in a Google Sheet for future reference. APIs & Credentials Needed To use this workflow, you must set up the following credentials in your n8n instance: Reddit API: For scraping subreddit posts. Google Gemini (PaLM) API: For AI-powered analysis and idea generation. Google Sheets API: For saving results to your spreadsheet. Google Sheets Setup Before running the workflow, create a Google Sheet with the following columns (in this order): title, selftext, ups, created, url, output The workflow will automatically append new rows with the scraped post data and the AI-generated output. Summary This workflow is a powerful tool for anyone looking to systematically discover and analyze real-world problems discussed online, and to generate actionable startup ideas using AI. Just set up your credentials, prepare your Google Sheet, and you’re ready to start finding your next big idea!
Get multiple clients' data from Invoice Ninja
Companion workflow for Invoice Ninja node docs
♻️ AI multi-stop planner for circular logistics with GPT-4o & Open Route API
Tags: AI Agent, Supply Chain, Logistics, Circular Economy, Route Planning, Transportation, GPS API Context Hi! I’m Samir — a Supply Chain Engineer and Data Scientist based in Paris, and founder of LogiGreen Consulting. I help logistics teams reduce operational workload and errors by combining AI automation, route optimisation APIs, and workflow automation. This workflow is part of a circular economy project, where stores return reusable packaging (bins, crates, containers) to a central warehouse. > Let's create circular economies with AI-powered automation using n8n! 📬 For business inquiries, you can find me on LinkedIn Who is this template for? This workflow is designed for logistics teams participating in circular economy loops. Let us imagine your transportation company receives this pickup request: [](https://bit.ly/playlist-n8n-supplyscience) The two AI Agent nodes connected to Openroute Service API will process the information and reply with the detailed route plan. [](https://bit.ly/playlist-n8n-supplyscience) The results include driving time and the optimal sequence of stops generated by the multi-stop optimization endpoint of the API. How does it work? This workflow automates the end-to-end processing of multi-stop pickup requests for reusable packaging: 📨 Gmail Trigger listens for collection request emails 🧠 AI Agent parses the email into structured data (store ID, address, date) 📍 Each stop is geocoded into GPS coordinates 🗺️ OpenRouteService optimizes the stop sequence using truck-specific routing 📄 A second AI Agent formats a confirmation email in HTML with the ordered pickup plan 📧 The reply is sent back with all details including duration and route Steps: 💌 Trigger on a new Gmail message 🧠 Extract data using AI Agent (e.g., stores, addresses, times) 📑 Store raw and processed data in Google Sheets 📍 Enrich with GPS coordinates 🚚 Optimize route using OpenRouteService (truck profile) 📄 Format the confirmation using an AI Agent 📬 Send reply to requester with route and timing [](https://bit.ly/playlist-n8n-supplyscience) What do I need to get started? You’ll need: A Gmail account to receive collection requests A Google Sheet to store and review data A free OpenRouteService API key Access to OpenAI for using AI Agent nodes Sample pickup request emails to test Next Steps 🗒️ Use the sticky notes inside the n8n canvas to: Plug in your Gmail and OpenRouteService credentials Try with a sample store collection email Validate the confirmation format and route accuracy 📺 Learn More with n8n Tutorials Get hands-on experience with automation through my comprehensive n8n tutorial playlist, featuring 18+ complete, step-by-step videos and ready-to-use templates. [](https://bit.ly/playlist-n8n-supplyscience) This template was built using n8n v1.93.0 Submitted: June 7, 2025
Automate e-commerce order processing with email notifications & webhooks
Who's it for Small online store owners, new entrepreneurs, and anyone getting started with e-commerce automation. Perfect for beginners who want to automate their order process without complexity or additional costs. Ideal for stores using Shopify, WooCommerce, Etsy, or any platform that supports webhooks. How it works This simple workflow automatically handles new orders by sending professional confirmation emails to customers and notification emails to your team. When a customer places an order, your e-commerce platform sends the order data to this workflow via webhook. The system extracts essential order information like customer details, order number, and total amount, then validates the data to ensure completeness. It sends a beautifully formatted confirmation email to the customer with order details, next steps, and your contact information. Simultaneously, your team receives an order notification email with all the details needed to process and fulfill the order. The workflow includes error handling for incomplete orders and sends appropriate responses back to your e-commerce platform to confirm successful processing. Everything is logged for easy tracking and troubleshooting. How to set up Prerequisites: An online store (Shopify, WooCommerce, etc.) Gmail account or any email service with SMTP 5 minutes for setup Setup steps: Configure your store information: Open the "Store Configuration" node Update with your store name, email addresses, phone number, and website This information appears in customer emails and notifications Set up email credentials: Add your Gmail account or SMTP email service to n8n Use the built-in email credential setup Gmail is free and works perfectly for most small stores Copy the webhook URL: Click on the "New Order Webhook" node Copy the webhook URL that appears This is where your store will send order data Add webhook to your store: Shopify: Go to Settings > Notifications > Webhooks, create new webhook for "Order creation" WooCommerce: WooCommerce > Settings > Advanced > Webhooks, add new webhook for "Order created" Other platforms: Look for webhook, API, or integration settings Test the workflow: Place a test order in your store Check that confirmation email was sent to customer Verify team notification email was received Confirm webhook response shows success Requirements E-commerce platform with webhook support (Shopify, WooCommerce, BigCommerce, Etsy, etc.) Email account - Gmail (free) or any SMTP email service n8n instance - cloud subscription or self-hosted installation Basic store information - contact details and branding How to customize the workflow Personalize email content: Edit the email templates in the "Send Customer Confirmation" and "Send Team Notification" nodes Add your brand voice and specific messaging Include additional order details or shipping information Add your logo or signature (if using HTML email) Modify order validation: Adjust validation rules in the "Validate Order Data" node Add checks for minimum order amounts Include product-specific validation Set up different handling for different order types Enhance team notifications: Add team member-specific routing based on order value or products Include inventory alerts for low-stock items Add urgency flags for rush orders Set up different notification schedules for weekends vs weekdays Extend functionality: Add SMS notifications using Twilio for urgent orders Include automated inventory updates Set up follow-up email sequences for customer engagement Add order status updates as items are processed and shipped Integration improvements: Connect with Google Sheets to log all orders automatically Add Slack notifications for team collaboration Integrate with shipping services for automatic label creation Link to accounting software for financial tracking This template focuses on simplicity and reliability, using only built-in n8n nodes and free services to get new store owners started with automation quickly and affordably.
Qualys scan Slack report subworkflow
Introducing the Qualys Scan Slack Report Subworkflow—a robust solution designed to automate the generation and retrieval of security reports from the Qualys API. This workflow is a sub workflow of the Qualys Slack Shortcut Bot workflow. It is triggered when someone fills out the modal popup in slack generated by the Qualys Slack Shortcut Bot. When deploying this workflow, use the Demo Data node to simulate the data that is input via the Execute Workflow Trigger. That data flows into the Global Variables Node which is then referenced by the rest of the workflow. It includes nodes to Fetch the Report IDs and then Launch a report, and then check the report status periodically and download the completed report, which is then posted to Slack for easy access. For Security Operations Centers (SOCs), this workflow provides significant benefits by automating tedious tasks, ensuring timely updates, and facilitating efficient data handling. How It Works Fetch Report Templates: The "Fetch Report IDs" node retrieves a list of available report templates from Qualys. This automated retrieval saves time and ensures that the latest templates are used, enhancing the accuracy and relevance of reports. Convert XML to JSON: The response is converted to JSON format for easier manipulation. This step simplifies data handling, making it easier for SOC analysts to work with the data and integrate it into other tools or processes. Launch Report: A POST request is sent to Qualys to initiate report generation using specified parameters like template ID and report title. Automating this step ensures consistency and reduces the chance of human error, improving the reliability of the reports generated. Loop and Check Status: The workflow loops every minute to check if the report generation is complete. Continuous monitoring automates the waiting process, freeing up SOC analysts to focus on higher-priority tasks while ensuring they are promptly notified when reports are ready. Download Report: Once the report is ready, it is downloaded from Qualys. Automated downloading ensures that the latest data is always available without manual intervention, improving efficiency. Post to Slack: The final report is posted to a designated Slack channel for quick access. This integration with Slack ensures that the team can promptly access and review the reports, facilitating swift action and decision-making. Get Started Ensure your Slack and Qualys integrations are properly set up. Customize the workflow to fit your specific reporting needs. Link to parent workflow Link to Vulnerability Scan Trigger Need Help? Join the discussion on our Forum or check out resources on Discord! Deploy this workflow to streamline your security report generation process, improve response times, and enhance the efficiency of your security operations.
Festival social media automation with Gemini AI for X/Twitter & Facebook
🎉 Festival Social Media Automation with Gemini AI for X/Twitter & Facebook Transform your festival marketing with this comprehensive automation workflow that creates and posts culturally authentic social media content across multiple platforms daily. ⚙️ What this workflow does This workflow automatically: Fetches festival data from Google Sheets based on today's date Generates AI-powered prompts for both image creation and social media content Creates stunning festival images using Google Gemini 2.0 Flash Preview Produces platform-specific content optimized for X (Twitter) and Facebook Posts automatically with proper image attachments and error handling ✨ Key Features 🎯 Intelligent Content Generation AI-powered prompt generation tailored to each festival's cultural context Platform-specific content optimization (character limits, hashtag strategies) Culturally sensitive and authentic messaging 🎨 Visual Content Creation Automated image generation using Google Gemini 2.0 Flash Preview Festival-themed graphics with vibrant, culturally appropriate designs Optimized for social media engagement 📲 Multi-Platform Publishing Simultaneous posting to X (Twitter) and Facebook Platform-specific formatting and optimization Built-in error handling and backup posting methods ⏰ Fully Automated Daily execution at 8:00 AM Date-based festival data retrieval Zero manual intervention required 📱 Apps and Integrations Google Sheets - Festival calendar and data storage Google Gemini 2.0 Flash Preview - AI content and image generation X (Twitter) - Social media posting Facebook Graph API - Facebook page posting Schedule Trigger - Daily automation 🛠️🕊️ Setup Instructions 📊 Google Sheets Configuration Create a Google Sheets document with columns: Date, Name of the Festival, Description Format dates as DD/MM/YYYY Connect your Google Sheets credential in n8n 🤖 Google Gemini API Setup Obtain a Google AI Studio API key from Google AI Studio Configure the Google Gemini credential in n8n Ensure you have access to Gemini 2.0 Flash Preview 🕊️X (Twitter) Credentials Setup Important: Due to X API limitations, you'll need TWO separate OAuth2 credentials: X API For Image Upload (Generic OAuth2): Create a new OAuth2 credential with these settings: Grant Type: PKCE Authorization URL: https://x.com/i/oauth2/authorize Access Token URL: https://api.x.com/2/oauth2/token Scope: media.write offline.access tweet.read users.read Note: Cannot combine media.write with tweet.write in the same credential For Tweet Posting (X OAuth2): Use the predefined X OAuth2 credential Configure with scopes: tweet.write offline.access tweet.read users.read 📘Facebook Graph API Setup Create a Facebook App and get your access token from Meta for Developers Configure the Facebook Graph API credential Update the node with your Facebook page ID 🎬 How to Use Populate your Google Sheets with festival data for upcoming dates Activate the workflow - it will run automatically daily at 8:00 AM Monitor the execution - check logs for successful posts or any errors Customize content by modifying the prompt generation logic if needed 🔄 Workflow Components 🔗 Data Flow Daily Trigger → Get Today's Date → Fetch Festival Data Generate AI Prompts → Create Image & Content Process Media → Merge Data → Post to Platforms 🛡️ Error Handling Backup HTTP posting method for X if primary method fails Continue execution even if individual platform posting fails Comprehensive error logging for troubleshooting 🎨 Customization Options ✍️ Content Personalization Modify the prompt generation logic for different content styles Adjust platform-specific character limits and hashtag strategies Customize image generation prompts for different visual styles 🌐 Platform Extension Add Instagram, LinkedIn, or other social media platforms Implement additional content formats (Stories, Reels, etc.) Create platform-specific posting schedules 📊 Data Sources Connect to different data sources (Airtable, Notion, CMS) Add support for multiple festival categories Implement content approval workflows 💡 Best Practices 📝 Content Quality Regularly review and update your festival database Monitor AI-generated content for cultural sensitivity Test different prompt styles for optimal engagement 🔑 API Management Monitor API usage limits for all connected services Implement rate limiting for high-volume posting Set up alerts for credential expiration ⏰ Scheduling Consider time zones for optimal posting times Implement staggered posting across platforms Add weekend/holiday scheduling logic 🔧 Troubleshooting ⚠️ Common Issues Image upload fails: Check OAuth2 credentials and API limits Content generation errors: Verify Gemini API key and model availability Date matching issues: Ensure date format consistency in Google Sheets ⚡️ Performance Tips Optimize image generation prompts for faster processing Use structured output parsing for consistent results Implement content caching for repeated festivals 🎯 Use Cases Cultural Organizations - Automate festival announcements and celebrations Event Management Companies - Scale social media presence across multiple events Tourism Boards - Promote local festivals and cultural events Marketing Agencies - Manage multiple client festival campaigns Community Organizations - Engage audiences with regular cultural content ⭐️ Benefits Time Savings - Eliminate manual social media posting Consistency - Maintain regular posting schedule Cultural Authenticity - AI-generated content respects cultural context Multi-Platform Reach - Simultaneous posting increases visibility Scalability - Handle unlimited festivals with zero additional effort This workflow transforms festival marketing from a time-consuming manual process into a fully automated, culturally intelligent system that engages audiences across multiple platforms while maintaining authenticity and relevance.