# Conversation-to-Activity Sync

<figure><img src="/files/KxGApwWx2eHRJ0oZ3gJk" alt=""><figcaption></figcaption></figure>

***

1. **Message capture**\
   Every incoming and outgoing message (WhatsApp or SMS) for a contact in Mercuri is captured in real time.
2. **Contact matching**
   * Mercuri searches HubSpot by phone number and/or email.
   * If a match is found, the message is linked to that contact.
3. **Activity creation**
   * In HubSpot, a new Activity entry is created with:
     * Message direction (Sent/Received)
     * Timestamp
     * Message content (text only)
     * Channel (WhatsApp/SMS)
     * Linked to the correct HubSpot contact
4. **View in HubSpot**\
   Open the contact record in HubSpot → **Activities** tab to see the conversation history. Messages appear alongside calls, emails, and notes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mercuri.cx/integrations-guide/hubspot/using-mercuri-in-hubspot/conversation-to-activity-sync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
