# Conversation-to-Activity Sync

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FV9YpFkdjrZfXWBCaSBI9%2FWhatsApp%20Image%202025-08-12%20at%2015.33.27%20(1).jpeg?alt=media&#x26;token=469e9d1a-b657-4d4d-b430-9c5fe891c85d" alt=""><figcaption></figcaption></figure>

***

1. **Captura de mensagens**\
   Cada mensagem recebida e enviada (WhatsApp ou SMS) para um contato no Mercuri é capturada em tempo real.
2. **Correspondência de contatos**
   * O Mercuri pesquisa no HubSpot por número de telefone e/ou e-mail.
   * Se houver correspondência, a mensagem é vinculada a esse contato.
3. **Criação de atividade**
   * No HubSpot, uma nova entrada de Atividade é criada com:
     * Direção da mensagem (Enviada/Recebida)
     * Data e hora
     * Conteúdo da mensagem (somente texto)
     * Canal (WhatsApp/SMS)
     * Vinculado ao contato correto no HubSpot
4. **Visualizar no HubSpot**\
   Abra o registro do contato no HubSpot → aba **Activities** para ver o histórico da conversa. As mensagens aparecem junto com chamadas, e-mails e notas.


---

# 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/mercuri-docs-pt/guia-de-integracoes/hubspot/usando-a-mercuri-no-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.
