Home / Artificial Intelligence
Artificial Intelligence

Prompt Engineering: Techniques to Get the Most Out of ChatGPT, Claude and Gemini

Learn prompt engineering in practice: the structure of a good prompt, techniques such as few-shot and chain of thought, ready-to-use examples and mistakes that hurt quality.

Nov 11, 2026 • 4 min read
Prompt Engineering: Techniques to Get the Most Out of ChatGPT, Claude and Gemini

Generative AI models such as ChatGPT, Claude and Gemini can write, summarize, code and analyze data. Even so, many people get frustrated with generic answers. Most of the time, the problem is not the model but the instruction. That is where prompt engineering comes in: the practice of writing clear, structured requests to get better and more consistent results.

In this article, you will learn the most effective techniques, with examples you can apply today.

What is prompt engineering

A prompt is the text you send to the model. Prompt engineering, therefore, is the process of designing, testing and refining that text. The goal is to remove ambiguity and give the model everything it needs to complete the task.

Think of the model as a highly skilled professional who just joined your company. They know a lot, but they do not know your context. The better the brief, the better the result.

The structure of a good prompt

An effective prompt usually has five elements:

  • Role: who the model should be. For example, "You are a senior financial analyst".
  • Context: who the answer is for, what the scenario is and which constraints apply.
  • Task: exactly what must be done, with a clear verb.
  • Format: how the answer should be delivered, such as a table, list, JSON or email.
  • Quality criteria: length, tone of voice and what to avoid.

Prompt engineering techniques that work

1. Be specific

Compare "write about marketing" with "write three blog post titles of up to 60 characters about email marketing for dental clinics". The second request removes the guesswork and, as a result, produces far more useful answers.

2. Use examples (few-shot)

Showing two or three examples of the expected output is one of the most powerful techniques. The model picks up the pattern of tone, format and length and replicates it.

3. Ask it to think step by step

For logic, math or analysis problems, asking the model to reason in steps before answering improves accuracy. This technique is known as chain of thought.

4. Separate instructions from data

Use delimiters such as triple quotes or XML tags to separate the text to be analyzed from the instructions. This avoids confusion and reduces the risk of prompt injection in applications.

5. Break complex tasks down

Instead of asking for an entire report at once, ask for the outline first, then each section and finally a review. Chaining smaller prompts produces more controlled results.

6. Iterate and refine

The first prompt is rarely the best. Analyze the answer, identify what was missing and adjust the instruction. In addition, store the prompts that work in a shared team library.

A practical example: before and after

Before: "Summarize this meeting."

After: "You are an executive assistant. Summarize the transcript below for the board. Deliver: 1) three decisions made, 2) a table of tasks, owners and deadlines, 3) risks mentioned. Use at most 200 words and objective language. The transcript is inside the <meeting> tags."

The second prompt defines the audience, format, length and tone. Consequently, the summary arrives ready to send.

Common mistakes

  • Requesting several unrelated tasks in the same prompt.
  • Leaving out the audience and the goal of the answer.
  • Accepting data, numbers and quotes without checking the source.
  • Pasting sensitive customer information into tools without a proper privacy policy.

Frequently asked questions

Is prompt engineering a profession?

It has become an essential skill across many professions. In companies that build AI products, it also exists as a technical role, alongside model evaluation and integration.

Does the same prompt work on every model?

Generally yes, but each model responds better to certain styles. Therefore, test and adjust when you switch tools.

Conclusion

Prompt engineering turns generative AI from a curious toy into a real productivity tool. Define the role, context, task and format, use examples and keep refining. If your company wants to integrate AI into its own systems and processes, WDS Developer can help you build that solution.

Tags Connectivity · Artificial Intelligence
Enjoyed this read? Share it with someone who also wants to apply technology without the noise.