Skip to content
For Business Owners

WhatsApp Integration and AI-Powered Customer Service: What We Learned Operating Real Numbers

Updated By Ana da Forcoder6 min read

WhatsApp has become the main channel for customer service and sales in many Brazilian companies, and artificial intelligence is now responding to part of these conversations. Connecting both to a real system—with history, CRM, business rules, and cost control—is very different from just installing a canned-response bot.

Forcoder integrates WhatsApp and AI into several products: Forcoder's own website, the Forcoder Omnichannel, LogFrota, ValuERP, and FunnelMax. In this article, we share what works, what we've learned operating real numbers, and precautions to ensure that AI helps instead of causing issues.

Two Ways to Connect WhatsApp

Evolution API and Meta's Official API
CriteriaEvolution API (QR Code)Official API (Cloud API)
ConnectionScan the QR Code using the company's current WhatsApp numberNumber registered with Meta, with a permanent token
StabilityMay crash and requires monitoringStable, managed by Meta
CostNo per-conversation costCharged per conversation, as defined by Meta
Where We Use ItForcoder site, Omnichannel, LogFrota, ValuERP, and FunnelMaxFunnelMax

In our systems, Evolution API runs on a container in the internal network, with no exposed port, and events are sent back through a webhook protected by a header secret. Messages are stored in the system's database, and duplicate events do not create duplicate conversations.

What We've Learned Operating Real Numbers

Locked Number Restarts, Doesn't Disconnect

When an instance freezes, it's tempting to disconnect and scan the QR Code again. In practice, this could cost you the number's connection. Our rule is to restart and wait, and never change the number's profile via the API.

Bulk Messaging Needs a Pace

In ValuERP and LogFrota, mass notifications go through a dedicated queue with intervals between messages, so as not to look like spam behavior. Rushing to send everything at once is the shortest path to number blocking.

"Zombie" Connections Do Happen

Sometimes, an instance looks connected but delivers nothing. Our systems monitor the health of each number and alert our team when one stops receiving messages, rather than waiting for a client to complain about the silence.

Forcoder Omnichannel: Multichannel Customer Service with AI

Forcoder Omnichannel is our customer service hub sold as a service: unified inbox with WhatsApp and website chat, CRM, visual flow builder, and AI agents. The key design points are:

Customer's AI Key

Each company uses their own OpenAI or Anthropic key. Without a key, AI is disabled and costs fall to whoever uses it.

Knowledge Base

Agents answer based on the company's documents, including PDFs, split into chunks for search.

Limits and Cost

Limits per conversation and per day, and account-level cost control with usage logging.

Integration

API with idempotency key and signed outbound webhooks, protected from internal addresses.

The AI Assistant on Forcoder's Website

On our own site, both chat and WhatsApp land in the same customer service inbox. An AI assistant replies autonomously, with tools to search site content, register leads, check hours, and transfer to a human. The rules are designed to avoid classic bot errors:

  • waits a few seconds before responding in order to group broken-up messages
  • stops when someone from the team replies or takes over the chat
  • only resumes replying when the team clicks "Resume AI"
  • never responds to groups, old messages, imported messages, or those sent by the company itself
  • the AI key never appears in any API response or log

Website Chat in the Same Inbox as WhatsApp

Not every visitor wants to switch to WhatsApp. On Forcoder's site, the chat opens right on the page and appears in the same conversation inbox as WhatsApp, using the same assistant and team. Key design choices:

  • the widget only loads after the page finishes rendering, so page speed isn’t affected;
  • the conversation is identified by a browser token, stored server-side only as a hash, with no session cookie;
  • the first message passes a bot check, and the API rejects calls from other sites;
  • the team can turn chat on/off and set hours via the dashboard.

In LogFrota, the customer service hub also transcribes received audio messages, tracks team response time, and sends a satisfaction survey at the end of each service interaction.

AI Inside the System, Not Just in Chat

The biggest gains from AI happen when it works with system data. Here are some examples we've built in LogFrota:

Document Extraction

Documents the team sends to the system can be read by AI to fill in the data, instead of being typed manually. The provider—OpenAI or Anthropic—can be selected in the dashboard and changed without a new release.

Issuing via WhatsApp

We built an agent where the team sends invoice XMLs, document photos, and audio messages over WhatsApp, and AI assembles the issued documents. The non-negotiable rule: no tax document leaves the system without an explicit "CONFIRM" in the chat from an authorized number, for every step. Fiscal numbering cannot be rolled back, and AI never makes that final decision alone.

Driver Copilot

The driver sends text, photo, or audio to the carrier's WhatsApp, and the assistant records expenses, refueling, advances, and delivery slips for their settlement. AI is paid for with the carrier’s own key.

Cost Control and Security

AI is billed by usage—and without controls, costs can get out of hand. In our systems, every call is logged with purpose and estimated cost, limits are enforced per conversation and per day, and the key is encrypted in the database. Automated tests never trigger the real AI provider: they work with mocked responses.

How to Contract a WhatsApp and AI Integration

  1. Define the channel. Current number via Evolution API, or official number via Cloud API, depending on volume and risk.
  2. Connect to your system. Each chat must be tied to the client, order, or trip—not just on a standalone device.
  3. Write the AI rules. When it responds, when it stops, and what it must never do by itself.
  4. Monitor. Keep tabs on number health, AI cost, and conversations needing human attention.

Also see how we handle customer service automations and how WhatsApp fits into the sales funnel in our article on marketing integrations.

Contact Forcoder

If you'd like to connect WhatsApp to your system, add AI to your customer service with clear rules, or learn more about Forcoder Omnichannel, get in touch or message us on WhatsApp.

Frequently Asked Questions

Can I use the company’s current WhatsApp number?

Yes, via Evolution API by scanning the QR Code. For operations that need extra stability, Meta’s official API is an alternative.

Can AI handle everything by itself?

It can handle most questions based on your company’s content. In our systems, it hands over to a person when it doesn’t know, stops when the team takes over, and never makes irreversible decisions without confirmation.

Which AI models do you use?

We work with models from Anthropic (Claude) and OpenAI. In several systems, the provider can be selected via the dashboard and changed with no new release required.

Who pays for AI usage?

It depends on the product. In Forcoder Omnichannel and LogFrota Copilot, the company uses its own key and pays for its own consumption, with configurable limits.

Keep reading

Products by Forcoder and our clients

Software Forcoder built and maintains, for itself and for its clients.

Client case

Nexus Finanças

Banking as a Service (BaaS) platform for Nexus Finanças: a digital account for each partner, with Pix, transfers, bill payments, charges with automatic split and cards, admin and partner dashboards, plus the company's corporate website.

Client case

Torela Real Estate

Real estate portal and system for Torela, in Gramado, Canela and the Rio Grande do Sul coast, integrated with Loft: listings reach the website without double entry, with search by region, city and neighborhood, property pages with photo galleries, favorites, comparison, vacation...

Client case

Permute-se

An asset-matching social network: properties and vehicles with compatibility-based matches, private proposals, a nationwide feed, wanted listings and subscription plans, on the web and in apps published on the App Store and Google Play.

Have a project in mind? Let's make it happen.

Custom websites, systems and integrations, focused on results. Tell us what you need and the Forcoder team will get in touch.