Salesforce Engineering · Technical guide
How do you report Agentforce Flex Credits per user and forecast cost before rollout?
A GenAIGatewayRequest token report is not the bill. How actions and prompts are metered, why sandbox is not production, and where per-user reports stop.
- Written by
- Michał TargielSalesforce Tech Lead & Integration Specialist
- Published
- Reading time
- 16 min read
Short answer
A token report on GenAIGatewayRequest is a request log, not the bill. Salesforce Help says every standard or custom agent action in a text conversation is metered as one action, irrespective of tokens: 20 Flex Credits in production and 16 in a sandbox on the rate card updated 30 November 2026. Prompts count total tokens in 2,000-token chunks. Exact consumption comes from Digital Wallet and TenantEnrichedUsageEvent, whose User ID covers only Employee Agent standard and custom actions.
What are people actually asking about Agentforce Flex Credits?
They want billable Flex Credits per user, measured in a sandbox, before anyone signs off a production rollout. A Salesforce Stack Exchange question (opens in a new tab) asked on 6 October 2026 puts it plainly: the asker was evaluating Agentforce Coworker in a sandbox and had a Lightning report on GenAIGatewayRequest, grouped by month and session, with sums of prompt tokens and total tokens. They asked whether that object, the usage DMO or Digital Wallet is the right source, whether a sandbox is metered like production, and whether the 2,000-token unit counts prompt tokens or total tokens. That thread is the question. It is not the guidance.
Note
Nothing here describes a particular org, a contract you hold, or a result Synairo has delivered. It is a reading of the Salesforce Help pages, the Flex Credits Rate Card updated as of 30 November 2026, the Agentforce pricing page and the Salesforce blog, all linked in the text and read on 1 December 2026.Are tokens the same as Flex Credits?
No. Flex Credits Billable Usage Types (opens in a new tab) describes two different metering families, and only one of them counts tokens. Agent actions are counted per action. Prompt usage is counted in token chunks. The Flex Credits Rate Card (opens in a new tab) then converts each usage type into Flex Credits with its own multiplier: "Customer consumes Flex Credits at the applicable multiplier rate based on the Usage Type."
How are standard and custom Agentforce actions metered?
By the number of actions, not by tokens. Help says usage "is determined by the number of standard actions called by the agent in a text conversation. Currently, every standard action called by the agent is metered as one standard action, irrespective of the number of tokens processed." The same rule is written for custom actions, with one addition: "Async calls to Salesforce AI in custom action implementation may incur additional charges." Voice conversations have their own usage types, Standard Voice Action and Custom Voice Action.
Help also says when an action counts. "Agent actions are billed when they're run, whether they're run deterministically (for example, in reasoning instructions) or during agent reasoning with an LLM." Utilities, which Help lists as escalations to a representative, setting variables, and transitions to another topic, are not billed as agent actions. By default, Agentforce Service agents are metered by action, and Help says they can opt into resolution-based metering.
How are prompt usage types metered, and what is the 2,000-token chunk?
Prompt usage is measured in total tokens, input plus output, counted in 2,000-token chunks and rounded up. Help gives the example itself: 6,500 total tokens count as 4 prompts. Prompt usage types "are calculated based on the number of calls to the large language model (LLM) gateway" and apply to embedded generative AI features, such as Service Replies, that make direct requests to the LLM. Starter Prompts are for bring-your-own LLMs. Basic, Standard and Advanced Prompts cover Salesforce-managed LLMs, and the category depends on the model.
- Cached tokens count toward total tokens for most features, including Service Replies. Help says they are not counted for Agentforce Vibes and Agentforce Coworker.
- Help carries this note: "Salesforce will start metering the use of Advanced Prompts on July 21, 2026."
- The rate card footnote limits prompt usage types to Agentforce 1 Edition customers, Agentforce for Sales, Service or Industries customers, and other products that no longer use Einstein Requests. Agentforce action usage types are consumed by all product types. Metering for Agentforce and Generative AI Usage (opens in a new tab) says metered usage "consumes either Flex Credits or Einstein Requests".
Is GenAIGatewayRequest the right object for Flex Credit billing?
No. GenAIGatewayRequest is a request log, useful for token analysis, and it is not the Flex Credit invoice. The Salesforce blog post Close the Agentforce Usage Visibility Gap With the AI Usage Data Model (opens in a new tab) (Chetan Dandekar, 18 August 2026) says that when a prompt template is invoked directly, from a Flow action or Apex, "the LLM Gateway records the call in GenAIGatewayRequest__dlm", with fields such as PromptTemplateDeveloperName__c and sessionId__c. The post joins it to the AI usage DMO on usage.RequestIdentifier__c = req.gatewayRequestId__c for token analysis.
The same post draws the line that matters for a budget: "The DMO provides token counts, not Flex Credits directly." Token-to-credit conversion, it says, is "a close approximation useful for trend analysis and relative comparisons", but "the single source of truth for exact Flex Credit consumption is the Digital Wallet." A token sum on the request log is further from the bill than that DMO, because a standard or custom action is metered per action whatever its token count.
The DMO in the middle is described in AI Agent Generative AI Usage Data Model (opens in a new tab). Help says it "captures the billing and metering decisions from AI services (for example, LLM Gateway), including whether the interaction was billable, usage quantity, token counts, and identifiers for traceability and audit." Its fields include IsMeteredIndicator__c, which Help calls the "final metering decision", IsBillableIndicator__c, UsageTypeCode__c (for example EmbeddedAI_StandardPrompts or Agentforce_StandardAction), UsageQuantity__c, and UserId__c "when available". The blog says the DMO is refreshed every five minutes, needs Data 360 with Einstein Generative AI Audit & Feedback enabled, and that audit logging is not backfilled.
Illustrative map of the three sources in this note. It is not a Salesforce diagram. Each statement is cited from Salesforce Help or the Salesforce blog in the text.
What is Digital Wallet used for in Agentforce billing?
Digital Wallet is where you check what was actually consumed. Flex Credits Billable Usage Types (opens in a new tab) says it twice: "To monitor your usage in these usage types, access your org's Digital Wallet" and "To check your actual consumption and metered usage, use Digital Wallet." The Agentforce pricing page (opens in a new tab) says Digital Wallet "will be automatically provided for free for any customers who have Digital Wallet enabled products."
What is TenantEnrichedUsageEvent, and what does Units Consumed mean?
TenantEnrichedUsageEvent is the data lake object behind Digital Wallet reporting, and Units Consumed is the amount of entitlement used. TenantEnrichedUsageEvent Data Lake Object (opens in a new tab) calls it the enriched version of TenantBillingUsageEvent, "specifically created and optimized for consumption reporting", which "fuels the data provided in the Digital Wallet out-of-the-box reports and dashboards". Reports built on it do not incur costs.
A sandbox copy of the DLO is not the production bill. The same Help page says: "The TenantEnrichedUsageEvent DLO can be copied to a sandbox during the creation or cloning process. However, you view consumption data only in a production org on the Digital Wallet Consumption Cards tab."
| Field | API name | Meaning |
|---|---|---|
| Units Consumed | unitsconsumed__c | Amount of entitlement consumed, for example credits or storage (GB). |
| Raw Usage | usagevalue__c | The usage before multipliers are applied. |
| Multiplier | multiplier__c | The multiplier recorded on the event. |
| Usage Type Developer Name | usagetypedevelopername__c | The usage type, such as Agentforce_StandardAction. |
| Is Billable | isbillable__c | Billable status, with a Billing Status Code. |
| Usage Business Env Type | usagebusinessenvtype__c | Production, Sandbox, or Scratch. |
| User ID | userid__c | Populated only for Employee Users using an Agentforce Employee Agent. |
The reference also lists a Usage Reporting Org Id. Documented report scenarios include consumption by agent (Root Resource Type = BotDefinition), by action (Resource Type = GenAiFunctionDefinition), by feature, by usage type, by sources, and by generative AI prompts (Resource Type = GenAiPromptTemplate).
How fresh is each source?
TenantEnrichedUsageEvent is a daily view. Help article How to Check and Aggregate Credit Consumption Details from TenantEnrichedUsageEvent (opens in a new tab) says: "Data is reflected in TenantEnrichedUsageEvent once per day. For real-time verification, please query the TenantBillingUsageEvent DLO from the Query Editor." The AI usage DMO is refreshed every five minutes according to the Salesforce blog, so it suits near-real-time analysis by feature or user. It still reports token counts, not the reconciled bill.
How can you report Agentforce Flex Credits per user?
Build a Data 360 report on TenantEnrichedUsageEvent grouped by User ID, and accept that it covers Employee Agent actions only. Create a Report on Usage by User ID (opens in a new tab) describes the report: Group Rows by User ID, with columns for Usage Type Developer Name, Resource ID or API Name, and Units Consumed. Help says that because the report is built directly on the DLO, "you don't incur costs."
The limit is in Help's own words. The field "is restricted to Employee Users using an Agentforce Employee Agent, meaning it only populates for authenticated internal employees interacting with internal-facing agents. It doesn't capture user identifiers for external customers, guest users, automation/agentic users, or participants using public-facing Service Agents."
| Who or what generated the usage | User ID populated? |
|---|---|
| Authenticated internal employee, Employee Agent, Agentforce_StandardAction | Yes |
| Authenticated internal employee, Employee Agent, Agentforce_CustomAction | Yes |
| External customers | No |
| Guest users | No |
| Automation or agentic users | No |
| Participants using public-facing Service Agents | No |
Help lists Agentforce_StandardAction and Agentforce_CustomAction as the Employee Agent events that carry the field. For any other usage type, report by agent, action or usage type.
Names, departments or cost centers are not on the event. Help says you can bring the standard User object in through the CRM connector and join on User ID, and that "This method is likely to incur costs." For Service Agents, guests or scheduled automation, report by agent, by action or by usage type, and do not promise finance a per-user chargeback the data cannot support.
Is sandbox Agentforce usage metered the same way as production?
No. The Flex Credits Rate Card (opens in a new tab), updated as of 30 November 2026, has a separate sandbox column, and "the Sandbox multiplier applies to pre-production environments, which include sandboxes as well as scratch orgs". A sandbox is still metered. For standard and custom actions its multiplier is lower than production, so a sandbox total understates the same volume in production.
| Usage type | Production | Sandbox and scratch org |
|---|---|---|
| Standard Action | 20 | 16 |
| Custom Action | 20 | 16 |
| Standard Voice Action | 30 | 24 |
| Custom Voice Action | 30 | 24 |
| Starter Prompts | 2 | 2 |
| Basic Prompts | 2 | 2 |
| Standard Prompts | 4 | 4 |
| Advanced Prompts | 16 | 16 |
| Help Agent Resolutions | 400 | 0 |
| IT and HR Employee Agent Resolutions | 400 | 0 |
The rate card says: "Usage types, tiers, and associated multipliers may be updated from time to time." Footnote: "For certain customers, the Agentforce Voice Minutes usage type may apply instead." Help adds that where both are enabled, Voice Minutes take precedence.
Limitation
A sandbox multiplier of 0 for the two resolution usage types applies to those usage types only. Actions in the same sandbox carry a multiplier of 16 on this rate card, and prompts carry the same multiplier as production.When is the same AI usage metered or unmetered?
It depends on who runs it and how. Metering for Agentforce and Generative AI Usage (opens in a new tab) says generative AI usage for Agentforce features "is typically metered and consumes credits", and can be unmetered only when the required conditions are met. The global conditions are the Standard user type, the Unmetered User-Based AI permission, and execution as the current user rather than an automated process user or another identity. Unmetered usage is limited to a maximum of 30 LLM calls per minute per user.
Help is explicit that a description of the use case is not enough: "A type of AI usage or a use case cannot be guaranteed as unmetered by a high-level description alone. The same type of AI usage may be metered or unmetered depending on whether the specific set of conditions are met." Its illustrative examples contrast a UI button that launches a prompt template for the current user, which is unmetered, with a Flow running as the Automated Process User, Scheduled Apex or batch, and "An Agentforce agent runs on a schedule to summarize cases", which are metered. Help also says that if a feature uses other services like Data 360, "credits can be still consumed for those services even if the AI usage is unmetered."
Does Data 360 sandbox usage follow a different billing rule?
This subsection is about Data 360 sandbox usage only. Billing Considerations for Data 360 Sandbox (opens in a new tab) says: "Usage generated by Data 360 sandbox orgs consumes production credits on the org the sandbox was created from." It adds that "Sandbox and production usage both appear on the production card in Digital Wallet", and that Data 360 sandbox multipliers are discounted from the production multipliers. Data streams replicated from production start ingesting, and consuming credits, immediately, so turn off the ones you do not need. Help states this for Data 360. This note does not extend it to Agentforce action usage.
How do you join the usage logs to the contract?
Read the numbers against the contract, because the price of a credit and the buying model are set there. Digital Wallet-Enabled Consumption-Based Products (opens in a new tab) lists the Flex Credits buying model as "Pre-purchased, pay-as-you-go, pre-committed, or unlimited", and points to the rate cards for sandbox. Confirm on the Order Form which rate card applies, whether prompts in your org still consume Einstein Requests, and whether Voice Minutes apply instead of Voice Actions. The Salesforce blog notes that some customers on the split model have prompts consuming Einstein Requests instead of Flex Credits, and says to check with the account executive.
- No rollover. The rate card says Flex Credits must be used before the Order End Date "and no rollover will be permitted". The pricing page says "Unused Flex Credits do not roll over into subsequent subscription terms."
- Overages. The pricing page says: "There is no overage penalty. If you exceed your entitlement, your rate is your contracted rate billed monthly in arrears. Prevent overages by using alerts in Digital Wallet."
- Alerts do not stop agents. The Salesforce blog says "Digital Wallet does not block execution when credits run out. Overages are billed at contracted rates." It describes a Consumption Threshold Alerts flow template and suggests thresholds of 75, 90 and 100 percent.
- List price is not your price. The pricing page shows "$500 USD/Per 100k Credits" and says it "is provided for information purposes only and is subject to change. Contact a sales representative for detailed pricing information." The cost of a credit in your org is in your contract.
How should you forecast Agentforce cost before rollout?
Forecast by usage type and production multiplier, then reconcile to Digital Wallet before the number becomes a budget. Token totals from a pilot are an input to the prompt estimate only. Action volume, voice, resolutions and Data 360 usage each need their own line.
Illustrative example · not a customer case
Illustrative arithmetic from the rate card, not a quote. 1,000 standard actions in a sandbox record 16,000 Flex Credits at the sandbox multiplier of 16. The same 1,000 actions in production are 20,000 at the multiplier of 20. A prompt call of 6,500 total tokens counts as 4 prompts; at the Standard Prompts multiplier of 4 that is 16 Flex Credits in either environment. Whether a given call is metered at all still depends on the conditions above.- 01Enable the telemetry before the pilot. Use the Digital Wallet consumption card and reports on TenantEnrichedUsageEvent. If you need token analysis by feature, enable Einstein Generative AI Audit & Feedback and the AI usage DMO early, because the Salesforce blog says audit logging is not backfilled.
- 02Classify the expected usage. Separate text actions, voice actions, prompts by tier, resolutions, and Data 360 usage. A custom action that makes async calls to Salesforce AI may add charges of its own.
- 03Apply the production multiplier from the current rate card, not the sandbox one. Say in the forecast whether the unmetered conditions will hold in production, for which users, and in which execution context. Scheduled and automated runs are metered in Help's examples.
- 04Build Digital Wallet reports by agent, by action and by usage type. Add the User ID report only for Employee Agent standard and custom actions, where the field is populated.
- 05Set consumption threshold alerts, and remember that they notify. They do not stop execution.
- 06Reconcile the estimate to Digital Wallet, and to the rate card and buying model on your Order Form, before anyone treats it as a budget.

Summary checklist graphic for this note.
Where does Synairo fit?
Synairo is two senior engineers in Warsaw. The company designs and builds Salesforce architecture and enterprise integrations, and an Agentforce rollout with its consumption reporting is that kind of work: which usage types the design will generate, which Digital Wallet reports answer finance, and where a per-user view is supported by the data. If you are preparing that budget, describe the agents, the users and the execution contexts on the contact page.
What are the short answers to common Flex Credit questions?
How can I report billable Flex Credit consumption per user for Agentforce?
Build a Data 360 report on TenantEnrichedUsageEvent grouped by User ID, with Usage Type Developer Name, Resource ID or API Name, and Units Consumed. User ID is populated only for authenticated employees using an Agentforce Employee Agent.
Is GenAIGatewayRequest the right object for Flex Credit billing?
No. It records LLM Gateway calls and supports token analysis. The Salesforce blog says the single source of truth for exact Flex Credit consumption is Digital Wallet.
Are tokens the same as Flex Credits?
No. Standard and custom actions are metered one per action, irrespective of tokens. Prompts are counted in 2,000-token chunks of total tokens. The rate card multiplier then converts each usage type into Flex Credits.
Is sandbox Agentforce usage metered the same way as production?
No. The rate card has a separate sandbox multiplier for sandboxes and scratch orgs. On the card updated 30 November 2026, actions are 20 in production and 16 in a sandbox, and prompts are the same in both.
What is Digital Wallet used for in Agentforce billing?
Checking actual consumption and metered usage. Salesforce Help points to Digital Wallet for both, and the Salesforce blog calls it the single source of truth for exact Flex Credit consumption.
What is TenantEnrichedUsageEvent, and what does Units Consumed mean?
It is the data lake object behind Digital Wallet reports, optimized for consumption reporting. Units Consumed is the amount of entitlement consumed, for example credits.
When is the User ID field populated on Digital Wallet usage events?
Only for authenticated internal employees using an Agentforce Employee Agent, on Agentforce_StandardAction and Agentforce_CustomAction events. Not for external customers, guest users, automation or agentic users, or public-facing Service Agents.
How are standard and custom Agentforce actions metered?
Each action called by the agent in a text conversation is metered as one action, irrespective of tokens. Voice conversations use voice action usage types. Utilities such as escalations, variables and topic transitions are not billed as actions.
How are prompt usage types metered?
In total tokens, input plus output, counted in 2,000-token chunks and rounded up. 6,500 total tokens count as 4 prompts.
How should I forecast Agentforce cost before rollout?
Classify usage by type, apply the production multiplier from the current rate card, state where unmetered conditions will hold, and reconcile to Digital Wallet and your Order Form before treating the figure as a budget.
What is the answer in one sentence?
Count actions and token chunks by usage type, price them at the production multiplier on your rate card, and treat Digital Wallet, not the GenAIGatewayRequest log, as the record of what was consumed.
The pages to re-read first are Flex Credits Billable Usage Types (opens in a new tab), the Flex Credits Rate Card updated as of 30 November 2026 (opens in a new tab), Create a Report on Usage by User ID (opens in a new tab), and Metering for Agentforce and Generative AI Usage (opens in a new tab).