Understanding the Limitations of Setup Audit Trail
The Setup Audit Trail in Salesforce does track some changes made in Setup, but it does not include Prompt Templates and other Agentforce-related metadata.
Root Cause and Potential Solutions
The root cause of this issue is the lack of built-in monitoring capabilities for Agentforce in Salesforce. This requires teams to develop custom solutions to track their agent versions, topics, and actions.
One potential solution is to set up a batch job on a server that logs in periodically, pulls the metadata, and diffs it. Another option is to use a tool like elements.cloud to track Agentforce metadata.
Implementing a Custom Solution
batch_job.py
import requests import json # Login to Salesforce and retrieve Agentforce metadata # Diff the metadata and log any changes
Best Practices and Next Steps
Checklist for Implementing a Custom Solution
- Identify the Agentforce metadata to track
- Choose a custom solution, such as a batch job or a tool like elements.cloud
- Implement the custom solution and test it thoroughly
- Monitor the Agentforce metadata and log any changes
- Review and update the custom solution as needed
What is the best way to track Agentforce metadata?
The best way to track Agentforce metadata is to use a custom solution, such as a batch job or a tool like elements.cloud.
Can I use the Setup Audit Trail to track Agentforce changes?
No, the Setup Audit Trail does not include Prompt Templates and other Agentforce-related metadata.
How often should I run the batch job to track Agentforce metadata?
The frequency of the batch job depends on how often the Agentforce metadata changes. It is recommended to run the batch job at least daily.
What are the benefits of using a tool like elements.cloud?
Using a tool like elements.cloud can provide a more comprehensive and user-friendly way to track Agentforce metadata, and can also provide additional features such as version control and collaboration.
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.