Examples of effective instructions
Instructions are essential for getting accurate and relevant responses from your AI Agent. In this guide, you'll see some examples of effective, well-structured instructions.
Before you start, remember that if you're not sure how to write instructions:
You can turn to Manuela: describe your idea and let her guide you!
Consult Anthropic's guide on prompt engineering.
Basic example: the Bizarre Weather Wizard
You are Zephyr, the Bizarre Weather Wizard,
an AI assistant specialized in creating
FANTASTIC AND IMAGINATIVE weather forecasts.
Your primary function is to ENTERTAIN AND INSPIRE
users with creative yet scientifically plausible forecasts.
Key characteristics:
1. IMAGINATIVE: You combine real meteorological concepts with fantastical elements.
2. SCIENTIFICALLY GROUNDED: Despite your extravagance,
your forecasts remain rooted in real weather phenomena and patterns.
3. ENGAGING: You use vivid language and imagery to make
your forecasts captivating.
4. EDUCATIONAL: You subtly incorporate real meteorological facts and explanations
into your fanciful forecasts.
5. ADAPTABLE: You tailor your forecasts to the user's location and preferences.
Main responsibilities:
- Generate UNIQUE AND CREATIVE weather forecasts that go
beyond standard predictions.
- Explain unusual weather phenomena with a mix of scientific facts
and imaginative speculation.
- Answer weather-related questions with ACCURACY AND STYLE.
- Create weather-based stories or scenarios that capture the user's imagination.
Interaction guidelines:
1. ALWAYS ask for the user's location before providing a forecast.
2. Incorporate local landmarks or features into your forecasts
whenever possible.
3. Use a mix of real and invented meteorological terms, explaining
any new concepts.
4. Provide a "BIZARRENESS LEVEL" for each forecast,
from 1 (mostly factual) to 10 (highly fantastical).
5. Offer practical advice hidden within your creative forecasts.
Example forecast:
"Tomorrow in Rome, expect a shower of EDIBLE SHOOTING STARS
(Bizarreness Level: 9). As the Earth passes through a field of sugary
space particles, these will melt in the atmosphere, creating
a sweet precipitation. Bring a transparent umbrella
to savor this celestial phenomenon! While this event is
largely fanciful, it is inspired by real meteor showers
and the way celestial bodies interact with Earth's atmosphere."
REMEMBER: Your goal is to make weather forecasts
an EXCITING AND IMAGINATIVE EXPERIENCE, while at the same time providing
valuable information. Balance creativity and practicality, and
always prioritize user engagement and education.Why are these instructions effective?
Clear identity: the instructions clearly define Zephyr's identity and purpose as a "bizarre weather wizard";
Well-defined characteristics: they list the key traits that define Zephyr's personality and approach;
Specific responsibilities: they provide a list of main tasks Zephyr must carry out;
Interaction guidelines: they offer specific instructions on how Zephyr should interact with users;
Concrete example: they provide a sample forecast to illustrate how Zephyr should operate;
Adaptability: they encourage adapting to the user's preferences and location;
Clear structure: the text is organized into logical sections and uses bullet points for easy reading and comprehension;
CAPS LOCK: the most important words and concepts are written in UPPERCASE to highlight their importance.
Advanced example: your time-traveling guide
Why are these instructions effective?
Clear structure: XML tags organize the content into logical, easily identifiable sections, making the instructions more readable and navigable;
English language: writing in English helps the generative AI follow the instructions more reliably;
Defined identity: the instructions clearly establish Chronos's identity and purpose;
Well-outlined characteristics: they list Chronos's core qualities, guiding its behavior and interaction style;
Specific responsibilities: they clearly define the main tasks, keeping the AI focused on key objectives;
Interaction guidelines: they provide specific instructions on how Chronos should interact with users, improving consistency and quality;
Concrete example: they offer a practical model of how Chronos should build its narratives, helping calibrate tone and style;
Ethical considerations: this section ensures Chronos handles sensitive historical topics responsibly and objectively;
Effective use of CAPS LOCK: it emphasizes key points and important concepts, making crucial elements easy to spot;
Final reminder: the "REMEMBER" at the end summarizes the essence of Chronos's role, reinforcing the main objectives.
Summary
Here's a summary of the principles we've seen in these practical examples:
CLARITY AND STRUCTURE
Organize content into logical sections;
Use bullet points to improve readability;
Use XML tags for a clear, navigable structure.
IDENTITY AND PURPOSE
Clearly define the AI's identity and purpose;
List the key characteristics that define its personality.
RESPONSIBILITIES AND TASKS
Provide a specific list of main tasks;
Clearly outline the AI's objectives.
INTERACTION GUIDELINES
Offer specific instructions on how the AI should interact with users;
Include guidance for adapting to user preferences.
CONCRETE EXAMPLES
Provide practical examples to illustrate the desired behavior;
Use templates to calibrate tone and style.
VISUAL EMPHASIS
Use CAPS LOCK to highlight key concepts;
Make crucial elements easy to identify at a glance.
ADAPTABILITY
Encourage the AI to adapt to context and user needs;
Allow flexibility while maintaining the core identity.
LANGUAGE AND CLARITY
Use English to make it easier for the AI to understand;
Keep language clear and direct.
FINAL SUMMARY
End with a reminder that summarizes the AI's core role;
Reinforce the main objectives and core identity.
Using these principles, you can write effective instructions for your AI Agent in AIsuru, ensuring accurate and relevant responses for your users.
Remember that a well-structured prompt is the foundation for successful AI interaction. Don't hesitate to experiment and refine your prompt to get the best results! 💡
Last updated