WhatsApp conversations in the Cove inbox

Cove's sample data already includes WhatsApp as a channel. To make it real, receive messages through the WhatsApp Cloud API webhook and turn them into conversations.

Field mapping

How WhatsApp Business Platform's data maps to the kit's Conversation type. Your backend does this mapping and serves the result to the kit. The kit itself doesn't call WhatsApp Business Platform. Check field names against WhatsApp Business Platform's documentation for the version you use.

WhatsApp Business Platform fieldKit fieldNote
value.contacts[].wa_idConversation.id (per contact)Group messages by the customer's WhatsApp id
value.contacts[].profile.nameConversation.customer
value.messages[].text.bodyConversation.previewFor type text; other types carry media or interactive payloads
value.messages[].timestampConversation.updatedUnix seconds
constantConversation.channel = WhatsApp
value.statuses[].statusmessage delivery statesent, delivered, read or failed

The webhook payload

Incoming messages arrive as webhook events whose entry[].changes[].value holds contacts (the customer's profile name and WhatsApp id), messages (each with from, id, timestamp, type and a body for its type) and statuses for messages you sent. Store each message, group them into a conversation per customer, and let your AI respond.

Showing the 24-hour window

Because free-form replies close 24 hours after the customer's last message, show the remaining time on WhatsApp conversations in the inbox, and switch the reply box to template messages when it closes.

Questions

Can my AI reply any time?

Free-form replies are allowed within 24 hours of the customer's last message. After that you need an approved template message.

Where does the email field come from?

WhatsApp doesn't provide one. Match the phone number to your customer records, or leave email empty.

Does Cove send WhatsApp messages?

Your backend does, through the Cloud API. Cove's reply box calls your API.