- A human agent chats with a customer from your CRM.
- The human agent steps away for a break, a meeting or the night, and hands the chat to the AI agent.
- The AI agent continues the conversation as your team. It doesn’t greet again, re-introduce itself, or ask for anything the customer already said.
- The human agent comes back, takes the chat back, and later hands it over again.
/inbound request that also carries the conversation so far in prior_messages.
Hand a conversation to the AI agent
When a human agent hands over, forward the customer’s latest message as usual, and add every message Ringg has not seen inprior_messages, oldest first.
prior_messages fields
Rules
- Order: oldest first, up to 200 messages.
- Latest message: don’t include the customer message you are forwarding. It goes in
value.messages. - Text only: send the text of each message. For a photo or voice note your agent handled, a short description such as
[customer sent a photo of the policy]helps. message_id: always include Meta’s message id. It lets Ringg recognise messages it already has, including the AI agent’s own replies, which you may store with your human agents’ messages. Without ids, Ringg can only match on text.
Send everything, or only what’s new
Either works:- Only what’s new. Send the messages from since the AI agent last saw the chat. This is the smallest payload.
- A recent window every time. Send, say, the last 20 messages on every handover, including the AI agent’s own replies. Ringg skips the messages it already holds and stores the AI agent’s replies as its own, not as your human agent’s.
handover_note.
Take a conversation back
There is no API call to take a chat back. Your human agent simply starts answering, and you stop forwarding that chat’s customer messages to Ringg. When you hand over again, include the messages exchanged while your human agent had the chat: their replies and the customer’s messages. The AI agent then knows what was said in between.A handover always travels with a customer message, and the AI agent answers it. Hand over with the customer’s latest unanswered message. If the customer hasn’t written since your human agent’s last reply, keep the history and send it with their next message.
End the conversation
When the conversation is done, call/close, optionally with a closing message. The customer’s next message starts a new chat.
What you see in the dashboard
In Logs → WhatsApp, a conversation that was handed over shows:- Handed over to AI agent where the AI agent took over.
- Handed over to human agent where your human agent’s messages resume.
- Human agent · Priya or AI agent above each message on the agent’s side.
- Each handed-over message at the time it was actually sent.