Configure a Component for Use in Setup with Agentforce
Add an AI-related description to your component to make it accessible to Agentforce in Setup. AI component descriptions are used only in orgs that have Setup with Agentforce enabled. For more information, see Setup with Agentforce.
When Setup with Agentforce is enabled in an org, the Setup agent can analyze and recommend custom components when creating a new Lightning page from a user utterance. For Agentforce to successfully analyze whether your custom component fits the requirements outlined in the user’s utterance, the component must contain an AI-related description of what it does as well as descriptions of its properties.
In the component’s js-meta.xml file, add the ai tag set at the top level. Specify the ai tag only once. The ai tag at the top level contains one description tag, and can contain multiple property tags. The description tag contains the AI-related component description.
Each property tag in the ai tag set contains the AI-related description for a single component property, and supports only the name and aiDescription attributes.
Define the component properties using the property tag in the targetConfig tag set just like usual.