DevSyno

How to write better AI prompts: a practical guide with examples

Updated . Reviewed by DevSyno Editorial Team.

Person writing in a notebook at a desk

Most disappointing AI answers come from short, vague prompts. The model is not reading your mind; it is predicting a useful response from the words you give it. Better input reliably produces better output, and you do not need special tricks to get there.

This guide covers a four-part structure that works in every major assistant, shows it on real examples and lists the mistakes we see most often.

The four parts of a good prompt

Context: who you are and what situation you are in. “I run a small bakery and post on Instagram three times a week.”

Task: exactly what you want produced. “Write five captions for photos of our new sourdough loaf.”

Constraints: length, tone, format and anything to avoid. “Under 25 words each, friendly but not cheesy, no hashtags, one emoji maximum.”

Example: a sample of what good looks like. “Here is a caption our followers liked: ‘Fresh out at 7am. First come, first crunch.’”

You do not need all four every time, but adding even one missing part usually improves the result more than any clever phrasing.

Before and after

Weak prompt: “Write an email to my landlord about the heating.” The result will be generic and probably the wrong tone.

Better prompt: “Write a polite but firm email to my landlord. The heating in my flat has not worked for five days; I reported it on Monday by phone and nobody has come. I want a repair date this week. Keep it under 150 words and mention that I am keeping a record of the dates.”

The second prompt takes thirty seconds longer to write and produces an email you can actually send.

Iterate instead of starting over

Treat the first answer as a draft. Reply with specific feedback (“shorter”, “less formal”, “the second point is wrong, our policy changed in March”) rather than writing a brand-new prompt. The assistant keeps the context and improves in the direction you point.

If a conversation goes in circles, start a fresh chat and paste a summary of what you have learned. Long conversations can drift, and a clean start often fixes it.

Ask it to think and to check

For reasoning tasks such as planning, maths or comparing options, ask the assistant to work through the problem step by step before giving a final answer, or switch on its reasoning mode if it has one.

Then ask it to critique its own answer: “What are the weakest assumptions in this plan?” or “Which of these facts should I verify?” Assistants are often better at spotting problems when asked directly.

Common mistakes to avoid

Asking for too much at once. Split a big job (research, outline, draft, edit) into steps and review each one.

Leaving out the audience. “Explain inflation” and “explain inflation to a 12-year-old” produce very different answers.

Trusting specific facts without checking. Prompts improve quality, but they do not make an assistant a reliable source of names, dates or statistics. See our guide to fact-checking AI answers.

Sharing sensitive information. Do not paste passwords, personal data about others or confidential business information into consumer AI tools without checking their data policies.

Save prompts that work

Keep a simple document of prompts that produced great results, with a note on what they were for. Most assistants also let you set custom instructions or create projects that remember your preferences, so you only have to explain your context once.

Questions people ask

Do prompts work the same in ChatGPT, Claude and Gemini?

The same structure works in all of them. Each assistant has a slightly different style, so you may adjust tone instructions, but context, task, constraints and an example improve results everywhere.

Are long prompts always better?

No. Prompts should be complete, not long. Include what the assistant needs to know and leave out the rest. A focused paragraph usually beats a page of instructions.

Should I pay for prompt templates?

Rarely. The best prompts include details about your own situation, which a generic template cannot know. Start with the four-part structure and build your own library.

Tool features and prices change often. Every tool page links to the official site, so check it before you buy. Read how we review tools.

More guides