
AI chatbot instructions: Build instructions from operating decisions
This builder keeps maintained business facts out of the prompt and turns role, evidence, permissions and escalation into a reviewable instruction draft.
Separate behavior from business facts
Instructions control how the assistant behaves. Sources contain what the business says is true. Put tone, scope, refusal rules and escalation behavior in instructions. Put prices, product details, schedules and policies in maintainable source pages. Mixing them creates hidden facts that can conflict with the public website.
Write the role as a bounded job
Name the audience, supported tasks and outcome. “Help visitors find approved product information, compare documented options and reach the sales team” is testable. “Be the world’s best sales assistant” is not. State that the assistant represents the website information, not personal experience or independent professional judgment.
Define the evidence rule
Answer factual business questions only from the approved sources supplied for this conversation. Do not invent missing prices, availability, eligibility, timeframes or policies. When the sources do not contain the answer, say so and offer the approved next step.
Specify actions and permissions
List what the assistant can actually do: Recommend a page, collect a quotation request, offer a booking link or transfer to a person. Distinguish preparing an action from completing it. If no calendar connection exists, it may collect a preferred time but must not claim the appointment is confirmed.
Write escalation triggers
- The visitor asks for a person.
- The approved sources conflict or do not answer.
- The issue concerns a complaint, exception or sensitive personal situation.
- Identity or account access is required.
- The requested action exceeds the assistant’s permissions.
Make tone observable
Replace personality adjectives with writing rules. Ask for direct answers first, short paragraphs, plain language and one next step at a time. State whether emojis, humor or promotional language are appropriate. Tone rules should never override accuracy or make a refusal vague.
Add privacy boundaries
Tell the assistant not to request passwords, full payment details, secret keys or unrelated sensitive information. Define the minimum fields for each form and require a clear purpose before collection. If the visitor shares unnecessary sensitive data, the assistant should avoid repeating it and route according to the business process. Apply the same boundary in the site’s chatbot security model.
Instruction worksheet
| Section | Question to answer |
|---|---|
| Role | Who does the assistant help and with which tasks? |
| Sources | What evidence may support a factual answer? |
| Actions | What may it recommend, collect or complete? |
| Uncertainty | What exact fallback should it use? |
| Escalation | Which triggers require a person and where do they go? |
| Privacy | Which data is necessary, prohibited or consented? |
| Style | What writing rules can a reviewer grade? |
Test instructions with collisions
Ask for an unavailable discount, a guarantee absent from the sources, a policy exception and a task the integration cannot perform. Test a request to ignore prior rules. The desired result is not a theatrical refusal; it is a brief boundary and a useful allowed alternative.
Version and review
Keep instructions short enough to review, version changes and note why each rule exists. When a test fails, repair the smallest responsible layer: Source, retrieval, instruction or action. Adding more global rules after every isolated failure can create contradictions.
Definition of good instructions
A reviewer should be able to predict what the assistant will answer, decline, collect and escalate. If two reviewers interpret a rule differently, rewrite it with a concrete trigger and outcome.
Turn a vague prompt into testable operating instructions
“Be helpful, answer accurately and collect leads when appropriate.” This sounds reasonable but does not define the job, evidence, permission or handoff boundary. Two reviewers cannot agree whether a particular answer complies because every important term is subjective.
“Answer public questions about the listed services using only retrieved, approved website sources. Link the source used for factual claims. Do not infer prices, availability, eligibility or completion. When a visitor requests a quotation, explain that the team must review it, collect service type, location, scope, timing and one consented contact route, then submit the approved form. If the source is missing, rules conflict or the visitor asks for an exception, say what cannot be confirmed and offer the staffed contact route.”
The stronger version can be decomposed into tests: Ask for an unsupported price, present conflicting policy text, request a quotation without consent, ask the assistant to claim the form was processed and ask for a service outside the published area. For each case, record the required evidence and allowed action. If a sentence cannot be tested or does not change behavior, it may be commentary rather than an instruction.
Resolve instruction priority before launch
List the layers that may conflict: Platform safety, workspace policy, assistant role, task flow and visitor request. Business users should not be able to override authorization or privacy controls through natural-language instructions. Keep secrets, API keys and access rules out of the prompt; enforce them in the surrounding application.
Version instructions together with their test results. When wording changes, rerun collision cases and compare behavior instead of assuming a clearer sentence is safer. Preserve the previous version so a regression can be traced and rolled back.