Internal project · AI automation
AI communication platform
WhatsApp and email conversations answered with configurable AI, in one shared inbox.
Overview
A multi-tenant application that receives customer messages from messaging and email channels, drafts or sends replies with an AI model, and gives the team a shared inbox.
Business context
Businesses that sell through messaging and email receive the same questions repeatedly, on several channels at once. A shared inbox with controllable AI replies keeps those conversations in one place.
The problem
Small teams lose enquiries by replying slowly, across several channels, and answering the same questions repeatedly.
The technical challenge
Support several channels per business with isolated data and billing, keep message processing reliable, and keep AI behaviour controllable by the business.
Solution approach
A NestJS API receives channel messages through a queue, stores conversations in PostgreSQL and generates replies with a language-model API according to each business's workflow settings. A Next.js inbox updates in real time.
Objectives
- Bring WhatsApp and email conversations into one team inbox
- Let the AI draft or send replies under rules the business sets
- Keep each business's data and billing separate
- Keep message handling reliable when a provider is slow or down
Key features
- WhatsApp messaging through a telephony provider's API
- Email received over IMAP and sent through SMTP
- Shared team inbox updated in real time over WebSockets
- AI replies governed by per-business workflow settings
- Multi-tenant data separation
Technical architecture
Swipe sideways to see the full diagram
Implementation approach
- 01Incoming and outgoing messages are processed through background queues so a slow provider does not block the application.
- 02The inbox updates in real time over WebSockets.
- 03Email is received over IMAP and sent through SMTP; messaging goes through a telephony provider's API.
- 04AI replies come from a language-model API, with behaviour set per business in workflow settings.
Engineering challenges and decisions
Choices that shaped the system, and why they were made.
- 01
Make AI behaviour a setting, not code
Each business configures how and when AI replies, so the team stays in control and changes need no deployment.
- 02
Queue everything that talks to a third party
Channel providers fail and slow down. Queued, retried work keeps conversations flowing and the app responsive.
Verified outcomes
No performance, revenue or user figures are published for this project, because none are documented in a form we can stand behind. What is shown here is how the system is built.
Screenshots and visual evidence
No product screenshots are published for this project. The architecture diagram above is an illustration of the design, not a screen from the application.
Related services
The work above is the kind of engineering these services provide.
Start with the problem
Tell us the problem. We will tell you honestly how we could help.
Describe what is slowing the business down in your own words. We reply with questions or a suggested next step. We do not promise a response time or a price before we understand the problem.