Create, test, and submit an agent for review
Learn how to create a new agent or update a published one in Agent Builder, verify its behavior in the test panel, and submit it for governance review.
- Step 1: Agent & Prompt information: Define the agent and create its system prompt. In this step, you can perform either of the following:
- Enter the agent information and system prompt manually.
- Select Generate Agent Blueprint to generate the system prompt and recommended tools based on your requirements.
- Step 2: Tools & capabilities: Enable Web search and select the tools the agent is allowed to use.
- Step 3: Test & publish: Verify behavior in the test panel and submit a publish request for review.
The system scans the prompt automatically before routing the request to a reviewer.
For more information about Agent Builder and how the lifecycle works, see Agent Builder for AgentFlow at a glance.
For more information about writing an effective system prompt, see AgentFlow system prompt guidelines.
Prerequisites
Before you begin, confirm that:
- You must have the
ROLE_AGENT_AUTHORon the target tenant. For more information about how to get this role, see Assign Agent Builder roles to users. - At least one user on the tenant must have the
ROLE_AGENT_AUTHORrole (PUBLISH permission). Publishing requires an approver with PUBLISH permission. - The tools you plan to use must be in the tenant-approved tool catalog.
Step 1: Enter agent and prompt information
In this step, define the agent and create its system prompt. You can either enter the information manually or use Agent Blueprint to generate it from your requirements.
Enter agent and prompt information manually
Use this path when you are building a new agent manually from scratch.
- Open AgentFlow and go to Agent Builder.
- Select + Build new agent.
Figure 1. Start building a new agent - Under AGENT DETAILS, enter a name, description, and any relevant tags. These values appear in Discover Agents after the agent is published.
Figure 2. Create New Agent dialog with name, description, and tags fields Use the following rules when filling in the agent details fields:- Agent name: Letters, numbers, spaces, and
_ - ( ) . & `are allowed. - Describe your agent: Maximum 100 characters. The symbols
<and>are not allowed. - Tags: Letters, numbers, and hyphens only. Separate multiple tags with commas.
- Agent name: Letters, numbers, spaces, and
- Write the System prompt. The system prompt defines the agent's:
- Identity
- Objectives
- Tool usage rules
- Workflow
- Guardrails
- Output format
- Error handling behavior.
Figure 3. Agent editor showing Agent details, System prompt panel, and character limit For more information about structuring an effective system prompt, see AgentFlow system prompt guidelines.
- Select Save & continue.
After the agent is created, the Agent ID appears in the AGENT DETAILS section. Select the copy icon next to the Agent ID to copy it to your clipboard.
Generate a system prompt using Agent Blueprint
Follow these steps when you want AI to generate a first draft of the system prompt and select the required tools based on your requirements:
- Open Agentflow and select Agent Builder.
- Select + Build new agent and select Build new agent from scratch.
- Select Generate Agent Blueprint.
- Enter the required details in the following fields:
- Agent Name: Enter a clear, specific name that describes what the agent does.
- Short Description: Enter a brief summary of the main purpose of the agent and the benefit it provides to users.
- Describe your agent: Describe the role of the agents, the tasks the agent must perform, and the type of responses you need.
- Intended users: Specify the users or roles the agent is intended for
- Describe use cases: List the main scenarios or business tasks the agent should support.
- Constraints: Enter any limits or rules the agent must follow, such as read-only access, restricted tools, or response boundaries.
- Notes: Enter any additional instructions, preferences, or context that helps improve the generated prompt.
- Select Generate.
Agent Builder generates a system prompt draft based on the information you entered. On completion, the Generate agent blueprint pop-up appears.
- Review the generated system prompt and verify the details.
- Select See assumptions made to review the inputs used to generate the system prompt.
- Select Next.
- Review the list of MCP tools selected for the agent.
Agent Builder automatically selects tools based on your requirements. You can add or remove tools as required.
Each tool includes a confidence score of High, Medium, or Low.
- On reviewing all the details of the agent, select Done.
The Build an agent page appears.
-
Select Save & continue.
After the agent is created, the Agent ID appears in the AGENT DETAILS section. Select the copy icon next to the Agent ID to copy it to your clipboard.
To continue, see Step 3: Test & publish the agent
Step 2: Tools & capabilities
- [Optional] Enable Web search. Note: Enabling Web search during agent creation is not sufficient. End users must also enable Web search in their own settings before they can use this capability at runtime.
- Enable server and select each of the tools you want to add. The selected tools form the agent's allowlist — the agent cannot call tools outside this selection.Note: If you proceed without selecting any tools, Agent Builder displays a warning before you can submit for review. You can still proceed, but the agent will have no approved actions available at runtime.
Figure 4. Agent editor Tools and capabilities showing Web search and MCP server tools selection - Select Save & continue.
Step 3: Test & publish the agent
- Enter a prompt and review the streaming response. Note: If a violation is detected in the system prompt, the test run is blocked. Revise the prompt before testing again.
- Review the run summary after each test. It shows latency, tokens used, and tool calls for that run.
- Iterate on the prompt and tool selection as needed.
Figure 5. Agent editor Test & publish step with chat panel and execution log - Select Submit for review.
- Confirm the submission.
A Confirm submit for review dialog appears. Select Submit for review to proceed, or Back to return to the test panel.
The system automatically scans the system prompt. Two outcomes are possible:
- If no violations are detected, the agent transitions to Pending review state.
- If a violation is detected, the request is auto-blocked. You receive a notification with the scan result. Revise the system prompt and submit again when ready.
If you need to make changes after submitting, you can withdraw the pending request at any time. Withdrawing returns the agent to Draft state and unlocks the editor.
- If this agent already has a published version, that version remains live in Discover Agents while the new version is under review.
Update a published agent
Use this path when you want to revise an agent that is already published. An Agent Author (for their own agents) or an Agent Admin can initiate this. The published version remains live and available to users throughout the editing and review process.
- Log in to AgentFlow and go to Agent Builder.
- Locate the published agent and select the option to create a new version. Agent Builder creates a new draft version. The latest published version remains active in Discover Agents.
- Proceed to write the system prompt and select tools. See Step 2: Tools & capabilities.
Version history is maintained across all draft and published versions of the agent.
Result
The publish request is now in the reviewer queue. For more information about what each state means, see Agent states in Agent Builder.
For more information about what happens next, see Review and act on a publish request.
Validation steps
- Confirm the agent shows Pending review status in Agent Builder.