Get Started
Screenshot of n8n workflow
PRO TEMPLATE
Automate WhatsApp AI Support with Gemini
3
Views
0
Downloads
35
Nodes
Download Template
Pro required
Preview Template
Utility Rating
8 / 10
Business Function
Customer Support
Automation Orchestrator
n8n
Integrations
Wikipedia
WhatsApp Business Platform
Google Gemini
Trigger Type
Approx setup time ≈ 45 min
Need help setting up this template?
Ask in our Futurise Pro community
About
Community
Courses
Events
Members
Templates

How to Automate WhatsApp AI Support with Gemini?

Leon Petrou
PRO TEMPLATE
Automate WhatsApp AI Support with Gemini
3
Views
0
Downloads
35
Nodes
Download Template
Pro required
Preview Template
Utility Rating
8 / 10
Business Function
Customer Support
Automation Orchestrator
n8n
Integrations
Wikipedia
WhatsApp Business Platform
Google Gemini
Trigger Type
Approximate setup time ≈ 45 minutes
Need help setting up this template?
Ask in our Futurise Pro community

Description

Turn WhatsApp into a smart support inbox that understands text, audio, images, and video. Messages are read, prepared with AI, and answered in the same chat. Teams can give fast help without switching tools or copying files.

Incoming messages are captured by a WhatsApp event trigger. The flow splits the message parts and routes each type with a switch. Media files are fetched from WhatsApp using secure links and downloaded in n8n. Audio is transcribed with a Gemini model. Video is described with a Gemini video node. Images are analyzed with an image explainer. Text is summarized for quick context. All paths send a clean, unified message to an AI agent that keeps chat history and can look up facts on Wikipedia. The reply is sent back to the user through WhatsApp.

You will need access to the WhatsApp Business Platform and a Google Gemini API key. A public URL is required so WhatsApp can reach your webhook. Expect faster replies, fewer handoffs, and steady quality across many chats. Use it for customer support, booking help, or quick document and media checks during a conversation.

Copy link

Tools Required

What this workflow does?

  • WhatsApp event trigger collects incoming messages and starts the flow.
  • Split Out and Switch nodes route text, audio, image, and video to the right path with a fallback to text.
  • WhatsApp media URL fetch and authenticated HTTP download pull audio, video, and image files securely.
  • Google Gemini Audio node transcribes voice notes into clean text.
  • Google Gemini Video node generates short descriptions and key details from video clips.
  • Image Explainer interprets images and returns plain language context.
  • Text Summarizer condenses long text messages for quick understanding.
  • Set node unifies outputs and adds message type and content for the AI agent.
  • Window Buffer Memory keeps conversation history per WhatsApp user for better context.
  • AI Agent uses a Wikipedia tool for factual lookups and sends the final reply through WhatsApp.

What are the benefits?

  • Reduce manual triage from 10 minutes to 30 seconds by auto routing each message type.
  • Automate 60 to 80 percent of common WhatsApp questions with the AI agent.
  • Handle up to 5 times more concurrent chats with the same team size.
  • Eliminate 90 percent of media download and copy paste work with direct API fetch.
  • Improve reply consistency and cut repeated questions by keeping chat memory.

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with WhatsApp Business Platform, Google Gemini and Wikipedia. See the Tools Required section above for links to create accounts with these services.
  3. Open the WhatsApp Trigger node. In the credential field, click Create new credential and follow the on screen steps to connect your WhatsApp Business account. Make sure your n8n instance has a public URL so WhatsApp can reach it.
  4. In your Meta for Developers dashboard, add the n8n webhook URL from the WhatsApp Trigger. Subscribe to message events and verify the callback. Send a test message to confirm that n8n receives it.
  5. Double click the Get Audio URL, Get Video URL, Get Image URL, Download Audio, Download Video, Download Image, and Respond to User nodes. For each, choose the same WhatsApp credential you created so media fetch and replies are authorized.
  6. Set up Google Gemini. In n8n, open any Google Gemini node, choose Create new credential, and paste your API key from the Google Gemini API page. Reuse this credential for all Gemini nodes.
  7. No key is needed for Wikipedia. Ensure the Wikipedia tool node is connected to the AI Agent as a tool input.
  8. Check message routing. Open the Redirect Message Types node and review the rules for audio, video, image, and text. Keep the fallback output set to Text Message.
  9. Validate media processing. Send an audio note, an image, and a short video to your WhatsApp number. In n8n, watch the Download and Gemini nodes and confirm text outputs are produced.
  10. Test text handling. Send a long text message. Confirm the Text Summarizer creates a short summary and that the Set node builds a clean payload for the agent.
  11. Open the AI Agent node. Review the system prompt, tool list, and memory settings. The Window Buffer Memory node uses the sender number to keep context between messages.
  12. Open the Format Response and Format Response1 nodes if present and adjust formatting of AI outputs to suit your tone and style.
  13. Activate the workflow. Send mixed content messages from your phone. Confirm that replies return to WhatsApp quickly and match your expected format.
  14. Troubleshoot: If media downloads fail with 401 or 403, recheck WhatsApp credentials and app permissions. If the trigger does not fire, verify the webhook URL, public reachability, and event subscriptions.

Need help or want to customize this?

Similar Templates

n8n
Customer Support
Automate WhatsApp Chat Replies
Give customers a fast reply on WhatsApp while also confirming your webhook setup. The flow returns the Meta verification code and sends an instant echo message back to the sender. It fits support teams and small businesses that want quick first responses and a simple test harness. Two webhook nodes share the same URL. A GET request hits Verify and the Respond to Webhook node sends back the hub challenge text. A POST request hits Respond and carries message updates from Meta. An If node checks if the payload includes a user message. When true, the WhatsApp node sends a custom text that repeats what the user wrote. Status updates are ignored so only real messages trigger replies. Set the WhatsApp credential with your access token and phone number ID, then point both webhooks to the same path with the right methods. Expect replies in seconds and fewer missed chats, plus a clear way to validate parsing before you build more logic. Use it for after hours auto replies, internal QA, or a safe staging bot.
12 views
view
n8n
Customer Support
Automate WhatsApp Website Support with Live Site Search
Turn WhatsApp into a smart website assistant that answers customer questions in real time. It reads your site, finds the right page, and sends a clear reply back in chat. Great for support teams that want faster answers without extra staff. Incoming messages start in WhatsApp and are passed to an AI agent that uses the OpenAI chat model. The agent has two tools. One tool lists up to 100 internal links from your site, and the other fetches the full text of any page. It uses this fresh content to build the answer. A Postgres memory stores chat history by phone number so the agent keeps context across messages. A code step checks the 24 hour rule. If the window is closed, a pre approved template message reopens the chat. A clean up step removes markdown so the final message is easy to read. Then the reply is sent back to WhatsApp. Setup needs WhatsApp Business access, an OpenAI API key, a Postgres database, and an auth token for the crawl tools. Expect shorter first response times and fewer tickets, since common questions are handled by the bot. Use it for product FAQs, policies, pricing, or store info pulled straight from your site, all without retraining.
6 views
view
n8n
Customer Support
Automate WhatsApp and Sheets Inbox Replies
Turn Google Form signups and WhatsApp chats into a simple message desk that runs from Google Sheets. New form entries get a WhatsApp template message if the person gave consent. Incoming WhatsApp messages are logged in a sheet so your team can type a reply and send it out on a timer. Here is how it works. A Google Sheets trigger watches for new form rows, checks if the person agreed to WhatsApp updates, and sends a template message with their details. A WhatsApp webhook receives user messages, filters out non message events, and writes the message text, name, and phone into a Google Sheet with Status set to New. On a set schedule, the sheet is scanned for rows marked Ready. Each Ready row is processed in a batch loop, a WhatsApp reply is sent using the ReplyText column, the status changes to Replied, and a short wait spaces out sends. You will need a WhatsApp Business phone number, a template approved in Meta, and Google Sheets access. Results include faster replies, a clean record of all chats, and lower copy and paste work. This setup fits teams that want to manage WhatsApp conversations without buying a full help desk tool and prefer Sheets as the queue.
4 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.