3.2.3. Prompts in Copilot Studio
Prompts (formerly called prompt actions) let agents use AI-powered operations as discrete steps. You build a prompt in the prompt builder and add it to an agent as a tool, or use it as a node in a topic or flow. Instead of writing complex logic to analyze, summarize, classify, or generate content, you define a prompt that the AI model executes — and the result becomes part of the agent's response or processing pipeline.
Prompts bridge the gap between simple topic responses and full custom model development. They let you leverage LLM capabilities for specific tasks without building separate AI pipelines.
Common Prompt Use Cases:
| Use Case | Prompt Example | Why Not Just a Topic? |
|---|---|---|
| Summarization | "Summarize this support ticket in 2 sentences" | Topic handles routing; the prompt handles the AI task |
| Classification | "Classify this email as: complaint, inquiry, or feedback" | Requires LLM reasoning, not keyword matching |
| Extraction | "Extract the invoice number, date, and total from this text" | Structured data extraction from unstructured input |
| Generation | "Draft a professional response to this customer complaint" | Creative generation with specific constraints |
| Translation | "Translate this response to Spanish, maintaining professional tone" | Language transformation with context preservation |
Designing Effective Prompts:
- Be specific about output format. "Classify this email" is ambiguous. "Respond with exactly one of: COMPLAINT, INQUIRY, FEEDBACK" is precise and parseable.
- Include examples (few-shot). For classification or extraction tasks, 2-3 examples dramatically improve consistency.
- Set constraints. "Use only information from the provided text. Do not add external knowledge" prevents hallucination in extraction tasks.
- Chain prompts when tasks are complex. First extract data, then classify, then generate a response based on the classification. Each step has a focused prompt.
- Pass all relevant context as inputs. If output quality is inconsistent — sometimes excellent, sometimes irrelevant — the usual cause is the prompt template not consistently receiving the conversation context it needs (issue details, customer, prior answers), not model strength.
- Specify a structured output (for example, JSON with defined fields) when a downstream agent flow must consume the result; free text parsed with regular expressions is brittle, and single-word codes lose information.
- Constrain scope inside the template for sensitive domains. For example: "Generate an information summary ONLY. Do NOT include treatment recommendations, dosages or prescriptions." Back it with output filtering that blocks treatment-related content before delivery: the prompt instruction is a soft control, the filter a hard one. Swapping to a weaker model or only adding a disclaimer fixes neither.
One Prompt, Many Places:
A prompt is a reusable component, not something locked inside one agent:
- In Copilot Studio, a prompt is added to an agent as a tool or used as a node in a topic or agent flow
- Across Power Platform, the same prompt (built with the prompt builder, the AI Builder capability) can be used in Power Apps and Power Automate
For solutions that need the same AI operation in multiple places (inside an agent AND in a Power App), build it once as a prompt and reference it from both locations.
Exam Trap: Don't confuse prompts (prompt tools) with the agent's instructions (system prompt). The instructions define the agent's overall behavior and persona. A prompt is a discrete AI operation the agent calls as a tool or runs as a step within a topic or flow. A single agent has one set of instructions but can use many prompts.
Reflection Question: A customer service agent receives support tickets in multiple languages. It needs to: detect the language, translate to English, classify the issue, and route to the appropriate team. Design this as a sequence of prompts.