What Is Prompt Engineering? Examples and Practical Templates

    Home / Blog / What Is Prompt Engineering? Examples and Practical Templates
    September 5, 2025Updated November 29, 202611 min readAIPrompt Engineering

    Prompt engineering is the process of writing, testing, and improving instructions so an AI model produces a useful result for a defined task.

    A prompt can include the task, background information, source material, examples, constraints, and the required output format. You can apply these ideas in Claude, ChatGPT, or an AI application. A better prompt can help, but it does not guarantee a correct answer or give the model access to your company systems.

    This guide includes a reusable prompt template, three business examples, and a decision framework for choosing between a team AI tool and a custom agent.

    A prompt engineering example: vague request versus useful instruction

    Consider a sales manager who needs a follow-up email after a meeting.

    Vague prompt

    Write a follow-up email to this customer.
    

    More specific prompt

    Task: Draft a follow-up email using only the meeting notes below.
    Audience: A finance manager evaluating invoice automation.
    Goal: Confirm the problem and request a 30-minute discovery meeting.
    
    Rules:
    - Use no more than 150 words.
    - Mention the customer's stated invoice volume only if present in the notes.
    - Do not invent savings, delivery dates, or product capabilities.
    - If a required fact is missing, list it under "Questions for the owner".
    
    Output:
    1. Subject line
    2. Draft email
    3. Questions for the owner
    
    Meeting notes:
    [Insert approved notes without confidential customer data.]
    

    The second prompt defines what the model should do and what a reviewer should check. It creates a draft for approval. It does not send the email or establish that the claims are correct.

    A reusable prompt engineering template

    Use this as a starting point. Replace the bracketed fields with the information needed for your task.

    Task: [The specific work to complete.]
    Audience: [Who will use the result.]
    Context: [Relevant business background.]
    Sources: [Approved documents or data supplied for this task.]
    
    Requirements:
    - [Facts or steps that must be included.]
    - [Boundaries: what must not be assumed or done.]
    - [How to handle missing or conflicting information.]
    
    Output format: [Headings, table columns, fields, or another clear format.]
    Acceptance checks: [How a reviewer will decide whether the result is usable.]
    
    Input:
    [The material to process, clearly separated from the instructions.]
    

    Start with a real task and a definition of acceptable output. Anthropic's prompt engineering overview recommends establishing success criteria and a way to test them before tuning a prompt.

    Six prompt engineering techniques to use first

    1. Define one clear task

    Ask for a specific deliverable, such as a draft reply, a document summary, or a classification. Separate unrelated jobs so you can inspect each result.

    2. Supply relevant context and sources

    Provide the policy, product notes, or records needed for the answer. Separate source content from instructions. A role such as “support editor” cannot replace missing product facts.

    3. Specify the output format

    State the headings, table columns, or fields you need. If software consumes the output, validate its structure and values in code. A request for JSON alone does not establish a reliable integration.

    4. Show representative examples

    Add examples when the desired tone or classification boundary is difficult to describe. Include an unusual case, rather than showing only easy inputs.

    5. Define limits and missing-information handling

    Explain what the model should do when evidence is incomplete. For example, ask it to identify missing facts rather than create a delivery commitment.

    6. Test and revise against the same cases

    Compare prompt versions using a fixed set of representative inputs. Record the model and settings alongside the prompt. Ask for a concise explanation or evidence where useful; a long explanation is not proof of correctness.

    These techniques follow the general direction of Anthropic's current prompting guidance. Check the guidance for your selected model before applying model-specific methods.

    Three business prompts you can adapt

    The following examples are proposed templates. They are not results from a production benchmark. Use approved or synthetic information when testing them.

    Customer support: draft a reply from an approved policy

    Draft a response to the customer using only the supplied returns policy.
    Include the relevant policy clause and the next step the customer can take.
    If the policy does not cover the request, flag it for a support supervisor.
    Do not promise a refund, exception, or dispatch date that is not in the policy.
    
    Output: Draft reply | Supporting clause | Escalation required and reason
    
    Policy: [Approved policy]
    Customer request: [Redacted request]
    

    Where a prompt is enough: a support worker supplies the policy and reviews the draft.

    Where integration adds value: the workflow needs current order status, ticket ownership, permission checks, and an approved update to the helpdesk. That is a candidate for a custom AI agent.

    Finance: identify missing invoice information

    Review the supplied invoice text for missing information.
    Extract the supplier, invoice number, date, currency, subtotal, tax, and total.
    Mark absent or unreadable values as "Needs review".
    Do not calculate a missing value or decide whether payment should be approved.
    
    Output: Field | Extracted value | Evidence from the document | Review note
    
    Invoice text: [Approved or synthetic invoice text]
    

    Where a prompt is enough: an employee checks one document and verifies the extracted values.

    Where integration adds value: the workflow must match purchase orders, check receipts, manage exceptions, and record an approved action. See our invoice matching use case.

    Operations: turn meeting notes into an action register

    Create an action register from the meeting notes.
    Include only actions explicitly agreed in the notes.
    Do not assign an owner or deadline unless one is stated.
    List unresolved decisions separately.
    
    Output: Action | Stated owner | Stated deadline | Source note
    Then list: Unresolved decisions
    
    Meeting notes: [Approved notes]
    

    Where a prompt is enough: someone prepares and checks the action register.

    Where integration adds value: approved actions must be created in project tools, assigned to the right accounts, and monitored across systems.

    How to test whether a prompt is good enough

    Choose checks before reviewing the answers. A polished response can still omit a required fact or invent a commitment.

    CheckExample acceptance question
    AccuracyCan each material claim be traced to the supplied source?
    CompletenessAre the required fields or steps present?
    UncertaintyAre missing and conflicting facts identified?
    FormatCan the intended reader or system use the result?
    BoundariesDid the model stay within the allowed task and actions?
    Business effortHow much review and correction did the result require?

    Keep a small evaluation set with typical inputs, incomplete inputs, and difficult exceptions. Change one major prompt element at a time. Track accepted output and review time, not only how quickly the model replies.

    Anthropic's evaluation guidance explains how measurable criteria support this process. The table above is our suggested business review checklist.

    Prompt engineering, Claude for your team, or a custom AI agent?

    These options solve different needs. A prompt controls instructions. A subscription provides access to a product and its included features. A custom system adds the integrations and controls required for a specific workflow.

    Your situationSuitable next stepWhat still needs checking
    One person drafts, summarises, or analyses supplied materialImprove the prompt in your existing AI toolFacts, confidentiality, and review effort
    A team needs shared AI access and purchasing supportCompare Claude plans and rollout requirementsCurrent plan terms, administration, usage, and procurement
    Work follows a fixed sequence across approved systemsAssess a defined automation workflowAccess rights, validation, exceptions, and ownership
    Work requires dynamic tool selection and several decisionsAssess a custom AI agentTool permissions, evaluation, approval gates, cost, and monitoring

    Anthropic distinguishes predefined workflows from agents. Start with the simplest design that meets the task. More autonomy can add cost and operating complexity.

    Buying Claude for a Malaysian or Singaporean company

    If your team needs Claude access, begin with our Claude plan guide. Then review Anchor Sprint's Claude purchasing and implementation services.

    If procurement requires a purchase order or local invoicing, the callout below provides a direct enquiry route. A Claude subscription and a custom agent project are separate purchases.

    Building a custom agent around your workflow

    Bring one concrete process to the first discussion. Identify its inputs, the systems involved, the permitted actions, and the person who approves exceptions.

    For example, “prepare a support reply” is a drafting task. “Check the order, propose a resolution, obtain approval, and update the ticket” requires an integrated workflow.

    Our custom AI agent service covers workflow design and system integration. For an initial scope, tell us about your process. Useful details include:

    • The task and its current owner.
    • Approximate monthly volume and current review effort.
    • Systems and data the workflow needs.
    • Actions that require human approval.
    • A measurable result for a small pilot.

    Prompt text alone cannot enforce access permissions, make incorrect data reliable, or prove that an action succeeded. Those controls belong in the application and operating process.

    Frequently asked questions

    What is the difference between prompting and prompt engineering?

    Prompting is giving an instruction to an AI model. Prompt engineering adds deliberate design, testing, and revision against a defined task and acceptance criteria.

    Do I need coding skills to improve a prompt?

    You can improve instructions, context, and examples without writing code. Integrating tools, validating structured output, and operating a production workflow can require engineering work.

    Will a paid Claude plan make every prompt accurate?

    No. Product access does not remove the need for clear instructions, reliable sources, and review. Select a plan for its current features and business requirements.

    When should a business build an agent instead of another prompt?

    Consider an integrated workflow when work repeatedly needs current system data, tool actions, permissions, and exception handling. Assess whether fixed automation meets the need before adding agent autonomy.

    References and update notes

    Updated on 29 November 2026. The templates and business checklist are original examples from Anchor Sprint. They have not been benchmarked across models.

    Dikuasakan oleh EzyChat