Skip to content

AI-powered WhatsApp Assistant built with n8n, OpenAI, and WhatsApp Cloud API. Supports text, voice, and images with multimodal responses, memory, and tools like web search & knowledge base.

License

Notifications You must be signed in to change notification settings

mnk-nasir/whatsapp-ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

whatsapp-ai-agent

AI-powered WhatsApp Assistant built with n8n, OpenAI, and WhatsApp Cloud API. Supports text, voice, and images with multimodal responses, memory, and tools like web search & knowledge base. WhatsApp AI Assistant πŸ€–πŸ’¬

An AI-powered WhatsApp Assistant built with n8n . This project integrates OpenAI, WhatsApp Cloud API, and Pinecone to create a multimodal conversational bot called Sam, capable of handling:

🎀 Voice messages β†’ Transcribed & answered in text or voice

πŸ–ΌοΈ Images β†’ Analyzed and described with AI

πŸ’¬ Text messages β†’ Smart AI responses with context

🧠 Memory β†’ 20-message context per user

πŸ”Ž Tools β†’ Web search, calculator, knowledge base

✨ Features

βœ… Supports Text, Image, and Audio inputs

βœ… Replies in Text or Audio (depending on how the user interacts)

βœ… Uses OpenAI GPT-4o-mini for conversations

βœ… Vision AI to analyze and describe images

βœ… Whisper (ASR) to transcribe voice messages

βœ… Text-to-Speech to reply with natural voice

βœ… Pinecone Knowledge Base for custom context

βœ… Web Search + Calculator tools

πŸ› οΈ Tech Stack

n8n – Workflow automation

WhatsApp Cloud API – Messaging integration

OpenAI GPT – AI language model

OpenAI Whisper – Audio transcription

OpenAI TTS – Text-to-speech

Pinecone – Vector database for knowledge base

SerpAPI – Web search

πŸš€ Setup Instructions

  1. Clone the Repository git clone https://github.com/your-username/whatsapp-ai-assistant.git cd whatsapp-ai-assistant

  2. Import Workflow into n8n

Open n8n

Import the workflow.json file

  1. Configure Credentials

You’ll need to set up the following credentials inside n8n:

WhatsApp Cloud API

OpenAI API

SerpAPI (for web search)

Pinecone API

  1. Deploy WhatsApp Webhook

Connect your WhatsApp Business Cloud API to n8n

Set webhook URL in Meta Developer Dashboard

  1. Start n8n n8n start

πŸ“Œ Usage

Send a text, voice note, or image to your WhatsApp number.

The AI assistant (Sam) will analyze and respond.

Text β†’ gets a text reply

Voice β†’ gets a voice reply

Image β†’ gets a description + contextual answer

πŸ“· Demo (Optional)

Add a screenshot or GIF here once you test it.

πŸ—ΊοΈ Roadmap

Add support for document files (PDF, DOCX)

Multi-language support 🌍

Deploy as Docker container

🀝 Contributing Thanks

Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.

πŸ“œ License

MIT License – free to use and modify.

About

AI-powered WhatsApp Assistant built with n8n, OpenAI, and WhatsApp Cloud API. Supports text, voice, and images with multimodal responses, memory, and tools like web search & knowledge base.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors