When invoking a Prompt Template from a Platform Event-Triggered Flow, administrators may observe that no Flex Credits are consumed in the Digital Wallet or Einstein consumption screens, despite successful generative AI executions and prompt predictions.
This is expected behavior and is working as designed. Flex Credit consumption is entirely dependent on the metering user context at the time the prompt is processed.
Platform Event-Triggered Flows allow administrators to specify a running user context.
Unmetered Scenario: If the Platform Event Flow is configured to "Run As" a specific user, and that user is assigned the Unmetered AI Usage Permission Set License, the LLM call is processed under that user's context. Consequently, Flex Credit consumption is bypassed. This applies through the full chain:
Platform Event Flow (set runs as user with an unmetered license user) → invokes any Invocable Process → calls an Autolaunched Flow (runs in the same unmetered user context) → calls a Prompt Template Action (runs in the same unmetered user context).
Metered Scenario: If the prompt is processed under a user who does not have the Unmetered AI Usage license, or if it runs as a generic system user, the usage will be metered and Flex Credits will be consumed.
To ensure your metering aligns with your expectations, review the "Run As" user specified in the Platform Event-Triggered Flow settings and check their assigned Permission Set Licenses.
Note: Unmetered usage is limited to a maximum of 30 LLM calls per minute per user. This limit is not currently technically enforced in the product.
Please refer: Metering for Agentforce and Generative AI Usage
Unmetering Logic for Global Unmetering
Configure User Permissions for Unmetered Licenses
Metering for Agentforce and Generative AI Usage
005460511

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.