AI Prompt Templates
Information valid from AMI version 8.0 SP24 (24.2)
Summary
The AI Prompt Templates configuration option lists all the Prompt Templates available in your system.
These Prompt Templates are assigned to Text attributes and used to generate prompts for AI generated values.
Gadget Action Menu Items
Create / Edit Prompt Template
Both these options allow you to set or change the options for an AI Prompt Template.
Refresh
Clears the Filter field.
Editing AI Prompts
AI Prompt
Shows the Name, Prompt and Description of the Prompt Template.
Prompt is a combination of natural language and placeholders for Agility information. The placeholders are resolved when a request is made to generate a value, so a placeholder for an attribute will resolve to the value of that attribute, just like an embedded reference.
Common placeholders are:
- $me() - the name of the current object instance.
- $ot() - the name of the object's object type.
- $s() - the attributes in the set of the current object's object type
If $s() has a specific value, for example $s(23), then the attributes in the set with that ID will be resolved. - $a() - the attributes that have values on the current object instance.
If $a() has a specific value, for example $a(23) then attribute with that ID will be resolved.
You can specify attributes or sets by their name if you replace the ID number with the "id": "value" parameter. For example:
$a("id": "AI Word Count")
Attribute's values are prefixed with their attribute name, unless you add the "prefix": "off" parameter. For example:
$a("id": "AI Word Count", "prefix": "off")
$s("prefix": "off")
You can see how any combination of object instance and AI prompt template will resolve by checking the AI tab of the Attribute Editor.
Examples
Template - Write a 50-word description of $me() with $a()
Prompt - Write a 50-word description of Super Hat with Name: Super Hat, Features: Stylish, Blue, Brim, Summary: This hat is blue and has a brim and is stylish
Linked Attributes
This tab lists the names and IDs of attributes that have been set to use this AI Prompt.