AI explained

How to write prompts to get the best results from AI

A prompt is a brief for a fast, literal colleague. Learn a five-part pattern, see weak and strong examples from support work, and use a simple loop to improve.

By the Askocto team · · 4 min read

A good prompt reads like a brief for a fast, literal-minded colleague who has never worked at your company. It says who they are, what to do, what they need to know, what to avoid and what the result should look like. Write that clearly and the results improve more than any clever trick could. This article gives you a five-part pattern, examples from support work and a loop to refine prompts.

In short: State the role, the task, the context, the limits and the output format. Test with real inputs, change one thing at a time and keep the versions that work.

Why vague prompts give vague results

A model fills gaps with the most likely guess. If you write "Reply to this customer", it must guess the tone, the length, which policies apply and whether to offer anything. Sometimes the guess is fine. Often it is a generic, polite and slightly wrong reply.

Every detail you leave out is a decision you hand to the model. Prompting well means making the decisions that matter and leaving the rest open on purpose.

The five-part pattern

Part Question it answers Example
Role Who is the model acting as? You are a support agent for a small outdoor gear shop.
Task What exactly should it do now? Answer the customer's question about returns.
Context What facts should it use? The return policy text, the order details.
Limits What must it avoid or never do? Do not promise refunds. Do not discuss other customers.
Format What should the output look like? Two to four sentences, friendly, end with a next step.

You do not need all five every time. For a quick brainstorm, the task and format may be enough. For anything customers will read, include all five.

A weak prompt and a strong one

Weak:

Write a reply about the late order.

Strong:

You are a support agent for a small outdoor gear shop.

Task: write a reply to the customer message below about a late order.

Context: the order shipped four days ago. The carrier's tracking shows it is at a regional depot. Our policy: if an order is more than seven days late, we reship or refund.

Limits: do not promise a delivery date. Do not offer a refund yet. Do not blame the carrier.

Format: three to four sentences, warm and direct. End by saying what we will do if it has not arrived by day seven.

Customer message: "Where is my order? It was supposed to be here already."

The strong version takes a minute longer to write and removes most of the guesswork. It also shows why prompts for repeated tasks should become saved instructions: you write the role, limits and format once, and only the customer message changes.

Techniques that help

Give an example of the output you want

A short example of a good answer shows tone and length better than a paragraph of adjectives. Include one good example, and if a common mistake bothers you, one bad example labeled as such.

Separate instructions from material

Mark where the customer's message or a document begins and ends, so the model does not treat its contents as instructions. Labels such as "Customer message:" and "Policy text:" are enough.

Ask for a step or a check when accuracy matters

For tasks with several conditions, such as eligibility rules, ask the model to check each condition before answering. For more on this, see chain-of-thought prompting.

Say what to do when unsure

"If the policy text does not answer the question, say you will check with the team and do not guess." This single line prevents a lot of invented answers.

A loop for improving a prompt

  1. Collect real inputs. Ten to twenty examples, including awkward ones.
  2. Run the prompt on all of them. Do not judge from one result.
  3. Mark what is wrong. Wrong facts, wrong tone, wrong length, missing steps.
  4. Change one thing. Add a limit, tighten the format, supply a missing fact.
  5. Run again and compare. Keep the change if results improve across the set, not just on one example.
  6. Save the version. Write down what changed and why. In Askocto, drafts and published versions of an agent's configuration are kept under Settings > Versions, so you can see each change and restore an earlier one.

A prompt that grows into a wall of rules can become fragile, because rules compete and a long list gets partly ignored. If it keeps growing, check whether some rules belong in a procedure or a source rather than in the prompt.

Prompts and instructions in a support agent

In a support agent, the long-lived prompt is the agent's instructions, and the step-by-step parts are procedures. In Askocto, you write plain-language procedures under Build > Procedures, such as "Refund request: 1. Look up the order. 2. If under 30 days, offer a refund. 3. Otherwise offer store credit and escalate if the customer objects." Tone and behavior settings sit alongside them, and guardrails list the topics to refuse. Test changes in Test > Playground, which shows the procedure used for each reply. The guide to writing procedures shows how to structure them, and AI agent tone of voice covers the tone settings. The procedures feature page gives an overview.

Common mistakes

  • Stacking contradictory rules. "Be brief" and "explain everything" force a coin flip.
  • Hiding the key instruction. Put the most important rule near the top, and repeat it in the format line if it must not be missed.
  • Testing on one example. One good output proves little.
  • Asking for facts from memory. Supply the facts in the prompt or in sources.
  • Never rereading. Review real outputs weekly, because inputs change.

Frequently asked questions

What makes a prompt good?

It makes the important decisions explicit: role, task, context, limits and format. It also says what to do when information is missing.

How long should a prompt be?

As long as needed to remove guesswork, and no longer. Prompts of a few short paragraphs usually work better than a long list of rules.

Do I need special phrases or tricks?

No. Plain, specific language beats tricks. Be clear about what you want, give an example and test on several inputs.

How do I know if a new prompt is better?

Run both versions on the same set of real inputs and compare the results side by side. Keep the one that does better across the set.

Train an agent on your own help center

Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.

Keep reading

All articles
AI explainedgpt-5.6 sol
Feb 11, 20265 min read

GPT-5.6 Sol: a rollout plan for adopting a new model

A new model variant should reach customers in stages, not in one switch. Here is a ten-day plan with checkpoints, thresholds and a rollback path for a support agent.

Read article
AI explainedgpt-5.2
Jul 27, 20254 min read

GPT-5.2 for support: regression-test a model update

A revision such as GPT-5.2 is a change to your support agent, not just a better engine. Here is how to build a golden test set and compare old and new before you switch.

Read article
AI explainedchatgpt for sales
May 7, 20254 min read

ChatGPT for sales: prompts, limits and a safe workflow

A general assistant speeds up call prep and follow-up writing. It also invents details if you let it. Here is a workflow with prompts, checks and a clear stopping point.

Read article