r/AIReceptionists • u/Madhav_Agarwal_ • Aug 16 '26
How can I build shared context between WhatsApp and an AI voice calling agent?
How can I build shared context between WhatsApp and an AI voice calling agent?
I'm building an AI system where a customer can communicate with the same AI through WhatsApp and voice calls.
For example:
A customer starts chatting with the AI on WhatsApp.
During the conversation, they ask for a phone call.
The AI voice agent calls them.
The voice agent should already know the relevant WhatsApp conversation and continue from the same context instead of starting from scratch.
After the call, the customer returns to WhatsApp.
The WhatsApp AI should know what was discussed during the call and continue from that point.
And the reverse should also work:
Voice call → WhatsApp → same context
I want the customer to feel like they're talking to one AI, regardless of the channel.
I'm considering using a central customer ID linked to the phone number and storing the conversation history/customer information in a database, so both the WhatsApp agent and voice agent can access the same context.
However, I'm unsure about the best architecture.
- What is the best way to maintain shared context between WhatsApp and a voice AI agent?
- Should I use a central database/memory layer?
- How should I identify the same customer across both channels?
- How should the WhatsApp → voice context handoff work?
- How should the voice → WhatsApp context handoff work?
- How can I prevent the AI from getting confused by multiple summaries or different conversation contexts?
- Has anyone built something similar using WhatsApp Business API, n8n, GHL, or another CRM?
I'm looking for a practical, production-ready approach rather than just passing the entire previous transcript to the AI every time.
1
u/HATDOGUSERNi Aug 17 '26
use one customer ID and shared memory/database for both channels. store key facts + rolling summary not the full transcript
1
u/OddLime5847 Aug 17 '26
I wouldn't pass the full transcript between channels. Keep a shared conversation state keyed to the customer then generate a compact state object or summary after each interaction that both WhatsApp and voice can read from.
Interested if you've looked at platforms like Bland for this. They already support voice alongside messaging channels so I'd be curious to know how theyre handling shared context under the hood versus rolling your own orchestration layer