Prompt engineering is the practice of writing instructions that get AI models to produce the result you actually want. It is the most important skill for anyone working with modern AI tools — and the good news is that it is mostly common sense once you understand a few key ideas.
AI tools like ChatGPT, Claude, Gemini, and Midjourney don't read your mind. They read your words. The way you phrase a request — what you ask, what you include, what you leave out — changes the answer dramatically. Two people can ask the same AI tool about the same topic and get wildly different results, simply because one person wrote a better prompt.
This tutorial introduces the idea, shows you a clear before-and-after example, and gives you a simple framework you can start using right away.
A prompt is anything you type or say to an AI tool to make it do something — a question, an instruction, a paragraph of context, even an image. Prompt engineering is the deliberate practice of designing those prompts so the output is useful.
Think of an AI model as a brilliant but very literal new colleague who just joined your team on day one. They have read most of the internet, but they know nothing about your specific situation. If you say "send the report", they don't know which report, to whom, or in what tone. But if you say "draft a one-paragraph status update for our weekly Monday email to the team — keep it casual, mention the three projects we are working on, and end with a question to invite replies" — they can give you something genuinely useful.
Prompt engineering is the skill of writing that second kind of request consistently.
Most people throw a one-line question at AI and accept whatever comes back. That works for trivia, but fails the moment the task is real. Here is what a weak prompt looks like.
Weak prompt
write me a resume
The AI has no idea who you are, what role you want, what experience to highlight, or how long the resume should be. It will invent something generic and you will get back something close to useless.
Stronger prompt
Write a one-page resume for a software developer
with three years of experience in Python and React,
applying for a backend role at a fintech startup.
Tone: confident but not arrogant.
Structure: summary, skills, experience, education.
Use bullet points under each role.
Now the AI knows the audience, the format, the tone, the length, and the structure. The first draft will already be 80% there.
The "stronger prompt" above is not magic — it just answers four questions the AI cannot answer on its own:
If you answer those four questions inside a single prompt, you have already done 90% of prompt engineering. The rest of this section goes deeper into each of those questions and shows you the techniques professionals use to push results even further.
Act as an experienced English editor.
Rewrite the paragraph below to be clearer and shorter.Pick something you wrote recently — an email, a message, a social post. Ask an AI tool to rewrite it in two different tones (for example, "more formal" and "more friendly"). Note how much the same words change.
Choose a topic you know well. Write a one-line prompt asking the AI to explain it. Then rewrite the prompt using the four-question framework (role, task, context, format). Compare the two answers side by side.
Ask the AI:
What three follow-up questions would help you give me a better answer to this prompt: '[your original prompt]'?
Then answer those questions and re-run the prompt. This is one of the fastest ways to improve any prompt.
Sign in to join the discussion and post comments.
Sign inPrompt Engineering for Data Science & Analytics
Supercharge your data workflows with AI. 15 practical tutorials on using prompt engineering for data cleaning, EDA, machine learning, SQL, visualisation, and more.
Prompt Engineering Projects & Real-World Applications
Twelve hands-on projects that turn prompt engineering theory into a portfolio. Build chatbots, content generators, RAG systems, and more.
Prompt Engineering for Education & Learning
Use AI as your personal tutor. Learn how to study faster, create lesson plans, generate practice questions, master languages, and prepare for competitive exams with smart prompts.
Prompt Engineering for Image Generation
Turn words into stunning visuals. Master AI image generation tools like Midjourney, DALL·E 3, and Stable Diffusion with 18 focused tutorials — from first prompt to full brand identity.
Prompt Engineering for Specific AI Tools
Tool-by-tool mastery — deep dives into ChatGPT, Claude, Gemini, GitHub Copilot, Midjourney, Stable Diffusion, and more. Learn the exact prompting techniques each platform rewards.
Prompt Engineering for Business & Productivity
Use AI to work smarter — automate tasks, make better decisions, and communicate professionally. 12 practical business prompt tutorials for professionals.