The Instructions section is where you define the Enterprise Search agent's identity and behavior: "Define how your Enterprise Search Agent should behave and what users see when starting a conversation." It sits under Agent setup in the side-nav, and its fields are grouped under the heading Enterprise Search Agent behavior. It's the same editor an AI agent uses — worded here for a grounded, cite-your-sources search assistant.


What is the Instructions section?
You fill three structured fields — a Role, a Goal, and the long-form Instructions body — plus the conversation starters users see when they first open the agent. Instructions is the agent's core, always-on guidance.
How do I set the agent's role and goal?
The screen opens with two labeled, single-line boxes:
| Field | Purpose | Placeholder |
| Role | The agent's persona or area of expertise. | "Knowledge assistant for [Company] employees" |
| Goal | What the agent is trying to achieve. | "Answer work questions from [Company]'s indexed knowledge — accurately, with sources" |
Keep them concrete: together they frame who the agent is and what it's for, and they anchor everything else it does.
How do I write the agent's instructions?
Below Role and Goal is the Instructions field, previewed with the hint "Detailed rules for tone, format, and behavior." Click it, or the pencil icon, to open a full-screen editor headed "Provide background context and instructions related to your agent's expertise."
Enterprise Search provides search-specific wording and guidance for configuring a grounded assistant.
Above the text, a row labeled Add Instructions carries a more (three-dots) menu, a copy button once there's content, and the Preview / Code toggle.
A floating toolbar lets you Add variable (inserts a {{ }} placeholder) and Add code (inserts a {% %} block); variables show as pills in both the Preview and Code views. Click Done to bring your text back to the section. The Instructions editor supports detailed guidance; concise, well-ordered instructions generally produce more reliable behavior than very long instructions.
The editor's more menu
The more (three-dots) menu on the Add Instructions row groups:
Upload instruction file, Download instructions, View diff — import a
.mdor.txtfile (it overwrites the current instructions, so download a copy first), save the current text asinstructions.md, or compare unsaved edits against the last saved version.Copy instruction, Clear all, Discard & close — copy the text, clear the field, or close without keeping changes. Copy instruction and Clear all appear only when there's content. Upload instruction file, Clear all and Discard & close are hidden when the instructions are read-only.
How do I set conversation starters?
Conversation starters are the suggested prompts users see when they first open the agent, so they know what to ask. Add them in the Conversation starters box below the Instructions field. Each row is one prompt, and you can add up to four. The box always keeps one empty row ready to type into until all four are filled, and pressing Enter in a row jumps to the next one. To remove a starter, hover over its row and click the ×.
How do my instructions become the prompt the model sees?
At runtime, your role, goal, and Instructions body are compiled into the agent's system prompt using a template matched to the model family, so the same instructions work across models. The runtime then appends a few things you don't write by hand:
Language and style directives from response-generation settings.
Content-filter and word-filter guidance from guardrail configuration.
Optionally, the output of a custom "additional context" automation from pre-processing, appended after it runs with the user's query.
A hidden context message carrying the current date and time plus any per-user context, so answers stay time-aware.
How do I save and publish my changes?
Click Save at the top of the section. While you have edits, an Unsaved changes indicator appears next to it. Saving stores your instructions in the Enterprise Search admin configuration.
Try the result in Test agent, which runs your current working configuration, including changes you haven't published.
Publish from the admin header. Your changes reach the live search experience only after you publish them; see Overview (Enterprise Search).