by Mutasem
Use case Error workflows are an important part of running workflows in production. Make sure to set them up for all your important workflows. The message links directly to the execution. How to setup Add Telegram creds Set chat id in Telegram node Add this error workflow to other workflows https://docs.n8n.io/flow-logic/error-handling/#create-and-set-an-error-workflow
by dmr
AI YouTube Playlist & Video Analyst Chatbot This n8n workflow transforms entire YouTube playlists or single videos into interactive knowledge bases you can chat with. Ask questions and get summaries without needing to watch hours of content. 🌟 How it Works 🔗 Provide a Link: Start by giving the workflow a URL for a YouTube playlist or a single video. 📄 Content Retrieval: The workflow automatically fetches the video details and transcripts for the provided link. For playlists, it can process multiple videos at once (you might be asked how many). 🧠 AI Processing: Google's Gemini AI reads through the transcripts, understands the content, and creates summaries. 💾 Storage & Context: The processed information and summaries are stored in a vector database (Qdrant), making them ready for conversation. Context is managed using Redis, remembering the current video/playlist you're discussing. 💬 Chat & Ask: Now, you can ask the AI agent questions about the playlist or video content! Because context is maintained, you can ask follow-up questions (like "expand on point X") without needing to provide the URL again. 🛠️ Requirements Community Node:** This workflow uses the youtubeTranscripter community node to fetch video transcripts. You'll need to install it in your n8n environment. Installation: npm install n8n-nodes-youtube-transcription-dmr Important: Community nodes require a self-hosted n8n instance. Redis:** A Redis instance is required for managing conversation context and status between interactions. Credentials:** You will need API credentials configured in your n8n instance for: Google Gemini (AI Models) Qdrant (Vector Store) Redis (Context Store) 🤖 AI Agent Capabilities Engage with the AI agent to explore the video content. Since the agent remembers the context of your conversation, you can ask detailed follow-up questions naturally: Get a quick summary of a single video or an entire playlist. Ask for key takeaways or main topics discussed. Query for specific information mentioned in the videos. Ask the agent to elaborate on a specific point previously mentioned. Understand complex subjects without watching the full duration. 🚀 Use Cases 📊 Content Analysis:** Quickly understand the themes and key points across a playlist or long video. 📚 Research & Learning:** Extract insights from educational series or tutorials efficiently. ✍️ Content Creation:** Easily repurpose video transcript information into blog posts, notes, or social media content. ⏱️ Save Time:** Get the essence of video content when you're short on time. ♿ Accessibility:** Offers a text-based way to interact with and understand video content. ✨ Sample Prompts Please analyze this playlist and tell me the main topics covered: [YouTube Playlist URL] Summarize the first 5 videos in this playlist: [YouTube Playlist URL] (Follow-up) Tell me more about the main point in video 3. What are the key points discussed in this video? [YouTube Video URL] (Follow-up) Expand on the second key point you mentioned. Does the video at [YouTube Video URL] mention [specific topic]?
by Luciano Gutierrez
Create & Publish Instagram Carousel Posts with GPT-4.1-mini, Imgur & Graph API Version: 2.0.0 n8n Version: 1.88.0+ Author: Unknown License: MIT Description An intelligent and modular workflow that automatically generates, manages, and publishes Instagram carousel posts, using AI for both content and images. It includes semantic memory to ensure uniqueness across posts and a scalable architecture for brand growth. Key Features 🤖 Advanced AI Carousel Content: Generates unique multi-slide post content—titles, captions, hashtags, and strategic CTAs for each card in the carousel. 🎨 Automated Image Generation: Creates high-quality visuals for every slide using OpenAI's DALL·E API. 🧠 Semantic Memory Search: Checks each theme against a local vector database using OpenAI Embeddings to avoid content repetition. 📊 Publication Database: Logs all generated carousel posts into Google Sheets for tracking, analytics, and audits. 📱 Instagram Direct Publishing: Publishes carousel media and captions automatically through the Instagram Graph API. 🗓️ Scheduled & Manual Runs: Trigger manually or schedule every 12 hours. 🔐 Secure Credential Management: Uses n8n credential fields—no hardcoded API keys or tokens. 🚀 Flexible Prompting System: Dynamically adapts style templates for different brands and industries. Use Cases E‑commerce Launches: Showcase product features across multiple slides with tailored benefits and CTAs. Fitness & Wellness Tips: Educate followers with step-by-step workouts or nutrition advice in a carousel format. Educational Infographics: Present multi-part tutorials, stats, or course highlights. SaaS Feature Demos: Demonstrate software workflows or new features slide by slide. Event Announcements: Build excitement for webinars, conferences, or local meetups. Customization Examples Retail/E‑commerce: Adjust the **Theme Generator Code Node to include product category, price point, and seasonal focus as vector inputs. Health & Fitness: Tweak the **AI Prompt Templates to match your brand voice—e.g., friendly coach tone with bullet‑pointed workout steps. Education/Training: Modify the **Semantic Memory Embeddings Node thresholds to deepen topic variety across tutorial series. Tech/SaaS: Customize the **Image Hosting HTTP Request Node to use your company’s CDN instead of Imgur by swapping the endpoint and credential field. Workflow Overview 1. Theme Generation (Generate Theme Code Node) Combines random vectors (topic starter + focus + benefit) to create unique carousel themes. 2. Content Creation (AI Agent Code Node) Sends themed prompts to OpenAI, generating slide-by-slide titles, captions, and CTAs in structured JSON. 3. Semantic Memory Check (OpenAI Embeddings Node) Runs embeddings against past themes stored in a Postgres vector database (pgvector) to ensure novelty. If similarity > threshold, regenerates theme. 4. JSON Validation (Parse & Validate Code Node) Parses AI response, validates JSON schema, and handles errors gracefully to prevent workflow failures. 5. Content Storage (Google Sheets Node) Writes carousel metadata (titles, captions, hashtags, slide count, scheduled date) to a Google Sheets spreadsheet. 6. Image Generation (DALL·E Image Generation Node) Generates one graphic per slide at 1024×1024 resolution. 7. Image Hosting (Imgur Upload HTTP Request Node) Uses an HTTP Request node with Imgur credential field to upload each image and retrieve public URLs. 8. Instagram Publishing (Instagram Graph API Nodes) Create Media Containers**: Sends batch media creation request. Publish Carousel**: Publishes the carousel using the list of container IDs and caption. 9. Scheduling & Triggers Manual Trigger**: For testing and one‑off posts. Cron Trigger**: Scheduled trigger every 12 hours (configurable). Security All sensitive values (OpenAI API key, Imgur Client ID/Secret, Instagram Access Token, Google Sheets OAuth2) must be stored in n8n’s Credentials panel. Do not hardcode keys or tokens in HTTP Request or Code nodes. Instead, reference credential fields: In HTTP Request nodes: select the corresponding credential under Authentication. In Code nodes: access this.getCredentials('openAI'), this.getCredentials('imgur'), etc. Instructions Import the Workflow: In n8n, go to Workflows > Import from File and upload the JSON. Configure Credentials: OpenAI API – set up in Credentials > OpenAI API. Google Sheets OAuth2 – set up in Credentials > Google Sheets OAuth2. Imgur – set up in Credentials > Imgur. Instagram Graph API – set up in Credentials > Instagram Graph API. Set Placeholders: Google Sheets Document ID Instagram User ID Customize Prompts & Vectors: Tweak Code node inputs and prompt templates as needed. Test & Activate: Run a manual trigger, verify outputs, then enable the cron schedule. Tags Social Media Instagram Carousel AI Content Generation OpenAI n8n Marketing Automation Vector Search Content Scheduling Technical Notes Uses pgvector in Postgres for efficient semantic similarity. Supports extensible platforms—duplicate the publishing steps to add LinkedIn or Facebook. Error handling ensures invalid JSON never reaches the publishing nodes. License This workflow is released under the MIT License.
by WeblineIndia
This n8n workflow automatically sends a Telegram message whenever a new event is added to Google Calendar. It extracts key event details such as event name, description, event creator, start date, end date, and location and forwards them to a specified Telegram chat. This ensures you stay updated on all newly scheduled events directly from Telegram. Prerequisites Before setting up the workflow, ensure the following: Google Account with Google Calendar Access: The Google Calendar API must be enabled. Telegram Bot: Create a bot using BotFather on Telegram. Telegram Chat ID: Retrieve the Chat ID (personal chat or group). Use OAuth2 for Google Calendar and a Bot Token for Telegram. Steps Step 1: Google Calendar Trigger Node (Event Created Event) Click "Add Node" and search for Google Calendar. Select "Google Calendar Trigger" and add it to the workflow. Authenticate with your Google Account. Select "Event Created" as the trigger type. Choose the specific calendar to monitor. Click "Execute Node" to test the connection. Click "Save". Step 2: Telegram Node (Send Message Action) Click "Add Node" and search for Telegram. Select "Send Message" as the action. Authenticate using your Telegram Bot Token. Set the Chat ID (personal or group chat). Format the message using details from Google Calendar Trigger and set the message in text. Click "Execute Node" to test. Click "Save". Step 3: Connect & Test the Workflow Link Google Calendar Trigger → Telegram Send Message. Execute the workflow manually. Create a test event in Google Calendar. Check Telegram to see if the event details appear. n8n Workflow Created by WeblineIndia This workflow is built by the AI development team at WeblineIndia. We help businesses automate processes, reduce repetitive work, and scale faster. Need something custom? You can hire AI developers to build workflows tailored to your needs.
by Open Paws
🐾 Who’s it for Animal advocates & campaigners who want a weekly briefing on animal-related bills with clear, actionable steps—no manual research needed. ⏱ What it does Every Monday at 8 AM, this workflow: Fetches all House bills scheduled for the week. Cleans and downloads bill PDFs. Analyzes each bill with Gemini (relevance, urgency, stance, key action points). Filters irrelevant bills using built-in thresholds. Runs a research subworkflow for lobbying, sponsor, and coalition intel. Generates a ready-to-send HTML action email with scripts, contacts, and deadlines. ⚙️ How to set up Import this workflow into n8n. Download & import the Research Subworkflow and select it in the “Research” node. Add email credentials (SMTP, Gmail, etc.) in the Email node. (Optional) Adjust Gemini prompt or thresholds for your priorities. 🔑 Requirements Gemini API key** (via Google AI Studio or Vertex AI). Email provider credentials**. Research subworkflow** (linked above). 🎛 How to customize Edit the Gemini prompt** to focus on specific issues (e.g., wildlife, farmed animals). Change relevance/urgency thresholds** to include more or fewer bills. Tweak the HTML email design** or call-to-action style.
by Eduard
The workflow starts by listening for messages from Telegram users. The message is then processed, and based on its content, different actions are taken. If it's a regular chat message, the workflow generates a response using the OpenAI API and sends it back to the user. If it's a command to create an image, the workflow generates an image using the OpenAI API and sends the image to the user. If the command is unsupported, an error message is sent. Throughout the workflow, there are additional nodes for displaying notes and simulating typing actions.
by Aitor | 1Node
This n8n workflow leverages the power of AI and automation to streamline Pipedrive's CRM operations using natural language commands. It allows you to interact with your Deals, Leads, Persons, and Organizations simply by sending a message. How it Works The workflow initiates the process by sending the incoming message to an AI Agent. The AI Agent is powered by Google Gemini Chat Model and utilizing n8n's Simple Memory to maintain context, interprets the natural language command. Based on the interpreted command, the AI Agent instructs the MCP Client node to perform specific actions. The MCP Client then interacts with various nodes from Pipedrive designed to manage Deals, Leads, Persons, and Organizations within your CRM. These nodes can perform actions like creating, getting, updating, or searching for data in each category. Finally, a Gmail node sends a summary compiling the actions executed. Set Up Steps Set up your MCP Client:** Paste the MCP URL from your MCP Trigger node into the MCP Client node. Configure the AI Agent:** Connect your Google Gemini Chat Model credentials or your desired LLM. Configure Pipedrive:** The individual nodes for Deals, Leads, Persons, and Organizations will need to be connected to your specific CRM. Add your Oath credentials for Pipedrive by creating a private app. Configuring each specific node** (Create Deal, Get Lead, Update Person, Search Organization, etc.) to perform the desired action. Configure Send Summary:** Set up the Gmail node to send the summary email. Benefits Significant Time Saving:** Automates data entry, retrieval, and updates in your CRM, freeing up valuable time for sales teams and managers. Increased Efficiency:** Perform multiple CRM actions with a single natural language command. Simplified CRM Interaction:** Interact with your CRM using natural language instead of navigating complex interfaces. Reduced Errors:** Automation minimizes manual data entry errors. Suggested Enhancements Integrate More CRM Operations:** Add nodes for additional CRM functionalities like logging activities, managing tasks, or working with other modules and tools. Connect to Other Tools:** Integrate with other sales or marketing tools to create a more comprehensive workflow. Advanced AI Capabilities:** Explore fine-tuning the AI model for better understanding of specific industry jargon or complex requests. Should you add more nodes and tools, you might want to insert a specific prompt to the AI agent to give more context about the tools and actions to perform. User Management and Permissions:** Customize the private app's permissions on your Pipedrive account to limit access. Error Handling and Notifications:** Add more robust error handling and notification systems to be alerted if a workflow run fails. Need help? Feel free to contact us at 1 Node. Get instant access to a library of free resources we created.
by Iniyavan JC
This workflow automatically transforms your messy inbox into a neatly organized space while ensuring you never miss a critical message. It connects to your Gmail account and triggers for every new email. Using a powerful AI agent, the workflow first analyzes the email's content, sender, and metadata to classify it and apply the appropriate Gmail label (e.g., "Finance," "Marketing," "Dev Tools"). In parallel, a second AI agent determines if the email is urgent (like a security alert, OTP, or payment reminder) and generates a concise summary. If an email is marked as urgent, the workflow instantly sends a notification with the summary to your Telegram and WhatsApp, allowing you to take immediate action. This workflow is perfect for anyone looking to automate their email management, reduce inbox clutter, and stay on top of important, time-sensitive communications. Step-by-Step Explanation This workflow is designed to intelligently categorize incoming emails and notify you of urgent messages. Here is a breakdown of how it operates: Trigger: New Email Received Node: Gmail Trigger Action: The workflow initiates whenever a new email arrives in your connected Gmail inbox. Fetch Full Email Content Node: Get a message Action: It takes the ID of the new email from the trigger and fetches the complete message body, subject, sender, and headers. AI-Powered Categorization Node: AI Agent2 Action: This AI agent analyzes the full email content. Based on a detailed prompt that includes classification rules (e.g., if the sender is GitHub, classify as "Dev Tools"), it determines the most appropriate category and outputs the corresponding Label ID. Label Management and Application Node: Loop Over Items -> Create Label if Doesn't exist -> Get Existing Labels -> Filter -> Add label to thread Action: This sequence ensures the email gets the correct label. It first attempts to create the Gmail label suggested by the AI. The node is set to continue even if the label already exists. It then fetches a list of all your current Gmail labels. A Filter node finds the exact ID of the label that matches the AI's suggestion. Finally, it applies this label to the email thread, neatly organizing it in your inbox. Urgency Analysis and Summarization Node: AI Agent Action: Concurrently, a second AI agent analyzes the email to determine its urgency (classifying it as "urgent" or "normal") and generates a two-sentence summary. Parse AI Output Node: Code Action: A simple code node cleans up the JSON output from the urgency analysis to ensure it's correctly formatted for the next step. Conditional Notification Logic Node: If Action: This node checks the output from the previous step. It proceeds only if the email's urgency is marked as "urgent." Send Instant Alerts Nodes: Send a text message (Telegram) & Send message (WhatsApp) Action: If an email is deemed urgent, the workflow immediately sends an alert containing the email summary to your specified Telegram chat and WhatsApp number.
by Nabin Bhandari
This n8n template automatically creates and publishes high-quality LinkedIn posts using your brand brief, AI-generated ideas, and structured feedback loops — all powered by OpenAI. Perfect for solo creators, marketers, and startup teams building a consistent presence on LinkedIn. Who's it for Creators and freelancers building a personal brand Social media managers at startups or agencies Marketing teams that want to scale LinkedIn content Anyone tired of manually ideating, writing, and posting daily What it does Triggers daily at a chosen time (default: 9 PM) Fetches new content ideas from your idea-generation workflow Loads your brand brief and previous post feedback Uses OpenAI to craft a branded, engaging LinkedIn post Publishes directly to LinkedIn — no manual copy-paste needed How the AI logic works The AI agent follows a consistent, looped prompt strategy to ensure brand alignment: ++Prompt++ You are a helpful content creator for Nabin Bhandari's personal brand. Use the below steps to create content: Always start by getting the brand brief using the Get_Brand_Brief tool. Create a post on the requested topic that aligns with the brand brief. Get feedback and a score on the post using the Get_Content_Feedback tool. If the score is below 0.8, use the feedback to refine the post and repeat. The final output should be the approved post. Bonus: You can fine-tune OpenAI on your own brand tone and style by uploading at least 50 examples of approved posts. This will help ensure even more accurate, on-brand outputs. Requirements OpenAI API Key LinkedIn API credentials set in the LinkedIn node A Notion page (or any storage) with your Brand Brief clearly described Optional: Fine-tuned OpenAI model for higher fidelity How to customize Adjust the AI prompt for different tones (e.g., witty, professional) Swap the idea source (Airtable, Notion, Webhook, etc.) Add manual approval steps before publishing Replace the LinkedIn node with other social media APIs (Twitter/X, Threads) Tips Store a clear and specific brand brief in your Notion page — it directly shapes the AI's tone Add a database of previously approved posts for fine-tuning OpenAI Use additional feedback metrics (likes, engagement) for future iterations
by Alan Bajaña Granizo
🤖💬 Conversational AI Chatbot with Google Gemini for Text & Image | Telegram Overview 📋 Flexible and scalable chatbot template, designed mainly for Spanish conversations but capable of handling English and other languages. Integrates Google Gemini API for text and image generation, and Telegram for messaging. Supports multiple output types with potential for video, audio, and more. How It Works Modular Architecture & Extensibility ⚙️ Separate modules for data extraction, intent analysis, and adaptive response generation. Easily extendable with additional tools, databases, or APIs. Context & Memory Handling 🧠 Session-based volatile memory maintains conversation coherence. Allows updates or modifications to previous images based on new requests (e.g., add a hat to a dog 🐶). Intent Detection & Classification 🔍 Google Gemini accurately classifies user intent. Two-step validation ensures context-aware, precise replies. Content Generation & Output ✍️🖼️ Generates text and images based on intent and context. Designed for Telegram but adaptable to other platforms and media types (audio, video). Key Benefits ✅ Scalable, customizable, and production-ready architecture. Supports multiple content formats: text, images, audio, and video. Dynamic context and memory management for smooth, coherent conversations. Native integration with Google Gemini and Telegram ensures reliable and seamless operation. Suitable for diverse use cases and easy to extend with new tools or platforms. Use Cases 💼 Customer support virtual assistants. On-demand multimedia content creation. Marketing and user engagement bots. AI conversational prototypes and pilots. Requirements 👨💻 n8n instance (self-hosted or cloud) Google Gemini API credentials Telegram bot setup (optional but recommended) Active member of the Polytechnic Artificial Intelligence Club (CIAP) at ESPOL.
by Elodie Tasia
Automatically scrape LinkedIn posts with Apify, transform them into optimized tweets and threads using Claude AI, store them in Airtable for approval, and publish to X on a daily schedule. Who is this for This workflow is designed for content creators, social media managers, and personal brand builders who want to maximize their content reach by repurposing LinkedIn posts for X (Twitter) without manual rewriting. What it does This workflow automates the entire LinkedIn-to-X content repurposing pipeline: Weekly scraping: Uses Apify to scrape your recent LinkedIn posts based on configurable parameters stored in Airtable Carousel extraction: If a post contains a carousel/PDF, OpenAI extracts the slide content via OCR AI transformation: Claude (via OpenRouter) converts each LinkedIn post into two X-optimized variations: a standalone tweet and a thread (3-7 tweets) Content storage: Saves both the original posts and generated tweets to Airtable with a "Pending" status for review Scheduled publishing: Daily at 12:30, searches for ‘Approved’ tweets whose publication date has passed and posts them to X Thread handling: Properly chains thread tweets as replies to maintain the conversation structure Requirements Apify account (LinkedIn Profile Posts Scraper actor) Airtable account with configured base OpenAI API access (for carousel OCR) OpenRouter API access (for Claude) X/Twitter API access How to set up Create an Airtable base with three tables: Config, LK Posts, and X Tweets (see table configurations below) Configure the Config table with your LinkedIn profile URL, scraping limits, and tweet scheduling delay Configure the ‘TWEET NOW’ button in Airtable with the following URL formula: Connect your credentials: Apify, Airtable, OpenAI, OpenRouter, and X/Twitter Set the weekly and daily schedule triggers according to your timezone Activate the workflow Config Table | Field Name | Type | Description | |------------|------|-------------| | Name | String | Configuration parameter name | | Type | Single Select | Data type indicator: String, Integer | | String Value | String | Value when Type is "String" | | Integer Value | Number | Value when Type is "Integer" | Configuration parameters to create: profile_url — LinkedIn profile URL to scrape posted_limit — Time range for scraping (possible values: "any", "1h", "24h", "week", "3months", "6months", "year") max_posts — Maximum number of posts to scrape schedule_tweets_days_after_lk — Number of days after LinkedIn post date to schedule the tweet LK Posts Table | Field Name | Type | Description | |------------|------|-------------| | LK Post ID | String | LinkedIn post unique identifier | | Status | Single Select | Post processing status: Scrapped, Converted, Tweeted | | Date | DateTime | Original LinkedIn post publication date | | Content | Long Text | LinkedIn post text content | | Post URL | URL | Link to the original LinkedIn post | | Post Img URL | URL | URL of post image (if any) | | Post Doc URL | URL | URL of carousel/PDF document (if any) | | Carousel Content | Long Text | Extracted text content from carousel slides | X Tweets Table | Field Name | Type | Description | |------------|------|-------------| | Unique ID | Formula | Auto-generated unique identifier | | LK Post ID | String | Reference to the source LinkedIn post | | Status | Single Select | Tweet status: Pending, Approved, Rejected, Tweeted | | Variation | Single Select | Tweet format: Standalone, Thread | | Tweet Nb | Number | Tweet position in thread (0 for standalone, 1-7 for thread tweets) | | Content | Long Text | The tweet text content | | Publication Date | DateTime | Scheduled date/time to publish the tweet | | Post Now | Button | Triggers webhook to post immediately | How to customize AI prompt: Edit the "ConvertPostIntoTweets" node to adjust tone and style LLM model: Replace the OpenRouter node with OpenAI or any other LLM node in "ConvertPostIntoTweets" if you prefer a different model Posting delay: Change schedule_tweets_days_after_lk in the Config table Schedule: Modify "Weekly_OnSunday" and "Daily_AtNoon" triggers Scraping: Adjust max_posts and posted_limit in Config table
by Cheng Siong Chin
How It Works This workflow automates programme performance monitoring and governance oversight through intelligent AI-driven analysis and multi-tool orchestration. Designed for programme managers, portfolio management offices, and executive leadership teams, it solves the critical challenge of tracking programme health while coordinating interventions across escalation, exception handling, and briefing preparation workflows. The system operates on scheduled intervals, fetching programme data and processing it through dual AI agents for performance monitoring and governance assessment. It orchestrates parallel specialized tools for exception escalation, briefing preparation, and governance reporting, each with dedicated AI models and output parsers. The workflow intelligently routes findings based on severity classification, delivering critical alerts through multiple channels including email and Slack while generating formatted standard reports. By maintaining comprehensive documentation and coordinating multi-faceted governance responses, it ensures programme stakeholders receive timely, actionable intelligence while creating complete audit trails for portfolio reviews. Setup Steps Configure Schedule Trigger with programme review frequency Connect Workflow Configuration node with programme parameters Set up Fetch Programme Data node with project management API credentials Configure Programme Monitoring Agent with OpenAI API credentials Set up monitoring processing Connect Governance Agent with OpenAI API credentials for orchestration Configure parallel specialized tools with respective OpenAI models Set up tool-specific parsers Prerequisites OpenAI API credentials for multiple AI agents and specialized tools Use Cases PMOs monitoring multi-project portfolios, consulting firms tracking client engagement health Customization Adjust monitoring frequency for programme urgency levels Benefits Reduces programme review overhead by 75%, eliminates manual status compilation