---
schema_version: "1"
id: ea7bcc4fc92b45b4a29c4e600679fb2e3592281b95c2f087969557aa2c28f75d
title: Link Case and Messaging DMOs to Generative AI Data
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/generative_ai_analytics_service_reply_create_relationships.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.generative_ai_analytics_service_reply_create_relationships.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e8e8789d0d0924e313c1b9528d186c5360f5421fc2fbb96238644a3a4046c81e
description: Create relationships between your custom data model objects (DMOs) and the generative AI data model objects (DMOs).
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Link Case and Messaging DMOs to Generative AI Data

Create relationships between your custom data model objects (DMOs) and the generative AI data model objects (DMOs).

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with an Einstein for Sales, Einstein for Platform, Einstein for Service, Einstein 1 Service, or Einstein GPT Service add-on. To purchase add-ons, contact your Salesforce account executive.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d21204e65">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d21204e65 ">To create data model object relationships:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d21204e65 ">Customer Data Cloud Admin </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d21204e65 ">To turn on data collection:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d21204e65 ">View Setup </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d21204e65 ">&nbsp;</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d21204e65 ">AND</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d21204e65 ">&nbsp;</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d21204e65 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

To collect generative AI audit and feedback data, [Set Up Einstein Generative AI Audit and Feedback](https://help.salesforce.com/s/articleView?id=ai.generative_ai_feedback_enable.htm&release=264.0.0&type=5 "To collect Einstein generative AI audit and feedback data, turn it on in Einstein Setup. For orgs with only one dataspace, it’s turned on by default when Agentforce is turned on."). Before you create the relationships make sure you've created the data streams for the Case and Messaging objects. See [Create Data Streams to Monitor Einstein Service Replies](https://help.salesforce.com/s/articleView?id=ai.generative_ai_analytics_service_reply_create_data_streams.htm&release=264.0.0&type=5 "Create data streams to bring the case and message data stored in Salesforce CRM objects into Data 360.").

Mapping the case and messaging DMOs to generative AI data is one of the steps required to create reports so you can analyze and monitor Einstein Service Replies. See [Monitor and Analyze Einstein Service Replies](https://help.salesforce.com/s/articleView?id=ai.generative_ai_analytics_service_reply_insights.htm&release=264.0.0&type=5 "Evaluate and track the effectiveness of Einstein Service Replies in your organization by creating custom report types that connect case and messaging session data with generative AI audit and feedback data.").

1. In Data Cloud, select the Case DMO that you created.
2. On the Relationships tab, click **New** and enter these values.
    - Field: CaseID
    - Cardinality: 1:1
    - Related Object: MessagingSession or Live Chat Transcript object If you use both Messeging for In-app and Salesforce Chat, repeat the steps for both objects. complete the steps for both objects.
    - Related Field: CaseID
3. Save your work and activate the relationship.
4. Select the Messaging Session DMO that you created, and on the Relationships tab, click **New** and enter these values.
    - Field: Messaging Session ID
    - Cardinality: 1:1
    - Related Object: GenAIGtwyObjRecord
    - Related Field: RecordId
5. Select the Live Chat Transcript DMO that you created , and on the Relationships tab, click New and enter these values.
    - Field: Id
    - Cardinality: 1:1
    - Related Object: GenAIGtwyObjRecord
    - Related Field: RecordId
6. Save your work and activate the relationship.
7. On the Relationships tab of the GenAIGatewayRequest DMO, verify the relationship between GenAIGatewayRequest and GenAIGtwyObjRecord. You can view the status of a relationship in the Edit Relationships window.
8. On the Relationships tab of the GenAIFeedback DMO, verify the relationship between GenAIFeedback and GenAIGwtyObjRecord. You can view the status of a relationship in the Edit Relationships window.

You can now create custom report types . See [Create Custom Reports to Monitor Generative AI Requests for Service Replies](https://help.salesforce.com/s/articleView?id=ai.generative_ai_analytics_service_reply_custom_report_case_gtwyrequest.htm&release=264.0.0&type=5 "Create a custom report type and custom report to monitor the number of generative AI requests made for a specific case and its current status.") and [Create Custom Reports to Monitor User Feedback for Service Replies](https://help.salesforce.com/s/articleView?id=ai.generative_ai_analytics_service_reply_create_custom_report_case_genaifeedback.htm&release=264.0.0&type=5 "Create a custom report type and custom report monitor the user feedback and analyze the performance of service replies while handling cases.")