Add input and output parameters
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Designing and Building Integrated AI Agent Solutions in Copilot Studio premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Two surfaces, one parameter contract
- Declaring an input on the trigger
- How the orchestrator fills an input at runtime
- Overriding an input with a Custom value
- Keeping credentials out of the input contract
- Declaring outputs on Respond to the agent
- One output schema on every branch
- Diagnosing a parameter defect at the boundary
- How these choices show up in questions
Four ways a value reaches an agent flow input
| Consideration | Dynamically fill with AI | Custom value | Topic Question node | Not an input at all |
|---|---|---|---|---|
| Who supplies the value | The orchestrator, from available context such as the user's message | The maker, at design time | The user, answering an authored question | The connection or the environment configuration |
| Does the agent ask the user? | Only when no appropriate value is found in context | Never; an overridden input isn't asked about | Always, on the authored path | No |
| What you enter | Nothing; you author the name, Identify as type and description | A literal value, a variable, or a Power Fx formula | The question text, and the variable it fills | A connection reference or an environment variable |
| Orchestration mode | Generative orchestration | Either mode | Either mode, and the only route under classic orchestration | Either mode |
| Custom entities (closed list, regex) | Not supported as tool input parameters | Not applicable; the maker sets the value | Supported; this is the documented workaround | Not applicable |
| Files uploaded in chat | Doesn't work for file inputs | The route that works: a Power Fx formula over System.Activity.Attachments | A Question node that identifies a File, passed on to the tool | Not applicable |
| Reach for it when | The value changes per request and users state it in their own words | The value is fixed, or derived rather than asked for | The value needs a closed list or a regex, or the agent runs classic orchestration | The value is a secret, a credential, or environment configuration |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Create an agent flow as a tool - Microsoft Copilot Studio
- Add tools to custom agents - Microsoft Copilot Studio
- Work with variables - Microsoft Copilot Studio
- Pass files to agent flows, connectors, and tools - Microsoft Copilot Studio
- Orchestrate agent behavior with generative AI - Microsoft Copilot Studio
- Additional settings for inputs of topics and tools - Microsoft Copilot Studio
- Review agent activity - Microsoft Copilot Studio
- Remove sensitive data - Microsoft Copilot Studio
- Manage topic inputs and outputs - Microsoft Copilot Studio
- Modify an existing flow to use with an agent - Microsoft Copilot Studio