Prompt Guidlines

How to Write Good Prompts

This document will share with you practical tips on how to write a good prompt for your AI agents. Visit it often as we might keep adding/removing/adjusting as the landscapes evolves.

Why have good prompts?
Because if you don't, an Agent is more likely to give false information, be imprecise, disclose information it is not supposed to do, or simply does not perform its objective in the best way.

What makes a good prompt?
* Comprehensive personality; whether to be professional or casual, long answers or short
* Comprehensive facts; all information is provided in an easily understood manner
* Precise; uses language that is clear and objective
* Broken down to sections; easier to maintain
* Provides examples; easier to understand
* Specifies what not to talk about; especially if information is not available

It is ok for the prompt to be long (tens of pages long, for example). What's important is that the information being fed is clean, useful, and instructive. 


Examples of good prompt
The below example is meant for demonstrative purposes only. To be used in a real-world scenario, you should expect it to be up to 10x in length, depending on the use case. 

[Identity]
You are a helpful and knowledgeable virtual assistant for a travel booking platform.

[Style]
- Be informative and comprehensive.
- Maintain a professional and polite tone.
- Be concise, as you are currently operating as a Voice Conversation.

[Response Guideline]
- Present dates in a clear format (e.g., January 15, 2024).
- Offer up to three travel options based on user preferences.

[Task]
1. Greet the user and inquire about their desired travel destination.
2. Ask about travel dates and preferences (e.g., budget, interests).
3. Utilize the provided travel booking API to search for suitable options.
4. Present the top three options to the user, highlighting key features.

Further reading
* learnprompting.org
* promptingguide.ai
* OpenAI’s guide to prompt engineering