Understanding the Discrepancy
When a community member asked about this issue, it sparked a discussion on the expected behavior of credit consumption in Agentforce. The question centered around whether the observed discrepancy was normal, given the different credit multipliers used in sandbox and production environments.
According to the community discussion, the sandbox environment should consume credits at a rate of 80% compared to production, which would imply a 20% variance. However, the observed discrepancy in this case was significantly larger than that.
The root cause of this discrepancy could be attributed to several factors, including differences in the indexing process, variations in the PDF files uploaded, or additional load and secondary actions in the production environment.
Troubleshooting Steps
To troubleshoot this issue, it is recommended to start by checking the Digital Wallet for a detailed breakdown of credit consumption. Additionally, ensuring that the PDF samples used in both environments are identical (apples to apples) can help identify any discrepancies.
If the issue persists after these initial checks, it may be necessary to consult with Salesforce support to walk through possible issues or reasoning for the extra consumption.
Official Documentation and Calculators
While there may not be an official calculator or spreadsheet that explains credit consumption in detail, especially for file ingestion and indexing, reviewing the available documentation and reaching out to support can provide more insight into the specific factors affecting credit consumption in each environment.
Example Query
SELECT * FROM DataLibrary WHERE FileType = 'PDF'
Conclusion and Next Steps
In conclusion, discrepancies in Agentforce credit consumption between sandbox and production environments can occur due to various factors. By following the troubleshooting steps outlined and consulting with Salesforce support when necessary, teams can better understand and manage their credit consumption.
Troubleshooting Checklist
- Check the Digital Wallet for a detailed breakdown of credit consumption
- Ensure PDF samples used in both environments are identical
- Review available documentation for insights into credit consumption
- Consult with Salesforce support for further assistance
- Monitor credit consumption regularly to identify potential discrepancies early
What is the expected credit consumption rate in sandbox compared to production?
The sandbox environment should consume credits at a rate of 80% compared to production.
How can I troubleshoot discrepancies in credit consumption?
Start by checking the Digital Wallet and ensuring PDF samples are identical, then consult with Salesforce support if necessary.
Is there an official calculator or spreadsheet for estimating credit consumption?
While there may not be an official calculator, reviewing available documentation and consulting with support can provide more insight.
What are some common factors that can affect credit consumption in Agentforce?
Differences in indexing processes, variations in uploaded files, and additional load or secondary actions in the production environment can all impact credit consumption.
Need help shipping this in production?
Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.