Advanced Prompting

Advanced Prompting: The Practical Guide for hermine.ai

In this guide, you will learn how to solve complex tasks with multi-step prompts, clean structure, and a smart context strategy, and how to turn your best prompts into reusable building blocks for the whole team.

Why "Advanced"?

Perhaps you have already achieved initial success with the basic building blocks persona, task, context, format. However, in real projects, new challenges quickly arise: long documents, multiple subtasks, corporate tone, structured output for the BI team. For this, you need more refinement. In this guide, you will learn how to:

  1. Master complexity: Break down and clearly structure tasks.
  2. Ensure quality: Reduce errors and achieve a consistent style.
  3. Save time: Build reusable prompt components.

The toolkit consists of four prompt techniques (instruction, role, examples, reasoning) and six principles. Each technique works on its own; together they have the greatest impact.

Technique Shortcuts in 30 Seconds

Technique Brief Explanation Key Phrase
Instruction Prompt Explicit action instruction (single step or sequence) "Tell the language model exactly what to do."
Role Prompt Assigns a persona to the language model, controls tone & expertise "Give the model a hat, and it speaks in the appropriate jargon."
Example Prompt (Zero/One/Few-Shot) Provides input-output examples, shows patterns & format "Show what you want, and the model copies the pattern."
Reasoning Prompt Asks the model to reveal its thought process "Think aloud in steps, fewer calculation errors."

Starter Tip: Experiment with one technique first before combining multiple ones. This way, you can identify which lever has the greatest effect. The techniques in detail, each with an example, can be found under Overview of Prompt Techniques.

The Six Prompting Principles

1. Clear & Specific Instructions

Think of the language model as a good-natured but literal intern. If you ask "Tell me something about our target audiences," you'll get some text. However, if you formulate "Create a four-sentence overview of each of our three target audiences (trades, retail, industry), sorted by revenue potential", the model knows the length, structure, and goal, and is more likely to hit the mark.

Checklist
✓ Verb at the beginning (Describe, List, Calculate)
✓ Specific goal (enumeration, comparison, sequence)
✓ Constraints (character or word limit, target audience, language)

Mini Exercise: Ask the language model to create a checklist for a customer meeting. First vague ("Checklist customer meeting"), then specific ("15-item checklist for preparing a first meeting with a new customer from the food industry, including research steps and meeting goals"). Compare the results.

2. Structuring Prompts: Delimiters & XML Tags

Once a prompt exceeds two sentences, the language model may misinterpret section boundaries. Simple delimiters or XML tags act like colored dividers in a folder.

  • Delimiters: Quick separation

    ---
    # Task
    ...
    ---
    # Data
    ...
    

    Alternatively, use angle brackets <<TEXT>> or triple quotes """.

  • XML Tags: Templates & Reusability

    <task>
      <instruction>Translate each <paragraph/> into English.</instruction>
      <document>
        <paragraph id="1">...</paragraph>
      </document>
    </task>
    

    The model recognizes structure & hierarchy and can also output results as XML.

When to Use?
Delimiters = Quick ad-hoc prompts.
XML = Standardized workflows (e.g., support templates). The initial extra effort pays off through consistency, especially if you share such templates as a prompt template with the team.

3. Controlling Output Format

Results often end up in tickets, presentations, or databases. If you define the format in advance, you save rework.

Example: Markdown Table

Question: Create an overview of revenue by region (North, South, West) for Q1 to Q4 as a table.
Answer:
| Quarter | North | South | West |
|---------|-------|-------|------|
| Q1      | …     | …     | …    |

This also works with JSON, XML, bullet lists, or custom placeholders ([NAME]).

Quick Win: Tables in Markdown are automatically formatted in GitHub, Confluence, or Slack.

4. Chain Prompts: Splitting Tasks

Three complex instructions in one prompt overwhelm the model. Instead, break them down:

  • One Prompt, Clearly Staged
    "Step 1: Research, Step 2: Analysis, Step 3: Summary."

  • Multiple Prompts, for example for a quarterly report:

    1. Extract key statements from the annual report
    2. Compare with the previous year's figures and flag anomalies
    3. Formulate a management summary in 200 words
      → After each step, you can review and adjust.

Key Phrase: Critical data? → Use a multi-prompt chain to allow intermediate checks. If the chain repeats regularly, an agent that handles the process in a standardized way is worth setting up.

5. Context Strategy for Long Inputs

What does this mean? The context window is the amount of text the model can "consider" at once.

Tips to keep long dialogues on track:

  1. Define Glossary/Abbreviations: Consistent terms help the model establish references.
  2. Section IDs: Explicitly refer to <Section-3>.
  3. Interim Summaries: "Summarize the last 5 points in 80 words" to refresh memory.
  4. Offload context: Extensive manuals, contracts, or policies belong in a knowledge base, not in the prompt. Recurring personal information is handled automatically by personal memories.

6. The Role Boost (Priming)

A role activates the appropriate vocabulary and focuses the knowledge.

Typical roles and their benefits:

Role Benefit
Science Journalist Objective, clearly structured explanations
Growth Marketer Persuasive, audience-oriented texts
Mathematician Precise formulas, proofs, step-by-step
Software Architect Diagrams, code snippets, design patterns

Exercise: Have the same product text written once as a sober press release and once as a casual social media post. Notice how much tone and word choice change.

Iterating Like the Pros: The Self-Critique Loop

The first draft is rarely the best. Instead of editing yourself, let the model work against your criteria in three steps:

  1. Request a draft: "Write a draft for the customer notice about the price adjustment."

  2. Ask for self-critique:

    Review your draft critically: Is the tone appreciative? Is the reason for the adjustment explained clearly? Is a specific contact person missing? List all weaknesses.

  3. Request a revision: "Revise the draft and fix all the weaknesses you listed."

This loop works equally well for texts, concepts, and analyses and only costs two additional prompts.

Combining Techniques & Principles

Start Small: Instruction + Format.
Need Style? → Add Role.
Need Structure? → Add Few-Shot Examples.
Complex Logic? → Activate Reasoning.

Note: For complex logic, a true reasoning model is worth using in hermine.ai as well. Choose a model with the Thinking badge and set the thinking duration accordingly. Details under Understanding and Using Reasoning Models.

Quick Recipe (Template)

<task role="Data Protection Lawyer">
  <instruction>Extract all GDPR paragraphs and summarize each in no more than 50 words.</instruction>
  <document> … </document>
</task>

Save such templates as a prompt template; colleagues then only replace the <document> block.

FAQ: Common Beginner Questions

Question Short Answer
How do I prevent hallucinations? Provide context & sources, ask for reasoning.
What if the output is too long? Word/character limit or request "TL;DR".
How many Few-Shot Examples? Usually 3 to 7, as long as the context window allows.
Can I mix multiple roles? Better to use one main role + tone attribute than two competing roles.
Are XML Prompts slower? Minimally, but the benefit outweighs for reusable templates.

Conclusion: Next Steps

Create a personal prompt toolbox: roles, format snippets, delimiter templates. Test different combinations, analyze results, and refine continuously. Curiosity to experiment plus structure gets the maximum out of any language model.

Read More: The named methods, each with an example, under Overview of Prompt Techniques, and the right model for the task under Choosing the Right Model.

Was this page helpful?