Skip to content

Commit 04a2e9f

Browse files
authored
Merge pull request #314545 from leijgao/release-microsoft-discovery
Add v1 to v2 transition how-to guides for Microsoft Discovery
2 parents 24201c2 + c93d401 commit 04a2e9f

9 files changed

Lines changed: 556 additions & 3 deletions

articles/microsoft-discovery/concept-v1-to-v2-transition-guide.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The guiding principles for the transition are:
3131
| Workspaces | No | Yes | Version-scoped |
3232
| Projects | No | Yes | Tied to workspace version |
3333
| Agents | No | Yes | v2 backend and behavior changes |
34-
| Tools | Yes | Yes | v2 compatibility |
34+
| Tools | No | Yes | Must be redeployed under v2; v1 tools can't be retained |
3535
| Bookshelves / Knowledge Base | No | Yes | No cross-version references allowed |
3636
| Data Containers | No | N/A | Deprecated in v2; replaced by Storage Containers |
3737
| Data Assets | No | N/A | Deprecated in v2; replaced by Storage Assets |
@@ -71,9 +71,9 @@ Agents must be recreated under v2.
7171
7272
### Discovery Tools
7373

74-
You must redeploy Tools under v2.
74+
You must recreate Tools under v2. v1 tools can't be retained or referenced by v2 resources.
7575

76-
**Reason**: Although Tools remain unchanged between v1 and v2, v2 resources require Tools to be redeployed in order to reference and use them.
76+
**Reason**: v2 resources can only reference tools deployed within v2. Although tool functionality doesn't change between v1 and v2, you must redeploy each tool in your v2 workspace.
7777

7878
### Bookshelves / Knowledge Base
7979

@@ -168,4 +168,6 @@ The v1 to v2 transition is designed to:
168168

169169
## Related content
170170

171+
- [Collect Microsoft Discovery v1 resource configurations](how-to-collect-v1-configurations.md)
172+
- [Recreate Microsoft Discovery resources in v2](how-to-recreate-v2-resources.md)
171173
- [What is Microsoft Discovery?](overview-what-is-microsoft-discovery.md)
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
---
2+
title: Create agents in Microsoft Discovery
3+
description: Learn how to create prompt agents and workflow agents in Microsoft Discovery using Discovery Studio and the Foundry UI.
4+
author: leijgao
5+
ms.author: leijiagao
6+
ms.service: azure
7+
ms.topic: how-to
8+
ms.date: 04/09/2026
9+
10+
#CustomerIntent: As a researcher or scientist, I want to create agents in Microsoft Discovery so that I can automate scientific research tasks and multi-step workflows.
11+
---
12+
13+
# Create agents in Microsoft Discovery
14+
15+
Microsoft Discovery supports two agent types: prompt agents and workflow agents. You can author agents through the Discovery Studio UI or copy them from other projects.
16+
17+
This article walks you through each authoring method. Choose the approach that best fits your workflow and team needs.
18+
19+
## Prerequisites
20+
21+
- An active [Azure subscription](https://azure.microsoft.com/free/).
22+
- A deployed Microsoft Discovery workspace with at least one project. For setup instructions, see [Get started with Microsoft Discovery infrastructure](quickstart-infrastructure-portal.md).
23+
- A chat model deployment configured at the workspace level. For details, see [Create a chat model deployment](quickstart-infrastructure-portal.md#5-create-chat-model-deployment).
24+
25+
## Create a prompt agent in Discovery Studio
26+
27+
A prompt agent is a declaratively defined agent that combines model configuration, instructions, tools, and natural language prompts to drive behavior. You can configure a prompt agent with knowledge bases for retrieval-augmented grounding and attach tools such as Microsoft discovery tool, code interpreter or Model Context Protocol (MCP) tools. Use the form-based experience in Discovery Studio to create one.
28+
29+
1. Sign in to [Microsoft Discovery Studio](https://studio.discovery.microsoft.com/).
30+
31+
1. Select the **Projects** tab in the left navigation pane and open your project.
32+
33+
1. In the **Resources** pane, select the **+** button next to **Agents**, then select **Create new agent**.
34+
35+
1. In the **New Agent** dialog, select **Agent** as the type.
36+
37+
1. Enter a **Name** and **Description** for the agent. The name serves as the agent's unique identifier within the project. Other agents and workflows reference it by this name.
38+
39+
1. Under **Chat model**, select your workspace-level model deployment.
40+
41+
1. Enter the agent **Instructions**. Instructions are natural language prompts that define the agent's behavior, persona, and reasoning approach.
42+
43+
1. (Optional) Attach tools to give the agent access to external capabilities:
44+
45+
1. Expand the **Tools** section and select the search box. A dropdown list shows all available tools in your workspace. Select the checkbox next to each tool you want to attach.
46+
47+
:::image type="content" source="media/how-to-agent-creation/agent-creation-tool-selection.jpg" alt-text="Screenshot showing the tool selection dropdown with available tools listed in the agent creation form." lightbox="media/how-to-agent-creation/agent-creation-tool-selection.jpg":::
48+
49+
1. (Optional) If you want the agent to ask for user approval before running a tool, select the **Confirm before running tool** checkbox. When this option is enabled, the agent pauses and prompts the user for confirmation each time it invokes the tool during a conversation.
50+
51+
:::image type="content" source="media/how-to-agent-creation/agent-creation-tool-confirmation.jpg" alt-text="Screenshot showing the Confirm before running tool checkbox in the agent creation form." lightbox="media/how-to-agent-creation/agent-creation-tool-confirmation.jpg":::
52+
53+
1. Select **Done** to save your tool selections.
54+
55+
1. (Optional) Connect knowledge bases for retrieval-augmented grounding:
56+
57+
1. Expand the **Knowledge Bases** section. A table lists all available knowledge bases with their name, associated bookshelf, and description. Select the checkbox next to each knowledge base you want the agent to use for grounding its responses.
58+
59+
:::image type="content" source="media/how-to-agent-creation/agent-creation-knowledge-base-selection.jpg" alt-text="Screenshot showing the knowledge base selection table with available knowledge bases in the agent creation form." lightbox="media/how-to-agent-creation/agent-creation-knowledge-base-selection.jpg":::
60+
61+
1. Select **Create agent**.
62+
63+
Each save creates a new immutable version with full history. You can test the agent by typing `@AgentName` in an investigation chat.
64+
65+
## Copy a prompt agent from another project
66+
67+
You can reuse prompt agents across projects by copying them from an existing project.
68+
69+
1. Sign in to [Microsoft Discovery Studio](https://studio.discovery.microsoft.com/).
70+
71+
1. Select the **Projects** tab and open the target project where you want to add the agent.
72+
73+
1. In the **Resources** pane, select the **+** button next to **Agents**, then select **Copy from project**.
74+
75+
1. Select the source project that contains the agent you want to copy.
76+
77+
1. Select the agent to copy and confirm the operation.
78+
79+
The copied agent appears as a new agent in your target project. You can edit its instructions, tools, and settings independently of the original.
80+
81+
## Create a workflow agent
82+
83+
A workflow agent orchestrates multiple prompt agents through a defined sequence of actions. Creating a workflow agent requires two steps: define the agent in Discovery Studio, then build the action flow in the Foundry UI.
84+
85+
### Define the workflow agent in Discovery Studio
86+
87+
1. Sign in to [Microsoft Discovery Studio](https://studio.discovery.microsoft.com/).
88+
89+
1. Open your project from the **Projects** tab.
90+
91+
1. In the **Resources** pane, select the **+** button next to **Agents**, then select **Create new agent**.
92+
93+
1. In the **New Agent** dialog, select **Workflow** as the type.
94+
95+
1. Enter a **Name** and **Description** for the workflow agent.
96+
97+
1. Select **Create agent**.
98+
99+
### Edit the workflow in Foundry UI
100+
101+
After you create the workflow agent in Discovery Studio, use the Foundry UI canvas to define the action flow.
102+
103+
1. In Discovery Studio, select the workflow agent you created to open its details page.
104+
105+
1. Select the **Open in Foundry** link to open the workflow in the Foundry visual canvas editor. All changes you make in Foundry are synced back to Discovery.
106+
107+
:::image type="content" source="media/how-to-agent-creation/agent-creation-workflow-edit.jpg" alt-text="Screenshot showing the workflow agent details page with the Open in Foundry link highlighted." lightbox="media/how-to-agent-creation/agent-creation-workflow-edit.jpg":::
108+
109+
1. In the Foundry workflow canvas, add actions to define the execution flow. Common actions include:
110+
111+
| Action | Purpose |
112+
| --- | --- |
113+
| **SetVariable / SetMultipleVariables** | Initialize or update workflow variables |
114+
| **InvokeAzureAgent** | Invoke a prompt agent by name with argument bindings |
115+
| **SendActivity** | Send status messages to users during execution |
116+
| **ConditionGroup** | Add if/else branching based on variable expressions |
117+
| **Question** | Pause for user input (human-in-the-loop) |
118+
| **GotoAction** | Jump to a previous action for bounded iteration loops |
119+
| **EndConversation** | Terminate workflow execution |
120+
121+
1. Connect actions to create your orchestration pattern. The Foundry canvas supports sequential pipelines, conditional routing, iterative loops, and human-in-the-loop approval gates.
122+
123+
1. Save the workflow. Each save creates a new immutable version.
124+
125+
You can test the workflow by typing `@WorkflowName` in an investigation chat within Discovery Studio.
126+
127+
## Related content
128+
129+
- [Microsoft Discovery agents](concept-discovery-agent.md)
130+
- [Agent types in Microsoft Discovery](concept-discovery-agent-types.md)
131+
- [Quickstart: Get started with agents and investigations](quickstart-agents-studio.md)

0 commit comments

Comments
 (0)