How do I write a good prompt?
Pretty Prompt is very good at understanding what you need from your prompt and using best practices to improve it to the best of its ability.
The more details you can add to your prompt, the better the improvement will be.
As a rule of thumb, if it’s important to you, make sure to include it, so that Pretty Prompt uses that as context to craft a better prompt.
A good prompt comes down to being Clear, Concise, and Contextual.
Clear
Making sure you’re clear about what you’re trying to accomplish and what the output format needs to be. This also means avoiding any ambiguity in your prompt that may confuse the model.
Concise
Making sure the prompt is specific to what you want it to do.
Contextual
This is about including information that the model may not know about, which is specific to this prompt.
It’s also important to think of a prompt as a series of small blocks tied together.
Though models keep changing, a good structure includes:
- Role (a simple description of the assistant persona you want the LLM to take:)
-
For example, "You are an expert Marketing Manager."
-
- Objective (explain the outcome you want the LLM to achieve)
-
For example, "Your job is to craft a clear marketing plan for the launch of a new iPhone."
-
- Context or guidance (any extra information you want the LLM to take into account)
-
For example, "Keep in mind that the launch will start on 1st January 2026, and it will include…"
-
- Output and constraints (any specific considerations you want the LLM to make on the output format, or specifications for the task)
- For example, "Provide the plan as a bulleted list, concise and described in simple language based on this website…"
See some prompt examples below, before and after improvement:
| Original | Improved | Notes |
| "Summarize this text for me." | "You are an expert Marketing Consultant. Summarize this text about a new blog piece for product [NAME OF PRODUCT]." | Giving the model a role persona gives boundaries and constrains the parameters and knowledge used. |
| "Rewrite my email." | "You're an expert B2B SaaS account manager and copywriter. Rewrite the following text in between triple quotations, for conciseness, clarity, and simple language. '''YOUR EMAIL.''' " | Structure the model with clear sections for instructions, examples, etc. Do not mix these sections and provide them with clear delimiters. |
| "Help me make my CV better." | "You are an expert CV consultant and recruiter, with experience working in large tech companies. Look at the job description in the link below, and extract the most important elements required for the job. Think step by step, and then look at my own CV, which will be provided later on, to adapt it specifically for this role. Provide me with a clear bullet point list of the changes with before and after notes. '''JOB LINK'''." | Concise explanation of the role, task details, and step-by-step specifications, yielding a bullet-point list of the resulting changes. |