Structure Your Prompt
Avoid putting all instructions into a single block of text.Using a modular structure helps the AI model clearly understand its role, scope, and boundaries. We recommend organizing every agent prompt into three core sections:
- Role: Define what responsibility the agent holds and how the agent behaves.
- Tasks: Describe the step-by-step workflow the skill should follow to complete its job.
- Rules: Set constraints, priorities, and edge-case handling to prevent unwanted behavior.
Write Tasks as a Process
When writing the Tasks section, think like a developer designing logic. Break execution into clear steps and use structured flows. Numbered steps and conditional logic (If / Else) significantly improve reasoning accuracy and execution stability. Task example:Recommendations
-
Be Specific and Detailed
Avoid vague instructions. Clearly define context, expected output, tone, format, and length.❌ ✅ Ask the user for appointment time. Ask the user for 15-min dental checkup time slot (Mon-Fri 9AM–5PM, 30-min intervals only) in 1 polite sentence. -
Use Positive Guidance
Instead of telling the agent what not to do, tell it what it should do.
This keeps the model focused on the desired behavior.❌ ✅ Don’t ask for irrelevant info. Ask only for guest name, check-in date, and desired spa time slot. -
Provide Few-Shot Examples
Include 1–2 complete examples of ideal user–agent interactions.
This helps the model learn tone, structure, and response length through imitation. -
Emphasize Critical Instructions
For extremely important rules or steps, use UPPERCASE to draw attention. -
Write in English When Possible
While Solvea supports multiple languages, English prompts currently achieve the highest instruction-following accuracy and reasoning quality.
Add Tools and Knowledge in the Prompt
You can reference tools, knowledge sources, and handoff actions directly in the prompt using/ .
This allows the agent to:
- Retrieve knowledge
- Handoff to a human agent. (reason and action are required)
- Call tools