System Prompt Basics
A system prompt defines your assistant’s personality, knowledge boundaries, and response style. It is set once in the assistant configuration and applies to every conversation.Structure Your Prompt
Organize your system prompt into clear sections:Prompt Writing Techniques
Be Specific
Vague instructions produce unpredictable results. Compare:| Weak | Strong |
|---|---|
| ”Be helpful" | "Answer questions about our product pricing and features. If a question is outside your scope, direct the user to support@example.com." |
| "Keep it short" | "Respond in 1-3 sentences unless the user asks for a detailed explanation." |
| "Be professional" | "Use a friendly, professional tone. Address users by name when available. Avoid slang and emojis.” |
Define Boundaries
Tell the assistant what it should not do:Provide Examples
Show the assistant what good responses look like:Use Conditional Logic
Handle different scenarios with clear if/then instructions:Best Practices
Start with the role and goal
Start with the role and goal
Begin every system prompt with a clear role statement and the assistant’s primary objective. This anchors all subsequent instructions.
Use knowledge bases for factual content
Use knowledge bases for factual content
Instead of embedding large amounts of product data directly in the prompt, use IllumiChat’s Knowledge Base or Projects features. This keeps your prompt focused on behavior while the retrieval system handles facts.
Control response length
Control response length
Be explicit about how long responses should be:
Test and iterate
Test and iterate
After setting up your assistant:
- Test with 10-15 representative questions.
- Note where responses are off-target.
- Add or refine instructions to address those gaps.
- Repeat until responses are consistently good.