by Yaron Been
CLO Agent with Legal Team Description Navigate legal complexities with an AI-powered Chief Legal Officer (CLO) agent orchestrating specialized legal team members for comprehensive legal operations and risk management. Overview This n8n workflow creates a comprehensive legal department using AI agents. The CLO agent analyzes legal requirements and delegates tasks to specialized agents for contract management, compliance, intellectual property, privacy law, corporate governance, and employment law. ⚠️ IMPORTANT DISCLAIMER: These AI agents provide legal information and templates, NOT legal advice. Always consult qualified legal professionals for binding legal matters. This workflow does not create attorney-client privilege or provide professional legal liability coverage. Building Blocks Approach This workflow provides foundational AI agents as building blocks for your legal operations. Feel free to: Customize agent prompts to match your industry and legal requirements Add relevant legal tools and integrations (contract management, compliance platforms) Modify specialist focus areas based on your specific legal needs Integrate with legal research databases and document management systems Adjust the CLO's strategic oversight to align with your risk tolerance Features Strategic CLO agent using OpenAI O3 for complex legal strategy and risk assessment Six specialized legal agents powered by GPT-4.1-mini for efficient execution Complete legal lifecycle coverage from contracts to compliance Automated document generation and review processes Risk assessment and mitigation strategies Intellectual property protection workflows Privacy and data protection compliance Team Structure CLO Agent**: Legal strategy and risk management coordination (O3 model) Contract Specialist**: Contract drafting, review, negotiation terms, agreement analysis Compliance Officer**: Regulatory compliance, legal requirements, audits, risk assessment IP Specialist**: Patents, trademarks, copyrights, trade secrets, IP protection Privacy Lawyer**: GDPR, CCPA, data privacy policies, data protection compliance Corporate Lawyer**: Corporate governance, M&A, securities law, business formation Employment Lawyer**: Employment contracts, workplace policies, labor law, HR legal issues How to Use Import the workflow into your n8n instance Configure OpenAI API credentials for all chat models Deploy the webhook for chat interactions Send legal requests via chat (e.g., "Draft a software licensing agreement") The CLO will analyze and delegate to appropriate specialists Receive comprehensive legal deliverables and risk assessments Use Cases Contract Lifecycle Management**: Draft → Review → Negotiate → Execute → Monitor Compliance Programs**: Policy creation → Risk assessment → Audit preparation IP Protection Strategy**: Patent applications → Trademark registration → Copyright notices Privacy Compliance**: GDPR assessments → Privacy policies → Data mapping exercises Corporate Governance**: Board resolutions → Shareholder agreements → Corporate bylaws Employment Law**: Policy manuals → Contract templates → Dispute resolution procedures Legal Document Automation**: Template creation → Review workflows → Version control Risk Assessment**: Legal risk evaluation → Mitigation strategies → Compliance monitoring Requirements n8n instance with LangChain nodes OpenAI API access (O3 for CLO, GPT-4.1-mini for specialists) Webhook capability for chat interactions Optional: Integration with legal management tools (contract management systems, legal research databases) Legal Scope & Limitations This AI workflow provides: ✅ Legal document templates and frameworks ✅ Compliance checklists and procedures ✅ Risk assessment methodologies ✅ Legal research summaries and insights This AI workflow does NOT provide: ❌ Legal advice or professional legal counsel ❌ Attorney-client privilege protection ❌ Court representation or litigation support ❌ Professional legal liability coverage ❌ Jurisdiction-specific legal opinions Cost Optimization O3 model used only for strategic CLO decisions and complex legal analysis GPT-4.1-mini provides 90% cost reduction for specialist document tasks Parallel processing enables simultaneous legal workstream execution Template library reduces redundant legal document generation Integration Options Connect to contract management systems (DocuSign, PandaDoc, ContractWorks) Integrate with legal research databases (Westlaw, LexisNexis) Link to compliance management platforms (GRC tools, audit systems) Export to document management systems (SharePoint, Box, Google Drive) Performance Metrics Contract cycle time reduction and accuracy Compliance audit success rates Legal risk identification and mitigation effectiveness Document review efficiency and consistency Cost per legal matter and resource utilization Contact & Resources Website**: nofluff.online YouTube**: @YaronBeen LinkedIn**: Yaron Been Tags #LegalTech #ContractAutomation #ComplianceTech #LegalAI #LegalOps #IntellectualProperty #PrivacyLaw #CorporateLaw #EmploymentLaw #LegalInnovation #n8n #OpenAI #MultiAgentSystem #LegalDocument #RiskManagement #LegalStrategy
by Hugo
n8n Graphical Input Template - AI Agent Interface A beautiful, ready-to-use HTML interface for n8n workflows that allows your users to interact with AI agents through a clean web UI. No frontend skills required! 🎯 Why Use This Template? No Frontend Skills Required**: Get a professional interface without writing React, Vue, or complex JavaScript Real-Time AI Responses**: Display AI responses directly in the interface with loading animations User-Friendly**: Your clients get a beautiful UI instead of dealing with APIs or command-line tools Plug & Play**: Just paste the code in an n8n Code node and connect your AI agents Fully Customizable**: Easy to modify colors, add more agents, or change the layout Dark/Light Mode**: Built-in theme toggle with localStorage persistence 🚀 When to Use This? Perfect for: AI Agent Interactions**: Let users chat with different specialized AI agents (Database, Web Search, RAG) Customer Support**: Route customer questions to appropriate AI assistants Data Collection**: Gather information from clients with instant AI-powered responses Customer Portals**: Create simple interfaces for customers to interact with your AI automations Internal Tools**: Build quick admin panels with AI assistance 📦 What's Included? ✅ Text Input Area: Large textarea for user messages ✅ Send Button: Main action button with smooth animations ✅ 4 Specialized Agent Buttons: Pre-configured for General, Database, Web, and RAG agents ✅ AI Response Display: Beautiful response area with agent badges and loading states ✅ Project Guide Modal: Built-in documentation for your users ✅ Theme Toggle: Dark/Light mode with localStorage persistence ✅ Responsive Design: Works perfectly on desktop, tablet, and mobile ✅ Font Awesome Icons: Beautiful icons throughout the interface ✅ Error Handling: Graceful error messages if something goes wrong 🛠️ How to Use Part 1: Display the Interface Create a 3-node workflow to show the UI: Webhook (GET) → Code Node → Respond to Webhook Configuration: Webhook Node (GET): Method: GET Path: /your-interface (e.g., /ai-chat) Authentication: Optional Code Node: Copy the entire content of main.js Paste it into the Code field Respond to Webhook: Respond With: First incoming item Response Data Source: Binary Binary Property: data Part 2: Process AI Requests Create a separate workflow to handle AI processing: Webhook (POST) → Switch → AI Agents → Code Node → Respond to Webhook Configuration: Webhook Node (POST): Method: POST Path: /webhook-endpoint Response Mode: "Respond to Webhook" Switch Node - Route by agent type: Rule 1: {{ $json.body.agent_type }} equals general Rule 2: {{ $json.body.agent_type }} equals database Rule 3: {{ $json.body.agent_type }} equals web Rule 4: {{ $json.body.agent_type }} equals rag AI Agent Nodes (4 nodes, one per agent type): Connect one AI Agent to each Switch output Configure with OpenAI, Anthropic, or local LLM Add tools, memory, system prompts as needed Code Node - Format the response: const webhookData = $('Webhook').first().json.body; const aiResponse = $input.first().json; return [{ json: { response: aiResponse.output || aiResponse.text || aiResponse.response, agent_type: webhookData.agent_type, user_message: webhookData.message, timestamp: new Date().toISOString() } }]; Respond to Webhook - Send back the formatted response 🔧 What to Update In main.js Line 847 - Update webhook URL to match your n8n path: const WEBHOOK_URL = '/webhook/webhook-endpoint'; Line 20 - Customize project name: const projectName = "AI Assistant Hub"; Lines 34-56 - Change colors (optional): :root { --primary: #6366f1; /* Main accent color */ --primary-hover: #4f46e5; /* Hover state */ --background: #ffffff; /* Background */ } 📊 How It Works User visits /your-interface ↓ Sees the chat interface ↓ Types message + clicks agent button ↓ POST to /webhook/webhook-endpoint { "message": "Find users in database", "agent_type": "database", "timestamp": "2025-10-19T..." } ↓ Switch routes to Database AI Agent ↓ AI Agent processes with tools/memory ↓ Code Node formats response ↓ Returns { "response": "Found 10 users..." } ↓ Interface displays response with badge + animation 🎨 Customization Guide Add More Agents Copy an agent card (lines ~700-730) and modify: Custom AI Agent Specialized in your custom task. Then add CSS for the new agent type: .agent-card.custom-agent::before { background: #f59e0b; } .agent-card.custom-agent:hover { border-color: #f59e0b; } .agent-icon.custom-icon { background: linear-gradient(135deg, #f59e0b, #d97706); } .response-agent-badge.custom-badge { background: rgba(245, 158, 11, 0.1); color: #f59e0b; } And update the Switch node to handle the new agent type! Modify Text Content Modal Guide**: Lines ~754-810 - Update help text Placeholder**: Line ~689 - Change textarea placeholder Subtitles**: Lines 677, 693 - Modify section descriptions Change Agent Descriptions Lines 705, 717, ~729 - Update the description text for each agent. 📱 Built-in Features Enter to Send**: Press Enter to send (Shift+Enter for new line) Escape to Close**: Press Esc to close modals Loading State**: Animated spinner while AI processes Agent Badges**: Color-coded badges show which agent responded Clear Button**: Easily clear responses to start fresh Theme Persistence**: Theme choice saved in browser Smooth Animations**: Professional transitions and hover effects Error Handling**: User-friendly error messages 💡 Example Workflow Ideas Customer Support Bot General Agent**: Answers common questions Database Agent**: Looks up order status, account info Web Agent**: Searches knowledge base articles RAG Agent**: Searches company documentation Data Analysis Tool General Agent**: Explains data concepts Database Agent**: Runs SQL queries on your data Web Agent**: Fetches external data sources RAG Agent**: Searches analysis reports Internal Admin Panel General Agent**: General assistance Database Agent**: User management queries Web Agent**: Check external integrations RAG Agent**: Search internal docs/wikis 🐛 Troubleshooting Response not displaying? Check that Code Node after AI Agent formats response with response field Verify webhook URL in main.js matches your n8n webhook path Check browser console for JavaScript errors AI Agent not responding? Ensure Switch node routes match agent types: general, database, web, rag Verify AI Agent nodes are properly configured with API keys Check n8n execution logs for errors Styling issues? Clear browser cache Check that Font Awesome CDN is loading Verify CSS variables are properly defined 📝 Technical Details Framework**: Pure HTML/CSS/JavaScript (no dependencies!) Icons**: Font Awesome 6.4.0 Browser Support**: All modern browsers (Chrome, Firefox, Safari, Edge) Mobile**: Fully responsive with touch support File Size**: 1050 lines (35KB minified) 🤝 Contributing & Support This template is designed to be simple and self-explanatory. The code structure: Lines 1-23: Configuration and setup Lines 24-640: CSS styles Lines 641-751: HTML structure Lines 752-1048: JavaScript functions Feel free to modify and adapt to your needs! 📝 License Free to use and modify for your n8n workflows. No attribution required.
by Max Mitcham
The Blog Agent Description An intelligent content automation system that manages the complete blog content lifecycle, from strategic planning to publish-ready articles. It combines AI-powered research, SEO-optimized writing, and strategic content management to execute a pillar/cluster content strategy that establishes thought leadership and drives organic search performance. Overview This automation workflow orchestrates a multi-agent system to continuously produce high-quality blog content for Trigify.io. It intelligently manages content strategy, conducts focused research, and generates complete, SEO-optimized blog posts that follow best practices for both traditional search engines and AI-powered search platforms. The system maintains state across multiple content projects, tracks completion status, and ensures consistent brand positioning throughout all content. 🔄 Workflow Process 1. Schedule Trigger Automated content pipeline activation Runs weekly on Mondays, Tuesdays, and Wednesdays Triggers the content lifecycle management process Ensures consistent content production cadence Can also be manually triggered via chat interface 2. Blog Status Manager Agent Strategic content lifecycle orchestration Queries Linear API to retrieve all previously written blog posts Cross-references completed blogs with Google Sheets strategy state Updates blog statuses from PLANNED to DRAFT_CREATED when content exists in Linear Identifies next priority blog topic from existing pillar/cluster strategy Selects topics marked as PLANNED for content creation When all current content is complete, analyzes SEO Report to identify new high-priority pillars Creates new pillar/cluster strategies based on SEO opportunities Updates Google Sheets with new content plans and status changes Passes selected blog topic to Researcher Agent with clear instructions 3. Google Sheets Integration Centralized content strategy management Strategy_State Sheet**: Tracks current pillar, cluster statuses, and progress SEO Report Sheet**: Contains comprehensive SEO analysis and keyword opportunities Maintains real-time state of content pipeline Stores pillar/cluster relationships and completion tracking Enables data-driven content prioritization 4. Researcher Agent Fast, focused content research Receives blog topic from Blog Status Manager Agent Conducts efficient research using FireCrawl MCP (maximum 2 calls) Gathers competitor information and market statistics Creates comprehensive blog briefs with structured outlines Defines content type (PILLAR or CLUSTER) and word count targets Specifies metadata requirements (title ≤60 chars, description ≤160 chars) Identifies image requirements with source URLs Documents key data points and sources for attribution Plans internal linking strategy Defines Trigify positioning angle and CTA Outputs structured brief for Blog Writer Agent 5. Blog Writer Agent Complete, publish-ready content generation Receives comprehensive blog brief from Researcher Agent Conducts additional research using FireCrawl MCP tools Writes complete blog posts following pillar/cluster structure: Pillar Posts: 2,000-3,000+ words, resource hub style Cluster Posts: 800-1,500 words, focused deep-dives Implements SEO optimization: Creates metadata within strict character limits Implements strategic internal linking Positions Trigify as the primary solution Uses target keywords naturally throughout content Ensures brand consistency: Avoids em dashes (uses parentheses, commas, colons) Provides real source URLs (never temporary screenshot links) Includes proper image instructions with public source URLs Maintains Trigify-first positioning Generates complete, publish-ready articles (not summaries) Formats content with proper markdown structure Creates Linear issue with full blog post content 6. FireCrawl MCP Integration Web scraping and research capabilities Enables web scraping for competitor research Gathers pricing information and product details Collects statistics and market data Provides source URLs for proper attribution Supports image source identification 7. Linear Integration Content management and tracking Queries existing Linear issues to track completed blogs Creates new Linear issues with complete blog post content Stores full articles (not summaries) for editorial review Maintains content library and prevents duplicate creation Enables team collaboration and content review 8. Multi-Model AI Architecture Optimized AI model selection Claude Sonnet 4.5**: Primary model for Blog Writer Agent (with thinking enabled) Claude Opus 4.5**: Research and analysis tasks GPT-5**: Secondary model option for content generation Anthropic Chat Models**: Strategic planning and research Models configured with appropriate token limits and reasoning budgets 🛠️ Technology Stack n8n**: Workflow orchestration and automation platform Claude Sonnet 4.5**: Primary AI model for content generation Claude Opus 4.5**: Research and strategic analysis GPT-5**: Alternative content generation model FireCrawl MCP**: Web scraping and research tool Google Sheets API**: Content strategy and state management Linear API**: Content tracking and issue management LangChain Agents**: Multi-agent orchestration framework ✨ Key Features Automated Content Lifecycle Management**: Tracks content from planning to completion Pillar/Cluster SEO Strategy**: Implements proven content architecture for search performance Multi-Agent AI System**: Specialized agents for research, writing, and management State Management**: Maintains content strategy state across multiple runs SEO Optimization**: Creates metadata, internal links, and keyword-optimized content Brand Consistency**: Ensures Trigify positioning and brand voice throughout Quality Control**: Prevents duplicate content and maintains high standards Research Efficiency**: Limits research calls to maintain speed and cost-effectiveness Source Attribution**: Properly documents sources and image requirements Publish-Ready Output**: Generates complete articles, not summaries or outlines 🎯 Ideal Use Cases Perfect for organizations seeking systematic, scalable content creation: B2B SaaS Companies** building thought leadership through content Marketing Teams** executing pillar/cluster SEO strategies Content Teams** needing consistent, high-quality blog production SEO-Focused Organizations** optimizing for search performance Companies** requiring brand-consistent content at scale Teams** managing multiple content projects simultaneously Organizations** wanting to automate content research and writing Businesses** tracking content performance and strategy execution 📈 Business Impact Transform content creation from manual process to automated system: Consistent Content Production**: Weekly automated content creation SEO Performance**: Pillar/cluster architecture improves search rankings Time Efficiency**: Automates research, writing, and content management Brand Consistency**: Ensures Trigify positioning across all content Scalability**: Manages multiple content projects simultaneously Quality Assurance**: Prevents duplicates and maintains content standards Strategic Alignment**: Data-driven content prioritization from SEO reports Team Collaboration**: Integrates with Linear for editorial workflow This workflow ensures every blog post is strategically planned, thoroughly researched, SEO-optimized, and ready for publication, creating a sustainable system for thought leadership content that drives organic growth.
by Hyrum Hurst
Pet Grooming Appointment & Client Engagement Automation Automate reminders, follow-ups, and client engagement for your pet grooming business with this simple n8n workflow by Hyrum Hurst, AI Automation Engineer at QuarterSmart. Sends personalized SMS and email reminders with grooming prep tips Tracks client confirmations and responses in Google Sheets Notifies groomers of daily schedules via Slack Sends post-appointment thank-you or reschedule messages Compiles weekly engagement reports automatically Perfect for pet groomers looking to reduce no-shows, increase client satisfaction, and save time. Combines AI, Slack, Google Sheets, SMS, and Email for end-to-end automation. Author: Hyrum Hurst, AI Automation Engineer Company: QuarterSmart Contact: hyrum@quartersmart.com Keywords: pet grooming automation, AI reminders, appointment automation, client engagement
by Rahul Joshi
Description Turn images into viral-ready Twitter/X captions in seconds! This n8n automation watches a Google Drive folder for new images, uploads them to Cloudinary, and uses Azure OpenAI (GPT-4o-mini) to generate engaging, platform-optimized captions. Each caption package includes: Punchy headlines and primary tweets (≤280 characters) Mini tweet threads with insights & actions Hashtags, @mentions & posting time recommendations HTML email delivery for quick publishing Perfect for social media managers, creators, and marketing teams who want to speed up content creation while keeping posts high-quality and on-brand. Step-by-Step Workflow: 📂 Google Drive Trigger (Google Drive Trigger Node) Watches a specific folder for new or updated image files. Instantly starts the workflow on detection. 📥 File Download (Google Drive Node) Downloads the new file from Google Drive for processing. ☁️ Cloud Upload (HTTP Request Node → Cloudinary) Uploads the image to Cloudinary. Returns a publicly accessible URL for AI analysis. 🧠 AI Caption Generation (LangChain + Azure OpenAI GPT-4o-mini) Analyzes the image and produces: Short headline & primary tweet A 3-part tweet thread (Hook → Insight → Action) Alt text for accessibility Suggested first-reply content 10–12 optimized hashtags Recommended @mentions Ideal posting times (IST) 📧 Email Delivery (SMTP Node) Sends a professionally formatted HTML email with: The analyzed image All generated Twitter/X content blocks Key visual summary Feature & user targeting notes Perfect For: Social Media Managers – Automate caption creation for client accounts. Content Creators – Turn visuals into instantly postable Twitter/X threads. Marketing Teams – Maintain consistency & posting frequency without manual work. Built With: Google Drive API – File monitoring & download Cloudinary API – Image hosting & URL generation Azure OpenAI GPT-4o-mini – AI caption creation & formatting n8n LangChain Integration – Structured AI prompt execution SMTP Email – Automated content delivery Key Benefits: ✅ Save hours on manual caption writing. 📈 Boost engagement with AI-optimized hashtags & post timing. 🧠 Get both short posts & full threads ready to publish. ⚡ Fully automated — runs whenever you upload a file.
by Rahul Joshi
Description: Keep your internal documentation always up to date with this n8n automation template. The workflow listens for GitHub pull request merges to the main branch, detects any changes in documentation files (README, /docs, or OpenAPI specs), and automatically summarizes and syncs updates to Confluence (or internal knowledge systems). It also alerts your team instantly via Slack with a summary of what changed. Ideal for DevOps, technical writers, and engineering teams who want to eliminate manual documentation updates after code merges. ✅ What This Template Does (Step-by-Step) ⚡ Trigger on GitHub Pull Requests: Automatically activates when a PR is merged into the main branch. 🧩 Validate Merge Conditions: Ensures the PR is both merged and targeted at the main branch before continuing. 📥 Fetch Updated Files (README, Docs, OpenAPI): Retrieves key documentation files directly from the GitHub repository for analysis. 🔍 Detect Documentation Changes: Scans payloads for any doc-related keywords or file changes (README, /docs, or OpenAPI). 🤖 AI-Powered Summarization: Uses Azure OpenAI GPT-4o Mini to create a concise 2-3 sentence summary of the changes, perfect for documentation notes or changelogs. 📤 Post Summary to Slack: Shares the AI-generated summary in your #documentation-updates or #general-information channel for instant visibility. 📢 Team Notifications: Sends a detailed Slack message with PR title, author, repo, and branch for full transparency. 🔁 Continuous Sync: Every merged documentation update is detected, summarized, and communicated—without human effort. 🧠 Key Features 🔍 Smart detection for README, Docs, and OpenAPI changes 🤖 AI summarization via Azure OpenAI GPT-4o Mini 📢 Automatic Slack alerts with PR context ⚙️ GitHub OAuth2 integration for secure repo access 📋 Prevents irrelevant PRs from triggering updates 💼 Use Cases 📚 Keep internal Confluence or Notion documentation in sync with code changes 🧾 Auto-generate release notes or changelog summaries 👩💻 Keep dev and QA teams informed of key doc updates 🧠 Reduce time spent on manual documentation tracking 📦 Required Integrations GitHub (for PR event and file fetch) Azure OpenAI (for doc change summarization) Slack (for instant team notifications) 🎯 Why Use This Template? ✅ Ensures your docs stay current with every merge ✅ Reduces manual copy-pasting and review effort ✅ Keeps engineering, product, and docs teams aligned ✅ Fully extensible—add Confluence, Notion, or changelog publishing in seconds
by PDF Vector
Intelligent Document Processing & Data Extraction Extract structured data from unstructured documents like invoices, contracts, reports, and forms. Uses AI to identify and extract key information automatically. Pipeline Features: Process multiple document types (PDFs, Word docs) AI-powered field extraction Custom extraction templates Data validation and cleaning Export to databases or spreadsheets Workflow Steps: Document Input: Various sources supported Parse Document: Convert to structured text Extract Fields: AI identifies key data points Validate Data: Check extracted values Transform: Format for destination system Store/Export: Save to database or file Use Cases: Invoice processing automation Contract data extraction Form digitization Report mining
by Miha
This workflow helps template creators automatically generate an overview sticky note for any n8n template. Paste your workflow JSON into the Set node, run the workflow, and the AI returns a ready-to-use sticky note node JSON with a clear title, “How it works” steps and a setup checklist - all formatted in Markdown and sized correctly for the canvas.
by Matan Grady
Remediate security vulnerabilities with Port This workflow automatically enriches security vulnerability alerts with organizational context from Port and routes them to the appropriate teams or AI agents for remediation. How it works n8n receives a new vulnerability from your security scanner (e.g., Snyk) via webhook The workflow calls Port's context lake to enrich the alert with service, ownership, environment, and dependency data. With this context, the workflow either sends targeted Slack notifications to the owning team or triggers an AI remediation flow to propose and apply a fix. Setup steps [ ] Sign up with a free account on port.io. [ ] Create the required AI agent in Port. [ ] Configure credentials in n8n for Port, Slack, and OpenAI/Claude. [ ] Trigger the webhook with a sample vulnerability to verify context retrieval, Slack notifications, and AI remediation.",
by Robert Breen
This workflow acts as a System Prompt Optimizer Agent. You send it a draft prompt or goal, and it returns: A rewritten optimized system prompt that is clear, specific, and actionable. A recommendation for the best OpenAI model to use based on reasoning needs, complexity, and latency/cost tradeoffs. The workflow uses memory for context, so you can iteratively refine prompts. ⚙️ Setup Instructions 1️⃣ Set Up OpenAI Connection Go to OpenAI Platform Navigate to OpenAI Billing Add funds to your billing account Copy your API key into the OpenAI credentials in n8n 📝 Example Question
by khaled
What Problem Does It Solve? Generic, automated retention messages often feel like spam and fail to engage returning customers. Manually tracking which customers ordered exactly 10 days ago to send them tailored offers is extremely time-consuming. Sending bulk promotional WhatsApp messages too quickly can result in phone number bans. This workflow solves these issues by: Automatically fetching customers from Odoo whose invoices are exactly 10 days old. Using an AI Agent (OpenAI) to generate a highly personalized, warm Egyptian Arabic message for each customer. Offering a targeted 10% extra discount to encourage repeat purchases via social media platforms. Implementing a 1-minute "Wait" mechanism between messages to protect your WhatsApp account from being flagged. How to Configure It Odoo Setup Connect your Odoo credentials in n8n. The workflow fetches invoices starting from April 2026. Adjust the date filter in the "Fetch 10-Day Old Invoices" node if needed. OpenAI Setup Add your OpenAI API key to the "Generate AI Message" node. You can tweak the system prompt to match your specific brand voice or adjust the discount offer. WhatsApp API Setup This workflow uses the Evolution API. Update the URL and "apikey" in the "Send WhatsApp Discount" node with your specific instance details. How It Works Every day at 10:01 AM, the schedule node triggers the workflow automatically. It queries Odoo for all posted invoices exactly 10 days old and retrieves the corresponding customer contact details (Name and Phone). It processes the customers one by one through a loop (Split In Batches). For each customer, OpenAI generates a unique, friendly colloquial Arabic message calling them by their first name and offering a 10% discount. The message explicitly directs the customer to claim the offer via social media messages, completely avoiding formal "terms & conditions" jargon. The workflow sends the AI-generated text via WhatsApp and then pauses for 1 minute before processing the next customer. Customization Ideas Change the AI prompt to offer different discounts based on the total amount the customer spent in their last order. Add a condition to skip customers who have already made a new purchase within the last 10 days. Switch the AI model to Claude or Gemini depending on your preference for Arabic copywriting. For more info Contact Me
by Ertay Kaya
Slack Workflow Router: AI-Powered Workflow Selection Problem Statement Slack only allows one webhook per Slack app, and n8n generates a unique webhook for each workflow. This limitation means you typically need to create multiple Slack apps to trigger multiple n8n workflows from Slack. This workflow solves that problem by acting as a gateway for a single Slack app, enabling it to trigger multiple n8n workflows. How It Works When a message is received from Slack, an AI agent analyzes the message and selects the most suitable workflow to execute. The available workflows are stored in a data table, including their ID, name, and description, which the agent uses to make its decision. This approach allows you to manage and trigger multiple workflows from a single Slack app, making your Slack-to-n8n integration much more scalable and maintainable. Key Features Trigger multiple n8n workflows from a single Slack app mention. AI-powered workflow selection based on user message and workflow descriptions. Centralized management of available workflows via a data table. Scalable and easy to maintain—no need to create multiple Slack apps. Setup Instructions Create a data table in your n8n project with these columns: workflow_id, workflow_name, and workflow_description. Add your workflows to the table. Connect your Slack and OpenAI accounts. Deploy the workflow and mention your Slack app to trigger automations. This template is ideal for teams who want to centralize and scale their Slack automation without creating multiple Slack apps.