Automatic reminders for follow-ups with AI and human in the loop Gmail
This n8n template extends the idea of follow-up reminders by having an AI agent suggest and book the next call or message to re-engage prospects which have been ignored.
What makes this template particularly interesting and actually usable is that it uses the Human-in-the-loop approach to wait for a user's approval before actually making the booking or otherwise not if the user declined.
A twist on a traditional idea where we can reduce the number of actionable tasks a human has to make by delegating them to AI.
How it works
- A scheduled trigger checks your google calendar for sales meetings which happened a few days ago.
- For each event, gmail search is used to figure out if a follow-up message has been sent or received from the other party since the meeting. If none, it might mean the user needs a reminder to follow-up.
- For leads applicable for follow-up, we first get an AI Agent to find available meeting slots in the calendar.
- These slots and reminder are sent to the user via send-and-approval mode of the gmail node. The user replies in natural language either picking a slot, suggesting an entirely new slot or declines the request.
- When accepted, another AI Agent books the meeting in the calendar with the proposed dates and lead.
- When declined, no action is taken.
How to use
- Update all calendar nodes (+subnodes) to point to the right calendar. If this is a shared-purpose calendar, you may need to either filter or create a new calendar.
- Update the gmail nodes to point to the right accounts.
Requirements
- Google OAuth for Email and Calendar
- OpenAI for LLM
Customising the template
- Not using Google? Swap out for Microsoft Outlook/Calendar or something else.
- Try swapping out or adding in additional send-for-approval methods such as telegram or whatsapp.
Automatic Reminders for Follow-ups with AI and Human-in-the-Loop (Gmail)
This n8n workflow automates the process of sending follow-up reminders, leveraging AI to draft personalized messages and incorporating a human-in-the-loop approval step via Gmail. It's designed to ensure important follow-ups are never missed and that communications are always relevant and approved before sending.
What it does
- Schedules Daily Check: The workflow is triggered daily to check for events.
- Fetches Google Calendar Events: Retrieves events from a specified Google Calendar.
- Filters for Relevant Events: Filters the fetched events based on specific criteria (e.g., event name, status) to identify those requiring a follow-up.
- Removes Duplicate Events: Ensures that each event is processed only once, preventing redundant follow-up attempts.
- Prepares Data for AI: Transforms and structures the event data into a format suitable for the AI agent.
- AI Drafts Follow-up Email: An AI agent (powered by OpenAI) generates a draft follow-up email based on the event details.
- Parses AI Output: Extracts the structured email content (subject, body, recipient) from the AI's response.
- Sends Human-in-the-Loop Email for Approval: Sends the AI-drafted email to a designated human for review and approval via Gmail. This email will likely contain options to approve or reject the follow-up.
- Processes Approval/Rejection (Implicit): While not explicitly shown in the provided JSON, a complete human-in-the-loop setup would typically involve another workflow or a subsequent node that listens for responses to the approval email (e.g., a webhook triggered by a click on an "Approve" button in the email) to then send the final follow-up or take other actions.
Prerequisites/Requirements
- n8n Instance: A running n8n instance.
- Google Calendar Account: Authenticated Google Calendar credentials in n8n to fetch events.
- Gmail Account: Authenticated Gmail credentials in n8n to send approval emails.
- OpenAI API Key: An API key for OpenAI to power the AI Agent and Chat Model.
Setup/Usage
- Import the workflow: Import the provided JSON into your n8n instance.
- Configure Credentials:
- Google Calendar: Set up your Google Calendar OAuth2 credentials.
- Gmail: Set up your Gmail OAuth2 credentials.
- OpenAI Chat Model: Configure your OpenAI API Key credentials.
- Customize Nodes:
- Schedule Trigger: Adjust the schedule frequency as needed (e.g., daily at a specific time).
- Google Calendar: Specify the calendar ID and any filters for events you want to monitor.
- Filter: Define the conditions for which events should trigger a follow-up (e.g., events ending in the last 24 hours, events with specific keywords in the title).
- Edit Fields (Set): Customize the data structure passed to the AI agent.
- AI Agent / OpenAI Chat Model: Refine the prompt to guide the AI in drafting effective follow-up emails.
- Structured Output Parser: Ensure the parser correctly extracts the subject, body, and recipient from the AI's output.
- Gmail: Configure the recipient for the human-in-the-loop approval email and the content of that approval request.
- Activate the Workflow: Once configured, activate the workflow to start sending automatic reminders.
Related Templates
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions
Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review
This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.
Synchronizing WooCommerce inventory and creating products with Google Gemini AI and BrowserAct
Synchronize WooCommerce Inventory & Create Products with Gemini AI & BrowserAct This sophisticated n8n template automates WooCommerce inventory management by scraping supplier data, updating existing products, and intelligently creating new ones with AI-formatted descriptions. This workflow is essential for e-commerce operators, dropshippers, and inventory managers who need to ensure their product pricing and stock levels are synchronized with multiple third-party suppliers, minimizing overselling and maximizing profit. --- Self-Hosted Only This Workflow uses a community contribution and is designed and tested for self-hosted n8n instances only. --- How it works The workflow is typically run by a Schedule Trigger (though a Manual Trigger is also shown) to check stock automatically. It reads a list of suppliers and their inventory page URLs from a central Google Sheet. The workflow loops through each supplier: A BrowserAct node scrapes the current stock and price data from the supplier's inventory page. A Code node parses this bulk data into individual product items. It then loops through each individual product found. The workflow checks WooCommerce to see if the product already exists based on its name. If the product exists: It proceeds to update the existing product's price and stock quantity. If the product DOES NOT exist: An If node checks if the missing product's category matches a predefined type (optional filtering). If it passes the filter, a second BrowserAct workflow scrapes detailed product attributes from a dedicated product page (e.g., DigiKey). An AI Agent (Gemini) transforms these attributes into a specific, styled HTML table for the product description. Finally, the product is created in WooCommerce with all scraped details and the AI-generated description. Error Handling: Multiple Slack nodes are configured to alert your team immediately if any scraping task fails or if the product update/creation process encounters an issue. Note: This workflow does not support image uploads for new products. To enable this functionality, you must modify both the n8n and BrowserAct workflows. --- Requirements BrowserAct API account for web scraping BrowserAct n8n Community Node -> (n8n Nodes BrowserAct) BrowserAct templates named “WooCommerce Inventory & Stock Synchronization” and “WooCommerce Product Data Reconciliation” Google Sheets credentials for the supplier list WooCommerce credentials for product management Google Gemini account for the AI Agent Slack credentials for error alerts --- Need Help? How to Find Your BrowseAct API Key & Workflow ID How to Connect n8n to Browseract How to Use & Customize BrowserAct Templates How to Use the BrowserAct N8N Community Node --- Workflow Guidance and Showcase STOP Overselling! Auto-Sync WooCommerce Inventory from ANY Supplier