Understanding Credit Consumption
Credit consumption in Agentforce depends on various factors, including the type of credits used, such as conversational or flex credits. It is essential to check what types of credits are being used and migrate to flex credits to enable modern features.
Additionally, it is crucial to note that the Agentforce default agent is being deprecated and replaced by Agentforce Employee Agent (AEA). Teams should check with their account executive for guidance on creating new agents and managing credits.
Creating a New Agent in Agentforce Studio
To create a new agent in Agentforce Studio, teams should switch to the new Agentforce builder and select the Employee Agent template. However, some teams may encounter issues with the employee agent template not being available in their org.
The root cause of the issue may be due to the deprecation of the Agentforce default agent and the limitations of the legacy agentforce builder. Teams should ensure they are using the new Agentforce builder and have the necessary licenses to create new agents.
Teams can resolve the issue by checking with their account executive and ensuring they have the necessary licenses to create new agents. They can also refer to the Salesforce documentation on Digital Wallet and billable usage to understand how to manage their credits effectively.
example.js
// Example code to monitor credits in Agentforce
console.log('Credit consumption: ' + creditsUsed);
// Check the type of credits used
if (creditsType === 'conversational') {
console.log('Migrate to flex credits to enable modern features.');
}
Best Practices for Managing Credits
To manage credits effectively, teams should follow best practices such as monitoring credit consumption, optimizing processes, and migrating to flex credits.
Heads up: Teams should ensure they have the necessary licenses to create new agents and manage their credits effectively.
Checklist for Deploying the Default Agent
- Monitor credit consumption in the consumption cards
- Check the type of credits used and migrate to flex credits if necessary
- Use the new Agentforce builder to create new agents
- Ensure necessary licenses to create new agents
- Optimize processes to reduce credit consumption
- Refer to Salesforce documentation on Digital Wallet and billable usage
What is the difference between conversational and flex credits?
Conversational credits are legacy credits, while flex credits are modern credits that enable new features.
How do I monitor credit consumption in Agentforce?
Credit consumption can be monitored in the consumption cards.
What is the Agentforce Employee Agent (AEA)?
The Agentforce Employee Agent (AEA) is the replacement for the Agentforce default agent.
How do I create a new agent in Agentforce Studio?
To create a new agent, switch to the new Agentforce builder and select the Employee Agent template.
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.