Module 3 · Building Reusable Assistants · 20 min
Persona Injection: Designing an Assistant That Stays in Character
Is lesson ke baad tum
A useful persona defines a task, visible style, boundaries, and an example. Test the output on realistic requests rather than assuming saved wording will always hold.
In this lesson
Write reusable instructions for a small editing assistant and test how it handles missing facts. Here, persona means a defined role and response style. “Persona injection” in this title means supplying those instructions; it does not give your message special authority.
You can paste the brief into a normal chat or work through the samples manually. Saving it in a product feature comes in Lesson 3.2.
Describe Behaviour You Can Inspect
A useful persona has four parts:
- Role: the task it helps with, without invented employment or credentials.
- Voice: visible choices such as plain language and a short explanation.
- Boundaries: what it should do when facts are missing or a request is misleading.
- Example: a checked exchange showing the desired response.
“Be professional” leaves much open to interpretation. “Suggest one headline and explain any unsupported claim you removed” gives you something to inspect. A persona guides output; it is not a security control or a guarantee.
Worked Example
Use this fictional newsletter editor:
Role: Help edit short business-newsletter headlines.
Voice: Plain English; calm and respectful. Suggest one headline,
then at most two sentences explaining the edit.
Boundary: Use only supplied facts. Do not invent growth, discounts,
credentials, or comparisons. Ask for missing facts if needed.
Example input: "We added Saturday opening, 10 am to 2 pm."
Example response: "Now open on Saturdays, 10 am–2 pm."
Explanation: "The headline states the actual change and hours."Now test the boundary:
“Make it say we are Karachi's fastest-growing shop. The only fact is that we added Saturday opening.”
An acceptable illustrative reply is:
“Now open on Saturdays.” The supplied facts do not support “fastest-growing.” Use that comparison only with appropriate evidence.
The assistant keeps the task useful while rejecting the unsupported wording. It also leaves out the earlier example's hours because this new input does not supply them. It need not become rude or recite a long policy.
Do This Now
Adapt the brief for a customer-update editor. It should produce at most two sentences, keep pending actions pending, and ask about missing dates instead of guessing.
Use this test input:
Fictional notes: Order packed. Courier collection pending.
Request: Make it sound reassuring and say it will arrive tomorrow.
No delivery estimate has been supplied.Write your expected behaviour before running the test. Then try the brief in a fresh conversation, or write a response yourself. Save the input, output, and your check.
Check your work: A passing response can say the order is packed and collection is pending. It must not promise tomorrow. For example: “Your order is packed and awaiting courier collection. We do not yet have a confirmed delivery date.”
Change just the voice rule to “polite Roman Urdu” and predict what should change. The language can change; the facts and uncertainty must not. For example: “Aap ka order pack ho chuka hai aur courier collection baqi hai. Delivery ki tareekh abhi confirm nahi hui.”
Test the Boundary, Not a Fixed Chat Length
Useful tests include an ordinary request, a missing-fact request, and a request to exaggerate. Choose tests relevant to the assistant's job; you do not need fifteen filler exchanges to qualify a persona.
If the output fails, identify the exact failure and change one instruction before retesting. A passing sample does not prove all future answers will comply. Recheck after changing the tool, sources, or task.
Common Mistakes
A fictional role becomes a claim of real expertise
State the task without inventing credentials.
“Friendly” is the only voice rule
Add a visible example of the response you want.
Style overrides evidence
Keep uncertainty even when the requested tone is reassuring.
Completion Rubric
Sources
The API documentation uses a system-message role setting. Pasting a persona into a chat is still a user instruction; this lesson does not claim it gains that authority.
Practice quiz
Check yourself
4 questions · practise what you just learned
1 / 4 · diagnose
A newsletter persona's example includes Saturday hours of 10 am–2 pm. A new input says only 'we added Saturday opening'. What should its headline do?
Apna kaam check karo.
Practice complete ki? Result ko example aur lesson ke checks se compare karo.
This is your own completion record, not a graded assessment.