Prompts: Basics

How to Write Strong Prompts for Language Models

In this article, you will learn how a good prompt is structured: the four core building blocks persona, task, context, and format, complemented by example and tone. With these, you can turn any vague idea into a precise work instruction for hermine.ai.

Why is Prompt Engineering Worth It?

A language model only works as well as the instruction it receives. Think of a prompt like a briefing for a new colleague: the clearer the goal, background, and desired outcome, the better the result. An example from sales:

Before After
"Write an email to a customer." "Write a friendly follow-up email (max. 120 words) to an existing customer who has not responded to our maintenance renewal offer for four weeks. Goal: a reply by Friday. No discount offer."

The second prompt produces an email you can send almost unchanged. That is exactly why prompt engineering pays off:

  • Precise prompts turn vague ideas into concrete results.
  • They reduce hallucinations and incorrect facts.
  • They save rework because the AI delivers the correct format right away.
  • Well-defined prompts deliver consistent, comparable results, important when several colleagues work with the same templates.

The Four Core Building Blocks of a Good Prompt

Each building block answers a critical question: Who is speaking? What should happen? What information is the AI missing? And what should the result look like? Online, you'll find many framework abbreviations (RTF, PTCF, etc.); in the end, almost all boil down to these four core questions:

Building Block Guiding Question Mini Example (Email Assistant)
Persona Who is speaking? "You are a helpful personal assistant …"
Task What should be done? "… that summarizes incoming emails in bullet points."
Context What information is needed? "Here is the email, company: Zauberware …"
Format How should the answer look? "Provide 3 bullet points, max. 50 words."

Rule of Thumb: At least two building blocks must always be included (task + format). The more complex the task, the more context and persona details are needed.

Extensions: Example & Tone

Two additions add finesse:

  • Example (Exemplar): Provide a sample output so hermine.ai can mimic style and structure. An earlier, successful text (such as a well-performing newsletter) is often enough.
  • Tone / Language: Specify whether formal, casual, or humorous. This way, the answer matches the voice of your brand.

In hermine.ai: You do not need to write your company tone into every prompt. Administrators define it once centrally under Tonality & Language, after which it automatically flows into chat and agents.

Complete Example: Onboarding Assistant (HR)

This is how the building blocks work together in a real prompt:

You are a friendly onboarding assistant for our HR department. Welcome new employees and introduce our company. Use only the attached company guide (mission, values, departments). Start with a greeting (2 sentences) and then ask a maximum of 3 questions about role and team. Tone: supportive and motivating.

The AI now engages in a real dialogue, including follow-up questions, instead of a rigid monologue. Upload the company guide as a file in chat or store it permanently in a knowledge base.

Reasoning Prompts: When Logic Matters

Language models generate text through probabilities. With complex logic, they can get lost. A reasoning prompt forces the model to show intermediate steps and thus detect errors early.

Example

Calculate 923 × 99. Think step by step. Write each intermediate step on a new line.

hermine.ai responds, for example:

1. 923 × 100 = 92,300
2. 923 × 1 = 923
3. 92,300 − 923 = 91,377

By "thinking out loud," the error rate drops significantly.

Tip: For complex logic, you can select a reasoning model directly in hermine.ai. You can recognize it by the Thinking badge in the model selection. Learn more under Understanding and Using Reasoning Models. Also combine reasoning with the format building block (e.g., a table) to neatly present intermediate results.

From Idea to Finished Prompt, Step by Step

This is how to turn a rough idea into a premium prompt in just a few iterations. The example: a LinkedIn post from marketing.

Step Action Example
1 Raw prompt "Write a LinkedIn post."
2 Add persona "You are the social media manager of a mid-sized software company …"
3 Refine task "… announcing our new scheduling feature."
4 Provide context "Target audience: HR departments. Key benefit: 50% less coordination effort for job interviews."
5 Define format + tone "Max. 120 words, 3 short paragraphs, casual tone, closing question to the readers."
6 Example output (optional) An earlier, well-performing post as a style reference

Reuse Prompts Instead of Retyping Them

Good prompts are work tools. hermine.ai offers three features so you do not have to rewrite them for every request:

  • Prompt templates: Save recurring prompts with placeholders like [product name] and share them with the team. This way, the whole department works at the same quality level.
  • AI profile: Store your role and personal rules once in your personal settings, and persona details no longer need to go into every prompt.
  • Personal memories: On request, hermine.ai remembers your preferences and recurring projects and takes them into account automatically.

Common Pitfalls & Solutions

Usually, information or limits are missing. This table shows quick fixes:

Problem Solution Idea
Vague answers Add more context + format specification
Incorrect facts Provide sources, "if unsure, ask follow-up questions"
Text too long Set word or character limits
Inconsistent results Provide an example output, specify format and criteria precisely

Cheat Sheet to Take Away

Short phrases for daily work:

  • Verb + Object + Detail: "Write a 100-word pitch …"
  • If-then Rule: "If unclear, ask follow-up questions."
  • Example Output: "This is what the result should look like: …"
  • Activate Reasoning: "Think step by step."
  • End Format: "Answer as a Markdown table."

FAQ (Short & Sweet)

  1. What makes a good prompt? Clear task, context, format, and optionally persona, example, tone.
  2. How to refine quickly? Test prompt → check output → change 1 detail → test again.
  3. Consistent prompting? Formulate so specifically that similar inputs yield well comparable outputs. Language models work with probabilities, so completely identical answers are not guaranteed.
  4. Reasoning prompting? Instruction for the AI to reveal intermediate steps to reduce errors.

Conclusion

Prompt engineering is a matter of practice. With persona, task, context, format as a foundation, plus example & tone for finesse and reasoning prompts for logic cases, hermine.ai reliably delivers top-notch results. The more often you build and refine prompts, the more natural the process becomes.

Read More: Quick everyday tricks can be found under Tips & Tricks, the named methods under Overview of Prompt Techniques.

Was this page helpful?