Source: https://vaultcrmhelp.veeva.com/doc/Content/CRM_topics/Multichannel/Engage/Connect/ImportingChatLogsMessage.htm

## Importing Engage Connect Chat Logs into CRM as Chat Messages

Business admins can configure Vault CRM to import chat messages from the Engage Connect database as chat\_message\_\_v records. These records contain chat message data and automatically associate with the appropriate account and user. The data can be utilized within CRM to help analyze productivity and monitor for compliance purposes with Approved Notes.

**Who can use this feature?**

* Business Admin Users - Browser
* [Schedule the Engage Connect process](#Scheduling)
* [View the history of the Engage Connect process](#Viewing)
* Integration Users - Browser
* [Create chat message records from the Engage Connect process](#Creating)
* Users require an Engage license

### Configuring Importing Engage Connect Chat Logs as Chat Messages for

[![Closed](../../../../../Skins/Default/Stylesheets/Images/transparent.gif)Business Admin Users](#)

To configure this feature:

1. Ensure the [Process Scheduler](../../../Integration/Process_Scheduler.htm) is configured.
2. Navigate to **Admin > Users & Groups > Permission Sets**.
3. Select the permission set for the appropriate user profile.
4. Select **Objects**.
5. Grant the following permissions:

   | Object | Object Permission | Object Types | Fields | Field Permission |
   | --- | --- | --- | --- | --- |
   | chat\_message\_\_v | CRE | chat\_message\_\_v | All fields | Edit |
6. Grant access to the **Engage Connect Administration** (engage\_connect\_admin\_page\_\_v) page.
7. Navigate to **CRM Setup > Engage Setup > Engage Connect Process Administration**.

   ![](../../../../Resources/Images/Multichannel/Engage/Connect/ChatIntegrations/IntegrationOptions.png)
8. Navigate to **Integration Options**.
9. Select the **Enabled** checkbox in the Chat Import section to enable creating chat\_message\_\_v records.
10. Select **Save**.

[![Closed](../../../../../Skins/Default/Stylesheets/Images/transparent.gif)Integration Users](#)

To configure this feature:

1. Navigate to **Admin > Users & Groups > Permission Sets**.
2. Select the permission set for the appropriate user profile.
3. Select **Objects**.
4. Grant the following permissions:

   | Object | Object Permission | Object Types | Fields | Field Permission |
   | --- | --- | --- | --- | --- |
   | chat\_message\_\_v | CRE | chat\_message\_\_v | All fields | Edit |
5. Navigate to **CRM Setup > Engage Setup > Engage Connect Process Administration**.

   ![](../../../../Resources/Images/Multichannel/Engage/Connect/ChatIntegrations/IntegrationOptions.png)
6. Select **Edit** in the Integration User Credential Management section.
7. Enter the credentials of the appropriate integration user.
8. Select **Save** to validate the credentials.

### Scheduling the Engage Connect Process as

[![Closed](../../../../../Skins/Default/Stylesheets/Images/transparent.gif)Business Admin Users](#)

After defining the integration user, business admins must activate and schedule the Engage Connect Integration Process:

1. Navigate to the **Process Scheduler**.
2. Navigate to the **Engage Connect Integration Process**.
3. Select **Edit**.
4. Select the appropriate time for the process to run.

   The only available interval is Daily.
5. Select the **Schedule will be active** checkbox.
6. Select **Save**.

### Creating Chat Message Records from the Engage Connect Process as

[![Closed](../../../../../Skins/Default/Stylesheets/Images/transparent.gif)Integration Users](#)

When the Engage Connect Integration Process imports chat messages between users and HCPs, a chat\_message\_\_v record is created with the following fields populated based on field values in Engage Connect:

| Field in CRM | Description |
| --- | --- |
| sent\_datetime\_\_v | The time the message was sent, formatted in UTC |
| channel\_ext\_id\_\_v | The unique external ID of the chat thread in Engage Connect. Used to group chats together. |
| message\_\_v | The complete text of the chat message. This field does not populate if the message\_metadata\_\_v field is populated. |
| message\_metadata\_\_v | The metadata of the chat message. This field is used for predefined messages and does not populate if the message\_\_v field is populated.  This field cannot be monitored via Approved Notes. |
| sender\_type\_\_v | May be one of the following values, based on the type of sender:   * hcp\_\_v – The sender is an HCP * user\_\_v – The sender is a user |
| user\_\_v | References the corresponding user in CRM |
| account\_\_v | References the corresponding account in CRM if the HCP's Engage profile is associated with an account |
| country\_code\_\_v | The country code of the corresponding user in CRM |
| first\_name\_\_v | The first name of the sender in Engage Connect |
| last\_name\_\_v | The last name of the sender in Engage Connect |
| external\_id\_\_v | The message’s unique external ID in Engage Connect |

### Viewing the History of the Engage Connect Process as

[![Closed](../../../../../Skins/Default/Stylesheets/Images/transparent.gif)Business Admin Users](#)

Business admins can view the history of the Engage Connect Integration Process from the Engage Connect Integration Process History section of the Engage Connect Process Administration tab. This section lists the results of the last 10 runs of the process.

Business admins can select the Successes and Failures columns to download a CSV file of all successfully created or failed records. Failures can be retried by selecting the Retry on Next Run checkbox, then selecting Save.

### Considerations

Any supported fields on the chat\_message\_\_v object can be monitored via [Approved Notes](../../../ApprovedNotes/Overview.htm).

### Related Topics

[Importing Engage Connect Chat Logs into CRM as Call Records](ImportingChatLogsCall.htm)

[Approved Notes Overview](../../../ApprovedNotes/Overview.htm)

[Using Engage Chat in CRM](EngageTab.htm)
