Back to Templates

Create a WhatsApp AI Assistant with LLaMA 4 and Google Search Insights

Created by

Created by: Manav Desai || manavdesai17

Manav Desai

Last update

Last update 2 days ago

Share


WhatsApp AI Assistant with LLaMA 4 and Google Search

This workflow creates a real-time AI chatbot on WhatsApp powered by Groq’s LLaMA 4 model with Google Search (SerpAPI) for fresh insights.


Who’s it for

  • Users who want an AI assistant directly on WhatsApp.
  • Businesses needing real-time FAQ and support automation.
  • Anyone wanting a chatbot that remembers past messages and uses live search.

What it does

  • Connects WhatsApp to Groq’s LLaMA 4 model for AI responses.
  • Uses SerpAPI to fetch real-time search results from Google.
  • Maintains context of the last 20 messages for continuous conversations.

How it works

  1. A user sends a message to your WhatsApp number.
  2. The workflow checks if it’s text (images can be added later).
  3. Text is sent to the AI Agent, which uses Groq’s LLaMA 4 for responses.
  4. If real-time info is needed, SerpAPI fetches results from Google.
  5. The reply is composed and sent back to the user via WhatsApp.

Requirements

  • n8n (cloud or self-hosted)
  • WhatsApp Business API or Twilio sandbox
  • Groq API key
  • SerpAPI key

How to set up

  1. Import this workflow into your n8n instance.
  2. Configure Groq, SerpAPI, and WhatsApp credentials.
  3. Link your WhatsApp webhook to trigger this workflow.
  4. Activate and test by sending a WhatsApp message.

How to customize

  • Change AI personality in the AI Agent node’s systemMessage.
  • Add extra features like summarization, translation, or voice handling.
  • Integrate logging or analytics for chatbot usage tracking.