How to get your Vira WhatsApp message data out of HubSpot
This article is for teams that want their Vira WhatsApp messages in their own data warehouse or BI tool.
Where the data lives
Vira saves every WhatsApp message and every status change (sent, delivered, failed) on the contact's timeline as a Vira app event (the "WhatsApp for Marketing - Vira" card). It is not a custom object or a custom behavioral event, so it does not appear in HubSpot object tables. You can see the events in HubSpot under Data Management > Event Management > Manage > App events, as "Message sent" and "Message received" from "WhatsApp for Marketing - Vira".
Option 1: new messages as they happen (workflow + webhook)
- In HubSpot, go to Automation > Workflows and create a contact-based workflow.
- Trigger: "When an event occurs", then pick the "Message sent" event from "WhatsApp for Marketing - Vira". Add a second trigger for "Message received" if you also want replies.
- Add the action "Send a webhook" (under Data ops), method POST, with the web address of your own data platform.
- Choose what to send, turn on re-enrollment so every message triggers it, and publish.
This covers only messages sent or received after the workflow is turned on. The "Send a webhook" action needs HubSpot Data Hub Professional or Enterprise.
Option 2: older messages (HubSpot Events API)
Your developers can pull past message events with HubSpot's Events API, using a private app access token from your portal. Each result is one message with the contact, time, status and message text. Share the event names shown under App events ("Message sent" and "Message received" from "WhatsApp for Marketing - Vira") with them.