Prajvis logoPrajvis
Agents

Sub-agents and profiles

Let an agent give work to other agents, and add profiles with their own instructions and model.

An agent can give part of its work to other agents. There are two ways to set this up:

TypeWhat it isUse it when
Delegate agentA different agent in your workspace.You already have an agent for that work, for example a billing agent.
Sub-agent profileA profile that you add inside this agent. It has its own name, description, instructions, and model.You want a focused helper that only this agent uses.

The work of a delegate or a profile shows as a sub-thread. See Sub-threads.

  1. Open the agent and select the Settings tab.
  2. In the Sub-agents section, find Delegate Agents and select Edit.
  3. In Add agent, search for the agent and select it.
  4. Select Save.
The Delegate Agents editor with the Add agent search box and Billing Analyst in the list

The agent can now ask the delegate agent for help. For example: Ask Billing Analyst to check the proration on invoice INV-20418.

Add a sub-agent profile

  1. In the Sub-agents section, select Add sub-agent.
  2. Enter a Name, for example refund_reviewer.
  3. Enter a Description. The main agent reads the description to decide when to use the profile.
  4. Enter the Instructions of the profile.
  5. Select a Provider and a Model.
  6. Optional: select a Thinking level.
  7. Optional: select Backup models and add backup models for the profile. See Add backup models.
  8. Optional: turn on Hidden profile. The agent does not give work to a hidden profile by itself. You can still select the profile in the message box.
  9. Select Add.
The Add sub-agent dialog with the name, description, instructions, provider, model, and thinking fields

To change a profile, select the edit button on the profile. To remove it, select the delete button.

The Sub-agents section with one profile, its model, and the swap, edit, and delete buttons

Swap a profile with the main agent

You can make a profile the main agent, and make the main agent a profile.

  1. In the Sub-agents section, find the profile.
  2. Select the Swap with main icon on the profile.
  3. Read the message and select Swap.

The names do not change. The description, the instructions, the model, and the backup models move between the main agent and the profile.

Use a profile directly

In a thread, select the profile menu in the message box (it shows Default). Under Profile, select the profile. Your next messages go to that profile instead of the main agent. To go back, select Main agent.

You can also select a profile for a scheduled task. See Schedule a task.

On this page