Introduction
If you want your custom agent in Copilot Studio to go beyond simple conversations and actually perform real tasks, tools are what make that possible. Tools allow your agent to connect with external systems, fetch data, and take actions based on user requests.
In this complete guide, you’ll learn everything about adding tools to custom agents—from understanding how they work, to configuring them, managing inputs and outputs, handling authentication, and knowing the limitations. This guide keeps things simple, practical, and easy to follow.
What Are Tools in Copilot Studio?
Tools are building blocks that extend your agent’s capabilities. Instead of just responding with text, your agent can use tools to interact with systems and perform real-world actions.
With tools, your agent can:
✔ Send emails using Office 365 Outlook
✔ Check weather forecasts and conditions
✔ Read and write data from Dataverse
✔ Send and receive messages in Teams
How Agents Use Tools
There are two main ways your agent can use tools depending on how it is configured.
Generative Orchestration (Default)
- The agent automatically selects the most relevant tool, topic, or knowledge source.
- It can ask follow-up questions to collect missing inputs.
- Creates a more intelligent and dynamic conversation experience.
Classic Mode
- The agent cannot automatically choose tools.
- Tools must be explicitly called inside topics.
- Useful when you want full control over execution.
By default, generative orchestration is enabled, allowing your agent to automatically decide when to use tools.
Ways to Add Tools
Copilot Studio provides multiple mechanisms to add tools, depending on your use case and integration needs.
Connector – Connect to APIs and services using Power Platform connectors
Prebuilt connectors – Use ready-made integrations for popular services
Custom connector – Build your own integration (requires org permissions)
Agent flow – Create workflows with multiple actions
Prompt – Use AI prompts to analyze data and generate outputs
REST API – Connect directly to API endpoints
MCP – Connect to Model Context Protocol servers
Computer use – Automate UI interactions like clicking and typing
You can also extend behavior using Skills (grouped tools) and Client tools (trigger actions on the client side).
Create and Add a Tool
Creating tools directly in Copilot Studio ensures smooth integration and availability across conversations.
- Go to Agents → Select your agent
- Open the Tools page
- Click Add a tool → New tool
- Select the tool type
- Configure settings (prompt, inputs, knowledge, response)
- Save or Publish and add the tool
Tool Configuration Explained
Details Section
- Name and description (critical for AI decision-making)
- Allow dynamic usage (default ON)
- Ask user before running (default OFF)
- Authentication type (user or maker)
Inputs Section
- Inputs are auto-filled using AI by default
- Agent extracts values or asks questions if needed
- Supports validation, retry logic, and entity mapping
- Inputs can be overridden with fixed values or Power Fx
Completion Section
- Don't respond (default)
- Generate response using AI
- Send fixed response
- Send adaptive cards
Tool descriptions and inputs play a major role in how accurately the agent selects and executes tools.
Tool Selection & Input Collection
- Tool name and description
- User intent and conversation context
- Available inputs and outputs
- Previous tool usage
The agent automatically asks users questions to gather missing inputs, so you don’t need to manually design input flows.
Important: Inform users when AI-generated questions are used in conversations for transparency.
Calling Tools from Topics
- Create or open a topic
- Add trigger phrases
- Add a node → Add a tool
- Select the tool and save
Authentication Considerations
- Tools require authentication to run
- End user credentials (default) ensure secure access
- Maker credentials allow shared access
Tools cannot run unless authentication is properly configured.
Managing Tools
Turn On/Off
- Disable using Enabled toggle
- Tool remains connected but inactive
Delete Tool
- Delete from agent Tools page only
- Cannot delete from main Tools page
Limitations You Should Know
- Maximum tools per agent: 128
- Recommended: 25–30 tools for best performance
- Child agents in multi-agent setups can also have up to 128 tools
Keeping the number of tools optimized ensures better performance and more accurate orchestration.
Overview of Prompts (Using Prompts as Tools)
Prompts are a core building block in Copilot Studio that enable you to create powerful generative AI capabilities. A prompt is a natural language instruction that tells the AI model what task to perform and how to structure the output.
Prompt engineering is the process of designing and refining these instructions to improve accuracy, relevance, and consistency of AI-generated responses. Well-crafted prompts help agents perform complex tasks more effectively.
Create prompts using natural language instructions to define AI behavior
Use prompt builder to create, test, and save reusable prompts
Add input variables to pass dynamic data at runtime
Include knowledge sources to provide contextual grounding
Share prompts across agents, workflows, and applications
Use prompts as tools inside agents for dynamic AI-driven actions
Common Use Cases
- Summarizing content
- Categorizing and classifying data
- Extracting entities or key information
- Translating text across languages
- Performing sentiment analysis
- Generating responses such as customer replies or complaint handling
Prompts can be integrated into agents as tools or used within workflows to bring AI capabilities into deterministic business processes.
Prerequisites & Important Notes
- Your environment must be available in supported regions
- Copilot Credits are required
- Microsoft Dataverse must be installed
Important: Prompts use models powered by Azure Foundry and may be subject to usage limits or capacity throttling.
Human Oversight
Content generated by AI models should always be reviewed by humans before being used in real-world scenarios. AI outputs may contain inaccuracies, biases, or irrelevant information.
- Review content before publishing or sending to customers
- Validate accuracy and relevance
- Ensure alignment with business goals and company values
- Refine prompts if outputs are not suitable
Human review helps identify errors, improve prompt quality, and ensure reliable AI behavior.
Responsible AI
Building AI solutions requires adherence to responsible AI principles to ensure ethical and trustworthy outcomes.
- Fairness – Avoid bias and ensure equitable results
- Reliability & Safety – Ensure consistent and safe outputs
- Privacy & Security – Protect sensitive data
- Inclusiveness – Support diverse users
- Transparency – Make AI decisions understandable
- Accountability – Take responsibility for AI outcomes
Following responsible AI practices ensures that prompt-based tools deliver meaningful, safe, and trustworthy results in Copilot Studio.
Using Prompts to Perform Tasks in Copilot Studio
Custom prompts allow you to configure instructions for Azure OpenAI Service or Azure AI Foundry models, enabling your agent or agent flows to perform specific AI-driven tasks dynamically.
Prompts can be integrated at multiple levels, giving you flexibility in how and where AI capabilities are executed within your solution.
Agent level – Add prompts as reusable tools across the entire agent
Topic level – Trigger prompts within specific conversation topics
Agent flow – Execute prompts at any step in workflow automation
Dynamic execution – Call prompts anywhere using nodes in flows or topics
Add a Prompt as a Tool (Agent Level)
- Go to Agents → Select your agent
- Open the Tools tab
- Click New tool
- Select Prompt
- Use the prompt editor to create and configure your prompt
Add a Prompt in a Topic
- Open your agent and select a topic
- Click Add node below an existing step
- Select Add a tool → New prompt
- Configure the prompt using the prompt editor
Note: Agents configured for anonymous access cannot use Dataverse tables as knowledge sources, but you can still define inputs, model settings, and temperature.
Add a Prompt in an Agent Flow
- Go to Flows and open your agent flow
- Click Insert new action at the desired step
- Select Run a prompt under AI capabilities
- Choose an existing prompt or create a new one
- Configure using the prompt editor
Prompt Editor Capabilities
The prompt editor provides a comprehensive interface to create, test, and refine prompt templates for your agent.
- Write instructions manually
- Use Copilot to generate prompt instructions
- Select templates from the prompt library
Configuration Options
- Select chat model and configure temperature and behavior
- Enable knowledge retrieval and include links in responses
- Enable advanced features like code interpreter and reasoning
- Define user inputs (text, images) and test data
- Connect Dataverse knowledge sources
- Control output formatting
You can test prompts by providing sample input data and using the Test option to validate output before deployment.
Best Practices for Prompt Instructions
- Be specific – Clearly define what the agent should do
- Use examples – Help the model understand expected output
- Keep it simple – Avoid unnecessary complexity
- Keep it brief – Prevent latency and processing issues
- Provide fallback logic – Define what to do if the task fails
- Test and refine – Continuously improve prompt performance
Well-designed prompts significantly improve accuracy, reliability, and user experience in AI-driven conversations.
Important Considerations
- Prompts run on Azure OpenAI Service and Azure AI Foundry models
- Feature availability depends on supported regions
- Usage may be subject to limits or capacity throttling
Ensure proper configuration and testing to avoid failures due to model limits or environment restrictions.
Human Review for Automation with Prompts
When using prompts in automation, human review plays a critical role in ensuring the accuracy, safety, and reliability of AI-generated outputs. Prompts rely on generative AI models powered by Azure OpenAI Service, which, while powerful, can sometimes produce misleading or incorrect results.
Important: Prompt builder runs on GPT models powered by Azure OpenAI Service. Availability depends on region and may be subject to usage limits or capacity throttling.
Understanding Prompt Injection Attacks
A prompt injection attack occurs when malicious or unintended instructions are embedded within input data, causing the AI model to behave unexpectedly or produce harmful outputs.
- Attackers exploit the model’s trust in input data
- Hidden instructions can alter responses or actions
- Common in inputs from emails, social media, or external content
Example: A malicious instruction hidden in customer feedback could trick the AI into generating incorrect or inappropriate responses, potentially damaging business reputation.
Fabrication (Hallucination) in AI Models
Fabrication, also known as hallucination, occurs when an AI model generates information that is not present in the input data or grounded in reality.
- AI may invent facts or details not included in source data
- Outputs may appear confident but be incorrect
- Common in summarization, reporting, or analysis tasks
Example: A meeting summary generated by AI may include decisions or action items that were never actually discussed.
Mitigating Risks with Responsible Practices
- Thoroughly test prompts and workflows before deployment
- Provide strong grounding data to reduce ambiguity
- Limit reliance on unverified external inputs
- Continuously monitor outputs for quality and accuracy
- Implement human validation before critical actions
Combining automation with human oversight ensures higher reliability and reduces the risk of incorrect or harmful outputs.
Why Human Oversight Matters
Even with advanced safeguards, AI models can still produce unexpected results. Human oversight ensures that outputs are reviewed, validated, and aligned with business expectations before being used.
- Prevents the spread of incorrect or fabricated information
- Ensures compliance with company policies and values
- Improves trust in AI-driven automation
- Helps refine prompts for better future performance
Responsible AI implementation requires a balance between automation efficiency and human control to ensure safe and trustworthy outcomes.