Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Instructions

Instructions is where you write what the agent does and how it does it — the agent's operating brief, in your words. The platform feeds this content to the underlying model on every turn, so the rules, tone, examples, and step-by-step procedures you put here shape every response the agent produces. It is the single most consequential page in the builder: a good set of instructions makes everything else work better; a vague or contradictory set makes the agent unreliable in ways that are difficult to debug later.

Reach this page from Agent Config → Instructions in the left navigation, under Agent Setup.

The editor and its actions

The editor shows your instructions as formatted text, not as raw markdown: headings appear as headings, bold and italic appear styled, and numbered, bulleted, and nested lists appear as lists. You type in the formatted view, and the platform saves the result as markdown. The footer reads Markdown supported.

The page has four controls:

  • Upload from file (top right) — bulk-import instructions from a file rather than typing them in the editor. Useful when the instructions exist elsewhere as a document and you want them in the agent verbatim.

  • Save (top right) — saves your changes. It stays disabled until you change something. See Saving.

  • The formatting toolbar (above the text) — undo and redo; bold, italic, underline, and strikethrough; numbered and bulleted lists; left, center, right, and justified alignment; heading levels H1, H2, and H3; and code.

  • Best practices (right end of the toolbar) — opens a side panel with the recommended template (see below). Useful as a structural scaffold the first time you author instructions, or when you're not sure your current set covers everything it should.

The Best practices side panel

Selecting Best practices opens a side panel titled Best Practices for General Purpose Agents. The panel narrows the editor to the left and renders the platform's recommended structure on the right, using the same heading and list styles as the editor.

The general advice at the top:

  1. Include a clear and concise objective or goal for the agent.

  2. Include examples where possible.

  3. Include details like format, data types, and any other relevant information.

  4. Keep the whole instruction set within 5000 characters - longer instructions may overload the context during agent execution.

The recommended template — use the sections that apply, skip the optional ones:

Section
What Goes Here

Objective / Goal

The main purpose of the agent in one or two sentences.

Inputs Required

What information the agent needs to do its job.

Process / Steps

The procedure the agent follows.

Outputs / Deliverables

What the agent produces.

Constraints / Rules

Limitations, compliance requirements, things the agent must never do.

Tone / Interaction Style (optional)

How the agent communicates with users.

Additional Instructions (optional)

Anything else that didn't fit above.

Close the side panel with its own × when you're done; the editor returns to full width and Best practices reappears in the toolbar.

What to put in instructions, and what not to

The instructions field is the agent's operating brief, not its credentials store. Put the agent's behavior in instructions — what it does, the steps it follows, the rules it observes, the tone it uses, the examples that anchor good outputs. Do not put secrets in instructions.

Important Never paste API keys, passwords, tokens, or other credentials directly into the Instructions field. Credentials belong in Secrets & Variables. Reference them in skill configurations and instructions as $secret.{name}. Instructions content is included in every model call and may appear in execution traces, logs, and downstream systems — anywhere a secret pasted here would also appear.

The same rule applies to other sensitive data: personally identifying information, customer records, and internal documents that shouldn't accompany every model call all belong outside the instructions field, behind references the agent can resolve at runtime.

How long instructions can be

There is no hard limit on the length of instructions. The platform recommends keeping them within 5,000 characters, because the whole set is sent to the model on every turn and longer instructions may overload the context during agent execution. Earlier versions of the platform capped instructions at 3,000 characters and rejected anything longer; that cap no longer applies, and you can save instructions of any length.

The footer shows how you stand against the recommendation:

  • The counter reads current / 5,000, for example 2,269 / 5,000, with a progress bar beside it. It counts the characters of the saved markdown, which is what the model receives, so markdown symbols such as # and ** count too. A word count appears next to Markdown supported.

  • The warning appears once you go past 5,000 characters. The counter and the bar turn amber, and the footer adds Over 5,000 characters may overload the context during agent execution. The warning does not block Save.

Instructions editor footer showing the amber warning Over 5,000 characters may overload the context during agent execution and a counter reading 5,127 / 5,000.
Past 5,000 characters, the footer warns but still lets you save. The footer also shows Unsaved changes until you select Save.

Saving

The Save button sits at the top right, next to Upload from file, and activates when you've made changes. While you have unsaved changes, the footer shows Unsaved changes. Saved changes go to the agent's draft; create a recoverable snapshot from the Draft Version popover.

After saving, send a test message with Try Agent to verify the agent follows the new instructions before relying on the change in production.

Why this matters

Of every setting in the builder, the instructions field has the most direct effect on what the agent actually does. Two agents with the same model, same skills, and same attached knowledge will behave very differently if their instructions diverge. The Best Practices template exists because clean, well-structured instructions tend to produce predictable agents, and a few minutes spent putting the brief in the right shape prevents hours of debugging surprising behavior later. Treat this page as authoring, not as form-filling.

Last updated

Was this helpful?