Day 3, 30 minutes · beginner
Why it matters
Today you build a prompt tool that turns a customer's damage description into a short incident note, decide whether the agent asks before using it, and choose how the result is shown. At the end the agent writes Tidewater's damage notes in one fixed layout.
Answering questions is half of a team agent. The other half is doing a small job the same way every time. At Tidewater Bike Hire, rule 4 says every damaged bike gets an incident note with the bike number, the branch and what is damaged. Pippa writes those notes by hand, and every colleague writes them a little differently.
In Copilot Studio a tool is a building block that lets the agent do something, not only answer. The simplest kind is a prompt tool: one fixed set of instructions that the model runs on whatever the user gives it. You write the instructions once, and the agent uses them every time the job comes up.
What kind of tools exist
Copilot Studio lists several tool types. The ones you meet in this course:
- Prompt: runs a single-turn model prompt, with input parameters (the values the user gives it, such as the damage description).
- Model Context Protocol (MCP): connects to a server that offers ready-made tools. That is lesson 4.
- Agent flow: runs a flow of one or more actions, for example saving the note to a list.
- Prebuilt connector: connects to Microsoft and other services, such as sending an email through Outlook.
The three parts of a tool's settings
After you add a tool, its configuration page has three sections.
- Details: the Name and Description. With generative orchestration the agent decides when to use a tool from these two, the conversation so far and the tool's inputs and outputs, so say what the tool does and when to use it. Here you also find Ask the end user before running, which asks the user to confirm first. It is set to No by default.
- Inputs: by default the agent fills each input from the conversation and asks the user when a value is missing.
- Completion: what happens after the tool runs. Don't respond (the default) lets the agent use the output in its own reply. Write the response with generative AI lets AI write a reply from the output. Send specific response sends a template you write, with the output inserted. Send an adaptive card sends an interactive card.
Microsoft warns that Write the response with generative AI can rephrase the tool's output and might not keep it exactly. For a note with a fixed layout you choose Send specific response.
The steps
- Add a Prompt tool to your agent.
- Write the instructions with the fixed layout of the note, and add one input for the damage description.
- Name and describe it so the agent knows when to use it.
- Turn on asking before running, so you see the tool being chosen.
- Set the completion to send the note exactly.
- Test it with a made-up damage report.
Follow the guide for Microsoft Copilot Studio below for the exact clicks.
The next step: flows and connectors
Later you may want the note saved somewhere, not only shown. That is a job for an agent flow or a connector. Not today, but know the rules Microsoft sets for a flow used as a tool: it starts with the trigger "When an agent calls the flow", ends with a "Respond to the agent" action, responds in real time rather than asynchronously, is published, and answers within 100 seconds.
If you want to see the same idea from the code side, the course Tool use with the Claude API shows how a model chooses a tool from its name and description.
What to avoid
- A vague description such as "Writes notes". The agent then uses the tool for the wrong requests, or never.
- Real customer data in your tests. Use made-up bike numbers and descriptions.
- Letting the tool guess costs. The instructions say "Do not guess repair costs" on purpose: costs come from rule 5 and a real repair.
Example: Pippa's first note
Pippa typed: "Write an incident note: a customer at Millgate brought back city bike 214 with a bent front wheel and a broken bell." The agent asked whether it could run Damage incident note. She said yes, and got five lines in the agreed layout. "Small damage only" said no, because a bent wheel is more than a bell, light or reflector. Dorian copied the note into the team's damage list by hand, for now.
Deeper dive
Today's actions
Ticks are not saved without an accountDo it in Microsoft Copilot Studio
Microsoft Copilot Studio
- Open your agent, go to its Tools page and select Add a tool.
- Choose the Prompt type. If it is not in the first list, select See all to show every type.
- Paste these instructions as the prompt instructions. Leave the model as it is.
Turn the damage description below into a short incident note for the Tidewater Bike Hire team. Use exactly this layout: Bike number: Branch: What is damaged: Small damage only (bell, light or reflector): yes or no Next step: Use only facts from the description. Write "not given" when a fact is missing. Do not guess repair costs. Damage description: - At the end of the instructions, select + Add content and add an input parameter for the customer's damage description.
- Select Save, then select Add and configure. The configuration page of the tool opens.
- Under Details, set the Name to
Damage incident note, paste this Description and set Ask the end user before running to Yes.Writes a short incident note for the team from a customer's description of damage to a hire bike. Use when a colleague reports damage to a bike or asks for an incident note. - Under Completion, for After running, select Send specific response, insert the prompt's output in the response and select Save.
- Start a new test session and paste this request. Confirm when the agent asks to run the tool, then check the note against the layout.
Write an incident note: a customer at Millgate brought back city bike 214 with a bent front wheel and a broken bell.
Note: If a tool type is unavailable, a data policy of your organisation may block it; the information icon next to the tool says which policy. Prompt tools need authentication: leave the tool's Authentication on the default (End user) and the agent on Authenticate with Microsoft.
Works on the free Copilot Studio trial with a work or school account. The trial cannot publish.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up