WhatsApp AI Chatbot
Back to Portfolio
AI Automation

WhatsApp AI Chatbot

AI-Powered Conversational Assistant via WhatsApp Cloud API

Project Overview

An automated WhatsApp chatbot that receives incoming messages, generates AI-powered replies, and delivers them back to the user in real time, built on n8n workflow automation with WhatsApp Cloud API integration and large language model intelligence.

WhatsApp AI Chatbot in action

Technical Architecture

The WhatsApp AI Chatbot system comprises the following components:

Webhook Receives incoming WhatsApp messages as POST requests. During development, ngrok was used to expose the local n8n instance on a public HTTPS URL, since Meta's WhatsApp Cloud API requires a public endpoint to deliver webhook events
Wait Introduces a brief pause before processing to prevent rate-limit conflicts and allow the payload to fully settle
Message a Model An AI node that generates a contextual reply to the incoming message, with a Tools slot available for future extensions such as database lookups or FAQ retrieval
Edit Fields Reshapes the AI's raw text output into the exact JSON structure required by WhatsApp's Send Message node
Send Message Delivers the final AI-generated reply back to the user on WhatsApp via n8n's native WhatsApp node, which handles the Graph API call internally

Outcomes & Impact

Automated end-to-end WhatsApp message handling with zero manual intervention
AI-generated replies delivered in real time to incoming messages
Extensible architecture with Tools slot on the AI node for future CRM or knowledge base integration
Native WhatsApp node eliminates need for raw HTTP API calls, simplifying maintenance

Project Info

Category

AI Automation

Key Features

Automated end-to-end WhatsApp message handling with zero manual intervention
AI-generated replies delivered in real time to incoming messages
Extensible architecture with Tools slot on the AI node for future CRM or knowledge base integration
Native WhatsApp node eliminates need for raw HTTP API calls, simplifying maintenance

Tech Stack

n8nWhatsApp Cloud APIAIWebhookWorkflow Automation

Tags

AutomationAIn8nWhatsAppChatbotNLP