← Back

Every company needs a

Business Assistant

An archived WhatsApp chatbot built on whatsapp-web.js. It queued messages, generated context-aware replies from a company Q&A list using Grok, validated them, simulated human typing, and handed interested leads to staff.

Overview

This is an earlier project of ours, built before WhatsApp introduced its own AI assistant. It was a chatbot built on whatsapp-web.js that handled the first stage of customer conversations on WhatsApp. It read incoming messages, answered common questions from a company-approved knowledge base, and passed interested prospects to a human team member. The project is no longer active, and we keep it here as a record of what we built.

Message Handling and Queueing

Incoming messages were captured through whatsapp-web.js and added to a processing queue rather than being answered immediately. After a delay of roughly ten seconds, each message was picked up for response generation. The queue kept simultaneous chats ordered, prevented duplicate or missed replies, and ensured that each message was processed with its own conversation context.

Grounded Response Generation

For every message, the system sent three inputs to Grok: the customer’s question, a prepared list of company questions and answers, and several previous messages from the same chat. The Q&A list kept replies tied to approved company information, while the recent history allowed the model to interpret follow-up questions correctly. Grok selected and composed the most relevant answer, which was returned to our system for review.

Human-Like Interaction

The delayed reply was combined with a live typing indicator whose duration scaled with the word count of the response, which made the exchange feel like a conversation with a person. Replies were delivered as standard WhatsApp messages without bot labels or third-party branding.

Validation and Human Handoff

Generated replies were never sent directly. Each one passed a set of predefined checks, and only validated answers were delivered to the customer. When the system could not find a confident, relevant answer, it skipped the chat and left it for staff instead of guessing. When a customer showed real interest, the conversation was redirected to a human team member. This filtered out casual inquiries and saved the team the time normally spent on initial conversations.

Important Note

Please note that now this is just an archived project and is completely inactive now

Want this for your business?

Tell us what you need and we'll reply within one working day.

Contact us