Data used for detailed analysis of AI usage—such as token consumption, LLM used, and execution user—can be retrieved from the "AI Agent Generative AI Usage Data Model Object (DMO)." This article provides the setup instructions to check usage data using the AI Agent Generative AI Usage DMO, as well as frequently asked questions (FAQ) covering topics such as how to check consumed token counts and how to verify the AI Agent Generative AI Usage DMO in a Sandbox.
Enable Einstein, Agentforce, and Data 360 in the org where you want to collect data for the AI Agent Generative AI Usage DMO.
Please refer to the official help documentation below for instructions on enabling each feature:
-Set Up Einstein Generative AI
From the [Setup] menu, navigate to [Einstein Audit, Analytics, and Monitoring Setup], and enable the "Audit and Feedback" feature.
Related doc: Set Up Einstein Generative AI Audit and Feedback
If you also need to collect and analyze Agentforce session details, enable Agentforce Session Tracing.
Related doc: Set Up Agentforce Session Tracing
Navigate to the "Data Streams" tab and confirm that the status of the "AiAgentGenerativeAiUsage" data stream is set to Active.
Note: If the status is displayed as "Needs Activation", select the checkbox next to the relevant data stream in the list view, then click [Activate Data Stream] in the upper-right corner to see if it transitions to the active state.
In the org where you want to collect AI Agent Generative AI Usage data model records, trigger AI-powered actions (such as executing prompt templates or running Agentforce actions), and wait for the records to be created.
Create a report to review usage using the AI Agent Generative AI Usage report type.
e.g., Use the Is Metered field to check whether AI usage consumed credits, or the User ID field to identify the executing user. For detailed field descriptions, refer to the documentation on the AI Agent Generative AI Usage Data Model.)
Create a workspace by following the guide on Create Queries in Query Editor, and execute your query using the SQL references provided in the relevant documentation.
Q1: Are unmetered (non-credit-consuming) AI execution logs also recorded?
A1: Yes. AI execution logs where credit consumption was unmetered (e.g., via Unmetered Usage entitlements/licenses) are also captured and recorded.
Q2: Can we retroactively track AI usage that occurred before enabling these features?
A2: No. AI activity executed prior to enabling the settings cannot be tracked or reviewed retroactively.
Q3: We enabled the features and executed AI actions, but the records are not appearing.
A3: There is no fixed SLA or specific processing time defined for data ingestion into the DMO.
However, if records do not appear after more than 24 hours, try the following troubleshooting steps:
1. Go to [Setup] > [Einstein Setup], disable Einstein, wait approximately 30 minutes, and enable it again.
2. Go to [Setup] > [Einstein Audit, Analytics, and Monitoring Setup], disable "Audit and Feedback", wait approximately 30 minutes, and enable it again.
Note: If the issue persists after performing these steps, verify behavior in another Sandbox environment if applicable, or contact Salesforce Technical Support with your org details.
Q4: Can we check credit consumption directly within the AI Agent Generative AI Usage DMO?
A4: No. This DMO does not contain the actual credit consumption figures. To review credit consumption, use the Digital Wallet feature.
Note: Digital Wallet displays aggregated usage across both production and sandbox environments in the production org. By contrast, the AI Agent Generative AI Usage DMO is queried and viewed within each individual org where AI is executed.
Related Documentation: How to Check and Aggregate Credit Consumption Details from TenantEnrichedUsageEvent
Q5: We are checking for records in a Sandbox environment, but no data is generated.Sandbox 環境でレコードを確認しようとしていますが、データが作成されません。
A5: In Sandbox environments, Einstein Setup and Data 360 may be disabled by default. First, confirm that all prerequisite configurations described in the first half of this knowledge article are complete.
Q6: Are actions run using the Agentforce Builder preview feature recorded as usage records?
A6: Yes. Even test executions such as those within the Agentforce Builder preview can be recorded as usage records, regardless of whether credits are consumed.
Q7: How do we verify whether an AI execution was unmetered, and why?
A7: If the Is Metered (IsMeteredIndicator__c) field is false, credits were not consumed. In this case, a TenantEnrichedUsageEvent record is not created. To check the specific reason, review the value in the Metering Skip Reason Code (MeteringSkipReasonCode__c) field.
Q8: Can we review token/credit consumption or usage breakdown by specific features such as Coworker or Agentforce Vibes?
A8: Yes. Depending on the feature executed, the FeatureDescriptorName__c field will contain values such as AgentforceCoworker or AgentforceVibesExtension. You can use this field in filter criteria (WHERE clauses in SQL) or as a grouping field in reports.
Billing Considerations for Audit and Feedback
Gain Insights Into Agentforce and Generative AI Consumption
005461721

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.