Back to Portfolio

WhatsApp AI Chatbot

100% AI-Powered Customer Service Automation

Screenshots

About the Project

This project was developed for companies that need to scale their customer service without
losing quality. The chatbot uses artificial intelligence to understand conversation context
and respond naturally and personally.

The system learns from each interaction and can be trained with company-specific documents,
FAQs, and knowledge bases. Beyond customer service, it performs automatic lead capture and can
schedule meetings directly on the sales team's calendar.

Features

Claude and GPT-4 Integration

Uses the most advanced AI models for natural language understanding and contextualized response generation.

Automatic Lead Capture

Identifies sales opportunities during conversations and automatically registers qualified leads in the CRM.

Intelligent Meeting Scheduling

Checks availability and schedules meetings directly on the sales team's Google Calendar.

Asynchronous Processing

Robust architecture with Sidekiq for high-scale message processing without performance loss.

Tech Stack

Backend

Ruby on Rails 8

Database

PostgreSQL

AI

Claude API (Anthropic) OpenAI GPT-4

Messaging

Twilio WhatsApp API

Background Jobs

Sidekiq

Cache/Queue

Redis

Technical Challenges

Context Management

Problem

Maintaining context in long conversations without exceeding AI model token limits.

Solution

Implemented a progressive summarization system that condenses old messages while keeping relevant information, combined with RAG (Retrieval Augmented Generation) to fetch specific context when needed.

Response Latency

Problem

AI APIs can have high latency, causing poor user experience on WhatsApp.

Solution

Created a streaming system with status messages ('typing...') and asynchronous processing that sends partial responses when available.

Interested in similar projects?

Get in touch to discuss how I can help with your next project.