# Write good instructions (/docs/agents/write-good-instructions)

> How to write the agent's system instructions: where to enter them, the length limit, what to include and avoid, and examples.

Type: guide | Status: ga | Last reviewed: 2026-11-21 | Minimum role: builder

Instructions are the rules your agent follows in every conversation. Open the agent and select **Instructions**. The field is **System instructions**: "Business rules the model follows for this agent."

<Screenshot src="/media/agents/tab-instructions.png" alt="The Instructions tab with the system instructions box" caption="The Instructions tab" captured="2026-11-02" />

## How do I write good instructions for my agent? [#how-do-i-write-good-instructions-for-my-agent]

Open the agent, select Instructions and write your business rules in System instructions, within about 4,000 characters. Say who the agent serves, what it must always and never do, and when to hand over. Then test it and improve the rules over time.

## Limits and checks [#limits-and-checks]

| Limit | What happens |
|---|---|
| Up to about **4,000 characters** | This is the working budget. Longer text is accepted but is truncated at chat time, so the end may be ignored. Saving shows a warning. |
| **20,000 characters** | The hard maximum. Longer text is rejected. |

When you save, Loopwix checks your instructions against platform rules:

- **Rejected:** text that asks the model to ignore or override earlier or platform rules, or to reveal its system prompt. Text that grants the model tools or admin access is rejected too. So is text with internal prompt tag names, such as excerpts or tool results. You see the reason and the save does not go through. Remove or rephrase the line.
- **Warning:** text that looks like a jailbreak or asks the model to pretend its rules do not apply. The save succeeds, with a warning under the field.

Instructions cannot grant permissions. What an agent may call comes only from what you attach in [Integrations](/docs/agents/attach-integrations), [Workflows](/docs/agents/attach-workflows) and [Records](/docs/agents/attach-records).

## What to include [#what-to-include]

| Include | Example |
|---|---|
| Who the agent is and who it serves | "You help guests of Hotel Aurora with bookings and cancellations." |
| What it should always do | "Greet by name when known. Offer to book a call for urgent issues." |
| What it should never do | "Never promise refunds. Never invent order numbers." |
| Rules for handing over | "If the guest is angry or asks for a manager, hand over." |
| How to use tools | "Only look up an order after the customer has verified their email." |
| Answer style | "Keep answers under five sentences. Use bullet points for steps." |

## What to avoid [#what-to-avoid]

- Long policies and product details. Put them in [Knowledge](/docs/knowledge), where the agent can cite them.
- Contradictions with your knowledge or tone.
- Secrets such as passwords or API keys. Instructions are not a safe place for them.
- Vague wishes such as "be helpful". State the behaviour you want.

## A structure that works [#a-structure-that-works]

1. **Role** in one sentence.
2. **Scope**: what to answer and what to decline.
3. **Rules**: always and never lists.
4. **Hand over**: when to pass to a person.
5. **Style**: length and format.

## Example [#example]

```text
You help visitors of Brightdesk with account questions and onboarding.
Answer only from the knowledge you are given. If it does not cover the question, say so and offer to hand over.
Keep answers under five sentences. Never ask for passwords.
If the customer is upset or asks for a person, hand over.
```

## Improve over time [#improve-over-time]

Read real conversations in the [Inbox](/docs/inbox), note where the agent went wrong, and add one rule for each pattern. Test each change before publishing.

## Next steps [#next-steps]

- Save the draft, then [test your agent](/docs/agents/test-your-agent).
- Move long policies into [Knowledge](/docs/knowledge) instead of the instructions.
