Skip to main content

Create an AI Agent with AI

Create an AI Agent from a reviewed plan, check its knowledge and tool access, and test its behavior before publishing.

Use Create with AI to plan an Agent that answers questions or performs tasks. This example builds a procurement inquiry Agent that reads approved purchase request, order, and payment information.

Before You Start

Open the application with permission to add resources. Identify the Agent’s tasks, inputs, expected outputs, source records, and allowed actions. If it will use an existing Knowledge Source, verify its configuration and synchronization. Create a Knowledge Source with AI

Step 1: Open New Application Resource

In your application, click Add resource (+) to open New application resource.

In the Create with AI area, select AI agent. Click Show more if the option is not immediately visible.

Step 2: Describe Your Agent Requirements

Enter a description of the Agent you want to create.

Explain its responsibilities, the information it should use, and the expected response. State any limits on the actions it may perform.

Create a Procurement Inquiry Agent that takes a purchase request or order number. Use Procurement Knowledge and the approved procurement records to return the record ID, status, source, and missing details. Ask for clarification when the number is ambiguous. Use read-only tools.

Replace the example names with resources available in your application.

For better results, include the following details:

Detail

What to include

Agent name

A clear name describing its responsibility

Purpose

The business tasks it should support

Inputs

Questions, identifiers, files, or other information it will receive

Expected outputs

The information and response format it should return

Knowledge

Existing Knowledge Sources it should use

Tools

Actions or queries needed to complete its tasks

Boundaries

Actions it should avoid and situations requiring clarification

Click Start with AI to submit your request.

Step 3: Clarify Resources and Expected Behavior

AI may ask questions before preparing the implementation plan.

For example, it may need to clarify:

  • Which Knowledge Source or application resource to use.

  • How users identify a purchase request, order, or payment.

  • Whether the Agent needs tools in addition to knowledge retrieval.

  • What information the response should contain.

  • Whether the Agent is allowed to change business data.

Answer using the actual resource names and business requirements.

If required resources are missing or unavailable, resolve that before confirming creation.

Step 4: Review the Implementation Plan

AI prepares an Implementation Plan based on your requirements and any clarifications.

Review the proposed configuration carefully.

Review area

What to check

Agent identity

The name and description clearly explain its purpose

Instructions

Responsibilities, response requirements, and limits match your needs

Inputs and outputs

Any proposed variables support the intended use

Knowledge

The correct Knowledge Sources are proposed

Tools

Each proposed tool is necessary and appropriate

Access configuration

Resource references and execution settings are suitable

Remaining setup

Any configuration that still requires attention is identified

For the inquiry-only example, check that the plan does not include tools for creating, updating, or deleting records or starting workflows.

If changes are needed, explain them in the conversation.

Review the revised plan before proceeding.

The AI Agent is created only after you confirm the Implementation Plan.

Step 5: Confirm and Create the Agent

When the plan meets your requirements, confirm it in the AI conversation.

AI creates the Agent based on the confirmed plan. Follow any additional setup prompts shown in the interface.

When creation is complete, open the Agent using the resource link or entry provided.

Step 6: Review the Agent Configuration

Open the Agent and check the generated settings before testing.

Persona & Prompt

Review the Agent’s instructions. Confirm that they clearly define:

  • Its role and responsibilities.

  • The information it should use.

  • How to handle missing or ambiguous information.

  • The expected response format.

  • Any restrictions on actions.

Variables

If input or output variables have been configured, check their names, types, and intended use.

Knowledge

Verify that the correct Knowledge Sources are connected and that the required content is available.

Tools

Check each tool’s target resource, parameters, permitted operations, and execution credentials. To enforce read-only behavior, configure tool access for retrieval only.

Step 7: Test the Agent

Select Test run in the Agent editor. Use known records in a test scenario and check each response against the source.

  1. Ask for a known purchase request by ID. Compare its status and any cited source with the request.

  2. Ask without an ID or use an ambiguous ID. Check whether the Agent asks you to clarify. For a missing record, check that it reports what it could find.

  3. Check which knowledge or tools the Agent used. If an answer links a request to an order or payment, verify the link using actual source values. Check that the Agent stays within the permitted operations.

The Agent editor toolbar showing Test run and Publish.

Step 8: Publish the Agent

After the configuration and tests pass, use Publish in the Agent editor. Configure the intended Copilot or workflow connection separately and verify that it can call the published Agent. Choose an Agent integration

Continue Refining with Ask AI

Use Ask AI to reopen the saved conversation. Describe the change, review the result, and retest the affected cases before publishing the update.

Did this answer your question?