AutomationMart
Home/Browse/Route Chatwoot customer chats to AI and live agents with Groq and Gemini
n8n

Route Chatwoot customer chats to AI and live agents with Groq and Gemini

n8nn8n17 modulesv1.0
HubSpotGmailWhatsAppOpenAITelegramGoogle CalendarGemini

Quick overview This workflow automates customer chat with Chatwoot & n8n AI agent that handles incoming chats, qualifies leads, answers FAQs from Pinecone knowledge base, and escalates to a live human agent when one is online. Works with any Chatwoot inbox: web widget, WhatsApp, Telegram, and more. How it works 1. Receives a POST webhook from Chatwoot when a message is created in a conversation. 2. Extracts message and sender fields into a clean structure, then ignores outgoing messages t

At a glance

Route Chatwoot customer chats to AI and live agents with Groq and Gemini is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects HubSpot, Gmail, WhatsApp, OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
HubSpot, Gmail, WhatsApp, OpenAI, Telegram, Google Calendar
Modules
17
Price
Free
Version
v1.0
Route Chatwoot customer chats to AI and live agents with Groq and Gemini workflow diagram

About this workflow

Quick overview This workflow automates customer chat with Chatwoot & n8n AI agent that handles incoming chats, qualifies leads, answers FAQs from Pinecone knowledge base, and escalates to a live human agent when one is online. Works with any Chatwoot inbox: web widget, WhatsApp, Telegram, and more. How it works 1. Receives a POST webhook from Chatwoot when a message is created in a conversation. 2. Extracts message and sender fields into a clean structure, then ignores outgoing messages to prevent the bot from replying to its own messages in an infinite loop. 3. Stops processing if the Chatwoot conversation already has a human assignee (or is escalated to a human during chat) to avoid interrupting live support. 4. Fetches available Chatwoot agents, selects a random online agent (if any), and passes the availability status to the AI assistant. 5. Generates a response using Groq (chat model) with Postgres (Superbase) chat history, optionally retrieving answers from a Pinecone knowledge base using Google Gemini embeddings and chat completions. 6. When escalation is required, assigns the selected Chatwoot agent to the conversation or sends an internal summary email via Gmail. 7. Splits the AI output into short chunks and posts them back to the Chatwoot conversation for human-like short replies Setup 1. Chatwoot Agent Bot: In Chatwoot SuperAdmin Console → Agent Bots, create a new bot, and paste the n8n Webhook URL as Outgoing URL. Assign the bot to your inbox(es) in Bot Configuration settings of those inboxes. 2. Credentials: Add credentials for Groq API, PostgreSQL (Superbase), Pinecone API, Google AI Studio (Gemini embeddings/chat), and Gmail OAuth2. 3. Chatwoot config: Update the Chatwoot base URL and API access token in Chatwoot HTTP requests and the reply-sending code, and set your internal notification email address in the Gmail step. 4. Knowledge base: Create and populate a Pinecone index (and namespace) for your FAQs/knowledge documents, then update the index/namespace values in the Pinecone vector store configuration. Requirements - Chatwoot instance (self-hosted or Chatwoot Cloud) with at least one active inbox. - Groq API key, or feel free to use any other AI Provider - PostgreSQL database for conversation memory (Supabase free tier works well) - Pinecone account with an index populated with your FAQ documents - Google AI Studio API key for Gemini embeddings - Gmail account with OAuth2 configured for internal lead notifications Customization - Swap the LLM: Replace the Groq Chat Model node with any LangChain-compatible model — OpenAI, Anthropic Claude, Google Gemini, or a local Ollama model - Swap the memory store: Replace Postgres Chat Memory with Redis or n8n's In-Memory store for lighter setups - Swap the vector store: Replace Pinecone with Supabase Vector, or if you prefer a different provider - Add or edit tools to the agent: Extend with a Google Calendar node for appointment booking, a HubSpot/CRM node for automatic lead creation, or any HTTP Request tool for custom APIs - Adjust reply chunking: Change the 300ms delay in the Send Reply node or the split pattern to control message pacing Additional info This template is production-tested and was built to solve a real problem: most Chatbot AI integrations are basic single-node setups that break when including multiple sources like Whatsapp, Live Chat, Telegram etc. for a seamless experience, and have long answers that don't feel human-like. This workflow handles these — through Chatwoot as a medium to connect multiple inboxes and using n8n to power those with Back-end automation, this workflow can help users handle incoming chats across multiple platforms. Plus, it handles human handovers, and only replies when there's no human assigned to the chat.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Add a Status Hero status activity when a new HubSpot CRM ticket is created

Every time a new HubSpot CRM ticket is created, Make will automatically add a Status Hero status activity.

Free

[AI Tools 101] AI Summarisation with OpenAI and Google Sheets

Learn how to automate content summarisation using OpenAI's GPT models. This template is part of the [AI Tools 101 YouTube course series](https://www.youtube.com/watch?v=htApI1WhnpE&list=PLrED3I754LhmTtlldfGklaEMh-ZaCa3EK&index=4&ab_channel=Make), providing step-by-step guidance to streamline your workflow with AI-powered summarisation. Follow along to effortlessly generate concise summaries from your data.

Free

Manage patient appointments and care follow-ups with OpenAI, Gmail and Twilio

How It Works This workflow automates patient care coordination in healthcare settings by intelligently processing patient information and scheduling follow-up communications through multiple channels. Designed for healthcare administrators, clinic coordinators, and medical practice managers, it solves the critical problem of manual patient follow-up management and inconsistent communication across care teams. The system receives patient intake data, uses AI-powered agents to analyze care require

Free

Generate PDF business proposals with Google Gemini and PDF Generator API

AI-Powered Automated Proposal & Lead Management System This advanced n8n workflow automates the transition from "Raw Lead" to "Sent Proposal." By integrating Email Verification, Large Language Models (LLMs), and Document Automation, it eliminates manual data entry and ensures that every proposal sent is personalized, professional, and delivered to a verified address. 🛠️ How It Works 1. Data Intake & Validation The workflow is triggered via a Webhook. Before any processing occurs, the data passes

Free

Create Status Hero Activities from new Emails

Every time a new email is received in Gmail, Make will automatically check for emails containing a specific phrase in the subject. Then it will add a status activity to members on Status Hero.

Free

Create a Google Analytics data report with AI and sent it to e-mail and Telegram

What this workflow does This workflow retrieves Google Analytics data from the last 7 days and the same period in the previous year. The data is then prepared by AI as a table, analyzed and provided with a small summary. The summary is then sent by email to a desired address and, shortened and summarized again, sent to a Telegram account. This workflow has the following sequence: 1. time trigger (e.g. every Monday at 7 a.m.) 2. retrieval of Google Analytics data from the last 7 days 3. assignmen

Free

Create daily Israeli economic newsletter using RSS and GPT-4o

Daily Economic News Brief for Israel (Hebrew, RTL, GPT-4o) Overview ### Stay ahead of the curve with this AI-powered workflow that delivers a daily economic summary tailored for professionals tracking the Israeli economy. At 8:00 PM Israel Time, this workflow: - Retrieves the latest articles from Calcalist and Mako via RSS - Filters duplicates and irrelevant stories - Uses OpenAI’s GPT-4o to identify the 5 most important stories of the day - Summarizes each article in concise, readable Hebrew -

Free

Automate daily Hindu festival posts on X with Google Gemini and GPT-4o Mini 🤖

Automate Daily Hindu Festival Posts on X (Twitter) with AI 🐦 This workflow automates the entire process of creating and publishing culturally rich social media content about Hindu festivals. It starts by building a comprehensive festival calendar for the year in a Google Sheet, then runs daily to post engaging, bilingual updates on X (formerly Twitter). 🗓️ The workflow uses a sophisticated dual-AI system: Google Gemini acts as a content generator creating multiple post options ✍️, while OpenAI's

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free