# AI agents with generative orchestration should have custom instructions

AI agents with generative orchestration should have custom instructions.

Source: https://maester.dev/docs/tests/MT.1121

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/lnfernux" title="Truls Thorstad Dahlsveen · Original author"><img src="https://github.com/lnfernux.png" alt="Truls Thorstad Dahlsveen" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/lnfernux">Truls Thorstad Dahlsveen</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Copilot Studio · Agents · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1121
```

## Overview

AI agents with generative orchestration should have custom instructions.

Agents that use generative orchestration (generative actions enabled) without custom instructions rely entirely on the LLM's default behavior. This increases the risk of prompt injection attacks, off-topic or harmful responses, and uncontrolled tool invocation. Custom instructions act as a system prompt that constrains the agent's behavior.

### How to fix

Open each flagged agent in Copilot Studio and add custom instructions that define the agent's purpose, boundaries, and behavioral constraints. At minimum, instructions should specify what the agent is allowed to do, what topics are off-limits, and how it should handle attempts to override its instructions.

Learn more: [Create and edit custom instructions](https://learn.microsoft.com/microsoft-copilot-studio/authoring-instructions)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1121 |
| Severity | Medium |
| Suite | Maester |
| Product | Copilot Studio |
| Feature | Agents |
| Area | AI and agents |
| Resource type | Agent |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtAIAgentMissingInstructions](https://github.com/maester365/maester/blob/main/tests/maester/copilot-studio/Test.MT.1121.ps1) |
| Services | Graph |

</details>

## Source

- Test: [`tests/maester/copilot-studio/Test.MT.1121.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/copilot-studio/Test.MT.1121.ps1)
- Documentation: [`tests/maester/copilot-studio/Test.MT.1121.md`](https://github.com/maester365/maester/blob/main/tests/maester/copilot-studio/Test.MT.1121.md)
