Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this tutorial, you create a shared session, set up a small set of tasks, start the Discovery Engine, and observe how the Discovery Engine executes your work autonomously. By the end, you have a completed shared session with results that were planned, executed, and validated using cognition.
Time to complete: 30-45 minutes (including wait time for cognition to execute)
Prerequisites
Before starting this tutorial, verify you have:
- Access to Discovery Studio in your browser
- A Microsoft Discovery workspace with a project created
- Project contains default chat model deployment. The Discovery Engine requires this model for task validation.
Create an agent as part of this tutorial. You don't need prior agent setup.
- Create an agent for the tutorial
- Create a new shared session
- Add a root task with a broad objective
- Add two child tasks with specific steps and validation requirements
- Start the Discovery Engine and observe cognition at work
- Review validation outcomes and final result
Step 1: Create an agent
Before cognition can execute tasks, your project needs at least one agent. For this tutorial, create a prompt agent that can answer scientific questions.
- In Discovery Studio, navigate to your project.
- Select Resources, then in Agents, select Add Agent, then select Create new agent.
- Fill in the values:
| Field | Value |
|---|---|
| Name | TutorialScienceAgent |
| Description | A general-purpose agent that answers scientific questions about chemistry, biology, and physics. |
| Model | Select an available model (for example, gpt-5-4 (gpt-5.4)) |
| Instructions | You're a knowledgeable science assistant. Provide clear, accurate, and well-structured answers to scientific questions. Include specific data points, values, and explanations where relevant. When asked to compare or analyze, organize your response with clear sections. |
- Leave Enable plan confirmation unselected.
- Don't select any tools.
- Don't select any knowledge bases.
- Select Create Agent.
Your agent is now available in the project. Cognition can assign it to tasks.
Tip
For more information on agent configuration options, see Discovery Agent concepts and the agents quickstart.
Step 2: Create a shared session
- Open Discovery Studio and navigate to your project.
- In Shared Sessions, select New Shared Session.
- Type in a friendly name for the shared session: "Tutorial: Water molecule analysis".
- Confirm the Discovery agent is selected.
- Submit the request.
Your shared session is now ready. It has no tasks yet.
Step 3: Create the root task
The root task describes your overall objective. Cognition uses it as the anchor for the entire shared session.
- In your shared session, select the Tasks tab.
- Select New task.
- Fill in the fields:
| Field | Value |
|---|---|
| Name | Investigate the properties of water (H2O) |
| Shared Session | Select Tutorial: Water molecule analysis |
| Description | Provide a comprehensive overview of the water molecule, including its chemical structure, key physical properties, biological importance, and any notable anomalous behaviors compared to similar molecules. Synthesize findings from the child tasks into a final summary. |
| Validation requirements | Summary covers chemical structure, physical properties, and biological importance. At least one anomalous property of water is explained |
- Select Submit.
The task appears in your shared session with New status.
Step 4: Add child tasks
Now add two child tasks that break the root objective into specific pieces of work. These tasks feed into the root task.
Child task 1: Chemical structure
- Select New task.
- Fill in the fields:
| Field | Value |
|---|---|
| Name | Describe the chemical structure of H2O |
| Shared Session | Select Tutorial: Water molecule analysis |
| Description | Explain the molecular structure of water, including bond angles, molecular geometry, polarity, and hydrogen bonding. Explain why these structural features are significant. |
| Validation requirements | Bond angle and molecular geometry are specified. Polarity and hydrogen bonding are explained |
- Select Submit.
- Open the new task and select Edit.
- In Parent Task, select Investigate the properties of water (H2O).
- Select Save.
Child task 2: Physical properties
- Select New task.
- Fill in the fields:
| Field | Value |
|---|---|
| Name | Describe the key physical properties of water |
| Shared Session | Select Tutorial: Water molecule analysis |
| Description | List and explain the key physical properties of water, including boiling point, freezing point, density behavior, specific heat capacity, and surface tension. Highlight any properties that are anomalous compared to similar-sized molecules. |
| Validation requirements | At least four physical properties are described with values. At least one anomalous property is identified and explained |
- Select Submit.
- Open the new task and select Edit.
- In Parent Task, select Investigate the properties of water (H2O).
- Select Save.
Set dependencies
The root task should wait for both child tasks to complete before it synthesizes the results.
- Open the root task ("Investigate the properties of water").
- Select the Linked Tasks tab.
- Select Add dependent task.
- In Add dependencies, select both child tasks.
- Select OK.
Your shared session now has three tasks:
"Investigate the properties of water (H2O)" [root]
Depends on: Child 1, Child 2
"Describe the chemical structure of H2O" [child 1]
No dependencies
"Describe the key physical properties of water" [child 2]
No dependencies
Step 5: Start the Discovery Engine
- In the Tutorial: Water molecule analysis shared session, select the Tasks tab.
- Next to Discovery Engine, select Start.
Cognition starts its reasoning loop. Here's what happens over the next few minutes:
First 1-2 minutes: warmup
Cognition reviews your tasks, their relationships, and the available agents. You might not see visible activity during this period.
Minutes 2-5: execution begins
Cognition identifies that Child 1 and Child 2 have no dependencies and are ready to start. It assigns an agent to each and starts execution. Both tasks move from New to Executing.
Watch for:
- Task statuses changing from New to Executing
- Agent assignments appearing on each task
Minutes 5-7: results and validation
As each child task completes, it moves through the Validating status while cognition checks the result against your validation requirements. If validation passes, the task moves to Complete.
Watch for:
- Tasks moving from Executing to Validating to Complete
- Validation comments appearing on each task
Minutes 7-10: root task execution
Once both child tasks are Complete, cognition starts the root task. The agent executing the root task has access to the results from both children and synthesizes them into a comprehensive summary.
Watch for:
- The root task moving from New to Executing
- The final result appearing after validation
- Discovery Engine auto-stops
Note
Actual timing varies depending on agent response times and whether tool calls are involved. Simple text-based tasks like these typically complete faster than tasks that require supercomputer tool execution.
Step 6: Review the results
Important
To view output files attached to tasks, you need Storage Blob Data Reader on the storage account and network access to the storage endpoint. If you see access errors when clicking file links, contact your administrator. See Azure Blob Storage in Microsoft Discovery.
Once all three tasks are Complete:
Open each child task and review:
- The Result field containing the agent's output
- The Validation comments showing which requirements passed
- The Execution history showing which agent ran and how long it took
Open the root task and review:
- The synthesized result that combines findings from both children
- Whether the validation requirements ("covers chemical structure, physical properties, and biological importance" and "at least one anomalous property") were met
Check the shared session for overall progress: all three tasks should show as Complete.
What you learned
- Created a prompt agent for the tutorial (TutorialScienceAgent)
- Created a shared session with a task hierarchy (root task with two children)
- Set up dependencies so the root task waits for child tasks to complete
- Wrote validation requirements that guided cognition's quality evaluation
- Observed cognition's warmup, agent selection, parallel execution, validation, and auto-shutdown
Next steps
Now that you understand the mechanics of the Discovery Engine:
- Try a real research question: Use a problem from your own domain. Start with the guided exploration pattern for a balance of structure and autonomy.
- Experiment with validation requirements: See how different levels of specificity affect result quality. Refer to Trust relationship and basic shared session patterns.
- Scale up: Create shared sessions with more tasks, deeper hierarchies, and agents that use tools. Refer to Build shared sessions with cognition.
- Learn to troubleshoot: When things don't go as expected, see Debug task execution.