Prompt engineering for beginners: write prompts that work

By SamkhyaAcademy Team · · 4 min read

prompt engineering for beginners

Learn how to write clear AI prompts with role, goal, context and format, with simple examples, practical templates and the common mistakes to avoid.

The answer you get from an AI tool depends a lot on how you ask. A vague question gets a vague answer. A clear prompt gets a useful one. This skill is often called prompt engineering, and you can learn the basics in a few minutes. With practice, it can save you hours of work every week.

What is a prompt?

A prompt is the instruction you give to an AI tool. It can be a question, a task or a request for a draft. Think of it as briefing a smart new colleague who knows a lot in general but knows nothing about your situation. The more clearly you explain what you need, the better the help you get.

The four-part prompt

  1. Role: who the AI should act as, for example "a career coach for freshers".
  2. Goal: what you want, for example "help me improve my resume summary".
  3. Context: the details that matter, such as your background, the job and what you have tried.
  4. Format: how you want the answer, for example "three options, each under 40 words".

A weak prompt and a strong prompt

Weak: "Write about testing."

Strong: "Act as a senior software tester. Explain the difference between manual and automation testing to a college student in under 150 words. Use a simple example from an online shopping app."

The strong prompt gives a role, an audience, a length and an example. The result is far easier to use without heavy editing.

A ready template

You can copy and fill this pattern for most tasks:

Act as [role].
My goal is [goal].
Context: [background, audience, constraints].
Please give me [format, length, tone].
Ask me questions first if anything is unclear.

Tips that help every time

  • Be specific about length, audience and tone.
  • Give an example of what a good answer looks like.
  • Break big tasks into steps and ask for one step at a time.
  • Ask the tool to ask you questions if something is unclear.
  • Follow up: refine the answer with "make it shorter" or "use simpler words".
  • Tell the tool what to avoid, such as jargon or repeated points.
  • Save prompts that work in a notebook so that you can reuse them.

Useful prompt types

  • Explain: "Explain this topic as if I am a beginner, then give me three questions to test myself."
  • Improve: "Here is my paragraph. Suggest three improvements and explain why."
  • Plan: "Create a four-week study plan for SQL with one hour a day."
  • Compare: "Compare these two options in a table with pros and cons."
  • Practise: "Act as an interviewer for a fresher tester role and ask me one question at a time."

Common mistakes

  • Asking for too much in one prompt.
  • Leaving out context, then being surprised by a generic answer.
  • Trusting everything without checking. AI tools can make mistakes and invent facts, so verify numbers, quotes and links.
  • Pasting private or confidential information into a tool.
  • Giving up after one try instead of refining the prompt.

Example: improving a prompt step by step

First try: "Help me with my resume." The answer is generic. Second try: "I am a final-year BCA student applying for software tester roles. Here is my current summary: [text]. Rewrite it in two lines, with testing keywords, in a confident but honest tone." The answer is now relevant. Third try: "Give me three versions, one formal, one friendly and one very short." You can then choose and edit the best one. Each step added clarity.

Use AI to learn, not to skip learning

Use AI to explain a concept, quiz you or give feedback on your draft. Then write and think in your own words. Employers value people who can use AI tools well and also understand the work. Always review and edit the output before you use it, and follow the rules of your college or workplace.

Frequently asked questions

Do I need to pay for AI tools? Free plans are enough to learn the basics. Paid plans give more features and speed.

Do the same prompts work in every tool? The ideas do, but results differ between tools, so test and adjust.

Will I be able to learn this without coding? Yes. Prompt writing is about clear thinking and clear writing.

How do I get better? Use AI for real tasks every day, compare versions of a prompt and keep notes on what works.

Can prompts be wrong or biased? Yes. AI answers can reflect gaps and biases in their training data, so treat them as drafts and check important points against reliable sources. Writing clear prompts reduces mistakes but never removes the need to review.

Practice exercise

Pick one task from your week, such as summarising notes or drafting an email. Write three different prompts for it: one short, one with the four-part structure and one with an example answer included. Compare the results and note which parts of the prompt made the biggest difference. Repeat this once a week and you will quickly build your own style.

Ready for the next step?

Want to practise with guidance? Explore our Generative AI program. If you would like guidance from people who work in the industry, join our free career guidance workshop or request a free career discovery session. We will look at your background and help you plan what to learn and build next.

Need career guidance from industry experts?

Join our free workshop or request a free career discovery session.

Keep reading