Artificial Intelligence
Dive into the best practices for using Artificial Intelligence to manage your Salesforce implementation!
Table of Contents
Introduction
Metazoa has made a deep investment in Artificial Intelligence (AI) capabilities for managing complex Salesforce environments with our Snapshot product. While Salesforce has done a great job making AI accessible for end users in sales and marketing, Metazoa has focused on using AI to help Salesforce administrators, developers, and architects. These new AI capabilities complement our core mission of removing technical debt, documenting complexity, and optimizing security perfectly. This whitepaper presents the best practices for using all the new AI powered capabilities in our Snapshot product.
AI Security
AI Preferences
- Don’t Use OpenAI Services
- Use Metazoa Free OpenAI Key
- Use Your Corporate OpenAI Key
- Calculating SOQL Filters: Unlimited Use
- Explaining Migration Errors: Unlimited Use
- Explaining Deployment Errors: Unlimited Use
- Explaining Metadata Assets: Unlimited Use
- Metadata Studio Prompt Engineering: 50 Uses / Individual
- Metadata Studio Prompt Automation: 5 Uses / Individual
- Intelligent Search Assistant: 100 Uses / Individual
- Description Enrichment: 100 Uses / Individual
SOQL Filters
There are half a dozen places in Snapshot where the user can select data records. For example, when building a new dataset for data migration you might select parent objects. Records can be selected in many ways, but the most powerful option is to create a SOQL filter that finds the records. However, SOQL must conform to syntactical rules that are hard to remember. Now there is an option to type in a textual description of the record filter and have AI create the SOQL string. Simply click the Create Filter button and this brings up the interface below. You can interactively test the SOQL filter and make sure you are retrieving the desired record set.
Explaining Errors
The deployment errors returned by the Metadata API are often difficult to understand. Now, Snapshot can use AI to explain metadata deployment errors. In many situations, the Intelligent Assistant can both explain the error message and suggest the correct solution. In the screenshot below, metadata deployment errors were encountered, they are visible at lower right. Right-click and select Explain Error Messages to bring up the Error Explanation interface.
The data migration tools will also explain errors and suggest solutions. Just right-click the error message returned in the Migrate Datasets application to bring up the Error Explanation interface.
Explaining Assets
There are many places in Snapshot where the user can view metadata assets. There are XML assets like Custom Objects and text-based assets like Apex Classes. Now, when working with an asset, you can right click and select Explain Asset. This brings up the Explain Asset interface when you can select a prompt to run on the asset.
- Automated Documentation
- Best Practices
- Compliance Review
- Functional Specification
- Technical Debt
Metadata Studio
Metadata Studio is a powerhouse prompt engineering platform designed for org management and prompt automation. We supply 60 default prompts that Salesforce administrators and developers can run and customize. You can also create entirely new prompts and share them with your team. The first tab in metadata studio is easy to use. Just select any prompt at left and click the submit button at lower right.
The second tab is Prompt Engineering where you can create and modify these prompts. Prompts are composed of Messages, and Messages are composed of Content. A message can be created for the System, a User, or the Assistant. Prompts must start with the system message which is followed by any number of user and assistant messages in that order. Here is the content editing interface, below:
Here are the options on the right-hand side of the dialog for using automated prompts. All the output from the prompt can be combined into a Single Report, or you can save Multiple Reports, one for each prompt. The CSV output of each prompt can also be assembled into a Table Report. When the prompts contain metadata assets, this information can be saved as a local Developer Project. You can also deploy this information immediately with the Metadata Deployment option. Lastly, when the prompts contain data records, this information can be saved for Dataset Migration. In this manner, the powerful Snapshot tools for Metadata Deployment and Data Migration are directly integrated into the Prompt Engineering platform.
Intelligent Search
Description Enrichment
Our latest application of AI technology can be found in the Description Enrichment report. This application gathers information from the 160 metadata types that have a description field. You can identify assets that need descriptions, and better yet, you can edit the descriptions right from the report, review the changes, and deploy the new descriptions immediately.
Description Enrichment also includes a sophisticated capability to generate new descriptions using AI. The end user can select from a variety of prompts or create their own. This allows different prompts to be used for each metadata type. Lastly, Description Enrichment allows the selection of multiple metadata assets and the automatic creation of descriptions for all of them. Again, these changes can be carefully reviewed and deployed with our deployment tooling inside the report.
Conclusion
There you have it. Metazoa wants to revolutionize org management with AI and prompt engineering. This white paper has discussed how we use AI with our administrative thinking partner Intelligent Search and our prompt engineering platform Metadata Studio to document the org, remove technical debt, and optimize security for administrators and developers. This technology is delivered in a Zero Trust security environment that companies can deploy with confidence.