Skip to main content

In Salesforce Prompt Builder (we are using the Flex type to validate and extract data from PDFs/images, and update account record fields like cnic, name etc ), how can we track or monitor the specific credit consumption and costs associated with a single prompt execution? 

1 件の回答
  1. 9月21日 13:25

    There isn't a view inside Prompt Builder itself that shows the dollar cost of one specific execution in real time, but Salesforce does provide two official ways to monitor consumption. First, you can turn on Prompt Builder Usage and Feedback Metrics (currently in Beta): in Setup, go to Einstein Audit, Analytics, and Monitoring Setup and enable it. This surfaces invocation counts, latency, and feedback trends per prompt template, which helps you see how often a given Flex template is being called. Second, since Flex-type Prompt Builder executions are billed as generative AI usage (Einstein Requests, converted to Flex Credits per the Agentforce Rate Card), the actual metered consumption and cost accrual for your org is tracked in the Digital Wallet inside the Your Account app. There you will find consumption cards broken out by billable usage type, and you can set up overage alerts so you are notified before exceeding your allotment. The Digital Wallet aggregates usage over a billing period rather than showing a per-transaction receipt, so to correlate a specific extraction call with its consumption, cross-reference the timestamp of that execution against the Einstein Trust Layer audit trail (Setup, then Einstein Trust Layer) alongside the Digital Wallet totals for that day.

     

    Relevant docs: Set Up Prompt Performance Metrics in Prompt Builder (Beta) - https://help.salesforce.com/apex/HTViewHelpDoc?id=prompt_builder_enable_prompt_performance_metrics.htm ; Agentforce and Generative AI Usage and Billing - https://help.salesforce.com/s/articleView?language=en_US&id=ai.generative_ai_usage.htm&type=5 ; Einstein Requests Billable Usage Types - https://help.salesforce.com/s/articleView?id=ai.generative_ai_usage_einstein_requests.htm&language=en_US&type=5

     

    Assumption: I'm assuming your org has metered Einstein/Data Cloud usage enabled (standard for Flex-type Prompt Templates) and that you have admin access to Setup and the Your Account app. If your org instead uses a legacy unmetered Einstein license, Digital Wallet credit tracking may not apply, and the Usage and Feedback Metrics beta would be your main option for relative volume tracking.

0/9000