Specialized agents are custom agents you configure to perform specific tasks in Optimizely Opal. An agent's behavior is determined by its prompt template (instructions it follows), tools (actions it can take), and variables (inputs provided at runtime).
Create a specialized agent when you want something that completes a single, well-defined task. For information on each component and when to use each option, see Specialized agents fundamentals and best practices.
Access your agents
- Go to home.optimizely.com.
- Select your organization.
-
Click Opal.
-
Click Agents.
-
Click the Your Agents tab.
Create a specialized agent from scratch
Initial configuration
Complete the following steps to name and describe your specialized agent.
- Follow the steps in the Access your agents section.
- Click Add Agent.
- Select Specialized Agent.
- Enter a Name.
-
Enter a unique Id. The Id (prefixed with
@) invokes the specialized agent. Ensure the Id displays as Available. If the Id is already in use, Opal suggests a few available options instead. Click a suggestion to autofill the Id field. - Add a Description.
Configure interaction mode
Specialized agents support two interaction modes, single-shot and multi-turn, each described in the following configuration steps:
- Toggle Support multi-turn conversation on or off. Default is Off. Single-shot agents run once and return a result. Multi-turn agents remain active for continued back-and-forth conversation.
- On – Multi-turn mode. The agent stays active in Opal Chat for follow-up conversation.
- Off – Single-shot mode. The agent runs once and returns a final result.
- Toggle Trigger from Chat on or off. Default is On.
- On – The agent is visible in Opal Chat and available to invoke.
- Off – The agent does not display in Opal Chat and users cannot invoke it from there. It is still available in workflow agents.
Configure the prompt template
The prompt template defines the instruction set the specialized agent applies every time it runs.
-
Enter your Prompt Template. For guidance on structuring your prompt, see Write prompts for specialized agents.
-
If you toggled Support multi-turn conversation on, expand Multi-turn Conversation Settings.
- (Optional) Update the System Prompt.
- Set the Memory Token Limit (the maximum amount of conversation history the agent retains) by moving the slider or entering a value. For guidance on which limit to choose, see Specialized agents fundamentals and best practices.
Define input variables (optional)
For information on variables, see Specialized agents fundamentals and best practices. To create variables, complete the following:
-
Click Add Variable.
- Select the Type (String, Boolean, Number, Datetime, Object, or File).
- Toggle Accept multiple values on to let users add multiple values for a single variable. This is helpful for batch operations or multi-file workflows.
- Enter or use the arrows to select the Minimum items. If you select Required?, the Minimum items must be at least one.
- (Optional) Enter or use the arrows to select the Maximum items. Leave this empty for no upper limit.
- Enter a Name. Variable names are case-insensitive and cannot be duplicated.
- Add a Description.
- (Optional) Select Required? if users must provide this variable each time the specialized agent runs.
-
Click Save variable.
Variables not referenced in the prompt display a Not in use message.
If you try to Save the specialized agent with variables still not in use, an alert displays. Save the specialized agent anyway, or return to the prompt and add the variable.
Define tools (optional)
If you referenced tools in the prompt without adding them to the agent, add them automatically or manually.
Automatically
Select Enable automatic tool prediction to let Opal predict and add relevant tools based on user queries and conversation history.
Opal merges predicted tools with manually configured tools.
Manually
To manually select which tools the agent can use, complete the following steps:
- Click Add tool.
-
(Optional) Click a tool to see its description.
- Select the checkboxes for the tools you referenced.
- (Optional) Select the checkbox next to a section heading to add all tools in that section.
-
Click Add selected.
For information on tools, see Tools overview.
Select the inference level
The inference level controls how extensively Opal reasons through the prompt before generating a response. Higher levels improve output quality for complex tasks but takes longer to complete.
- Click the Inference Level drop-down list.
- Select an Inference Level.
-
(Optional) Filter the list.
Add files (optional)
Upload files in the Files section for the specialized agent to reference each time you invoke it. For example, files can include an output template or data the specialized agent needs to reference.
- Expand the Files section.
-
Click Add File.
- Select the relevant files from your computer.
- Click Upload.
See Supported file types in Optimizely Opal.
Configure output
Specify the format of the output the specialized agent returns.
- Expand the Output section.
- Select the Output Data Type.
- (Optional) Enter a Description explaining the expected output of the prompt. The output description is useful when you use this agent within a workflow agent.
- (Optional) Enter the JSON schema for the output in the Output Schema field, if you selected JSON as the Data Type in step 2.
Save and test
Save the agent to finish creating it, then run an optional test to verify the configuration.
- Click Save to create your specialized agent.
- (Optional) Click Test Run to test your specialized agent. See Test an agent.
Your specialized agent is ready to use.
Add preferred output examples (optional)
After running your specialized agent, add examples as preferred outputs to help Opal evaluate its responses. Add up to five examples. For details on adding and managing examples, see Preferred output examples.
Next steps
- See Manage specialized agents for information on editing and deleting agents.
- See Write prompts for specialized agents for guidance on structuring your prompt.
- See Default agents overview for a list of agents automatically available in your Opal instance.
If you use Opti ID, administrators can turn off generative AI in the Opti ID Admin Center. See Turn generative AI off across Optimizely applications.
Article is closed for comments.