Prompt Frameworks: The Best Structures for Better AI Results (With Examples)

Learn the prompt frameworks that work, from RTF and CO-STAR to RISEN, few-shot and prompt chaining, with examples, a comparison table and tips for choosing.

4.9
Top Rated Company

Building Scalable Digital Solutions for Startups & Enterprises

Prompt Frameworks
10 min read

Quick answer: A prompt framework is a simple, repeatable structure for writing AI prompts, such as RTF (Role, Task, Format) or CO-STAR (Context, Objective, Style, Tone, Audience, Response). Frameworks make sure you give the model the role, task, context, constraints, and output format it needs. Use a short framework for quick tasks, a detailed one for important content, and techniques like few-shot examples or prompt chaining for complex work.

Key Takeaways

  • Most prompt frameworks are memory aids for the same core ingredients: role, task, context, constraints, examples, and output format.
  • RTF and TAG suit quick tasks; CO-STAR, RISEN, and CRISPE suit detailed content and business work.
  • Few-shot examples, prompt chaining, and ReAct are research-backed techniques, not just acronyms.
  • Newer reasoning models think step by step on their own, so clear goals and context matter more than “let’s think step by step”.
  • The best results come from testing and refining prompts, not from picking the “perfect” framework.

You type a question into ChatGPT, Claude, or Gemini and get something generic back. You add more detail, try again, and finally get what you wanted on the fourth attempt. Prompt frameworks shorten that loop.

This guide explains the prompt frameworks people actually use, with a plain-English breakdown and an example for each, plus a comparison table, the reasoning techniques worth knowing, and how to pick the right framework for your task. If you’re just getting started with AI chat tools, our beginner’s guide to ChatGPT is a good first read.

What Is a Prompt Framework?

A prompt framework is a checklist, usually an acronym, that reminds you what to include in a prompt. Almost every framework is built from the same six ingredients:

IngredientWhat it tells the AIExample
RoleWho it should act as“You are a senior B2B copywriter.”
TaskWhat to do“Write a product launch email.”
ContextBackground it needsProduct details, audience, goals, past results
ConstraintsLimits and rulesUnder 150 words, no jargon, UK spelling
ExamplesWhat good looks likeA previous email that performed well
FormatHow to deliver the answerSubject line + 3 short paragraphs + CTA

Frameworks don’t unlock hidden powers in the model. Their value is consistency: they stop you from forgetting the context or format, and they make prompts easy to reuse across a team.

In short: A good prompt framework is simply a reliable way to give the AI everything a smart new colleague would need.

Do Prompt Frameworks Still Matter With Newer AI Models?

Yes, but their role has changed. Modern models are better at understanding loose instructions, and reasoning models work through problems step by step without being asked. Several vendors now advise giving reasoning models clear, direct goals and adjusting their reasoning or thinking settings rather than adding “think step by step”.

What still matters is context. Teams increasingly talk about context engineering: supplying the right documents, data, examples, and instructions, often through system prompts and retrieval. Frameworks remain a useful way to organise that context. Official guides such as Anthropic’s prompt engineering documentation recommend the same basics: be clear and specific, give examples, and structure longer prompts.

Prompt Frameworks Compared at a Glance

FrameworkComponentsBest for
RTFRole, Task, FormatQuick everyday tasks
TAGTask, Action, GoalShort, outcome-focused requests
APEAction, Purpose, ExpectationAnalysis and summaries with a clear use
CAREContext, Action, Result, ExampleBusiness tasks where a sample helps
CO-STARContext, Objective, Style, Tone, Audience, ResponseMarketing and audience-specific content
RISENRole, Instructions, Steps, End goal, NarrowingMulti-step tasks with clear limits
CRISPECapacity/Role, Insight, Statement, Personality, ExperimentExploring several creative options
CRAFTContext, Role, Action, Format, Target audienceDetailed, reusable content prompts
AIDA / PAS / BABCopywriting structuresSales pages, emails and ads
Few-shot, CoT, chaining, ReActTechniques rather than templatesComplex, accurate or multi-step work

Which Simple Prompt Frameworks Work Best for Everyday Tasks?

RTF (Role, Task, Format)

The most popular starter framework. Tell the AI who to be, what to do, and how to present the result.

Example: “You are an experienced HR manager (Role). Write five interview questions for a junior data analyst (Task). Present them as a numbered list with one line on what each question reveals (Format).”

TAG (Task, Action, Goal)

Useful when the outcome matters more than the persona.

Example: “Task: review our customer support process. Action: identify the three biggest causes of slow replies and suggest automation for each. Goal: cut average first response time to under four hours.”

APE (Action, Purpose, Expectation)

A quick way to explain why you need something, which helps the model choose what to include. (Don’t confuse it with “Automatic Prompt Engineer”, a research method that uses AI to generate and test prompts automatically.)

Example: “Summarise these customer reviews (Action) so our product team can prioritise fixes next sprint (Purpose). Give the top five issues with a count and one representative quote each (Expectation).”

CARE (Context, Action, Result, Example)

Adds an example of what good looks like, which is often the fastest way to get the right style.

Example: “We’re a dental clinic launching evening appointments (Context). Write a short Instagram caption (Action) that drives bookings from working professionals (Result). Here’s a past caption that performed well: … (Example).”

Bottom line: For most daily tasks, RTF plus one line of context and a clear format gets you 80% of the way.

Which Detailed Frameworks Suit Content and Business Work?

CO-STAR

CO-STAR (Context, Objective, Style, Tone, Audience, Response) was popularised after it won a GPT-4 prompt engineering competition in Singapore in 2023. It works well whenever voice and audience matter.

Example: “Context: we’re launching an AI budgeting app. Objective: convert free users to paid. Style: conversational and clear. Tone: reassuring. Audience: freelancers and small business owners. Response: hero headline, three feature blocks, and a short FAQ.”

RISEN

RISEN (Role, Instructions, Steps, End goal, Narrowing) is good for tasks with a process and boundaries.

Example: “Role: SEO strategist. Instructions: create a content plan for a B2B SaaS blog. Steps: research topics, group into clusters, prioritise by intent. End goal: a 3-month publishing calendar. Narrowing: 12 posts maximum, no topics already covered on our site.”

CRISPE and CRAFT

CRISPE (Capacity/Role, Insight, Statement, Personality, Experiment) asks the model for several variations, which suits brainstorming taglines or campaign ideas. CRAFT (Context, Role, Action, Format, Target audience) is a detailed all-rounder that many teams turn into reusable templates.

Copywriting frameworks: AIDA, PAS and BAB

  • AIDA (Attention, Interest, Desire, Action): guides the reader from hook to call to action; ideal for landing pages and emails.
  • PAS (Problem, Agitate, Solution): names a pain point, shows its cost, then presents your solution.
  • BAB (Before, After, Bridge): describes life now, life after, and how your product gets them there.

These come from classic copywriting rather than AI research, but they work well as the “Format” part of an AI prompt: “Write this email using the PAS structure.”

Which Prompting Techniques Improve Accuracy and Reasoning?

Unlike acronym frameworks, these techniques come from AI research and change how the model approaches a problem.

Few-shot prompting

Give two to five examples of input and ideal output before your real request. The model copies the pattern, format, and tone. It’s one of the most reliable ways to get consistent results, especially for classification, extraction, and brand voice.

Chain-of-thought prompting

Ask the model to reason step by step before answering. It helped older models with maths, logic, and multi-step questions. With today’s reasoning models, explicit chain-of-thought is often unnecessary; instead, ask for a brief explanation of the answer if you need to check it.

Self-consistency

Generate several independent answers to the same question and pick the one that appears most often. It improves reliability on reasoning tasks, at the cost of more time and tokens.

Prompt chaining

Break a big job into smaller prompts, where the output of one becomes the input of the next: research, then outline, then draft, then edit. Chaining makes each step easier to check and fix.

ReAct (Reason and Act)

The model alternates between reasoning and taking actions, such as searching the web or calling a tool, then uses the results to continue. It’s the pattern behind many AI agents.

Structure with delimiters and XML tags

Separate instructions from data using headings, triple quotes, or XML-style tags such as <document> and <instructions>. This reduces confusion in long prompts and makes outputs easier to parse.

Our advice: Use an acronym framework to organise what you say, and these techniques to improve how the model works through it.

Turn Better Prompts Into Reliable AI Features

Share your AI use case and data. Our team will design prompts, connect models to your systems, and build AI features your users can trust.

Request a Proposal

Which Thinking Frameworks Work Well Inside AI Prompts?

Classic problem-solving and communication models also make strong prompt structures:

FrameworkStructureUse it to
SCAMPERSubstitute, Combine, Adapt, Modify, Put to another use, Eliminate, Reverse/RearrangeGenerate product or campaign ideas
Socratic questioningA series of probing questionsChallenge assumptions and stress-test a plan
GROWGoal, Reality, Options, WillCoaching, planning and decision-making
STARSituation, Task, Action, ResultCase studies and interview answers
PREPPoint, Reason, Example, PointClear, persuasive arguments

How Do You Improve Prompts Over Time?

  1. Start with a baseline prompt using a simple framework.
  2. Review the output for accuracy, tone, completeness, and format.
  3. Change one thing at a time: add context, an example, or a constraint.
  4. Ask the model to critique its own answer against your criteria, then revise.
  5. Save prompts that work as templates your team can reuse.

Research goes further. Methods such as Reflexion have models reflect on mistakes and retry, while automated approaches like EvoPrompt and tools like DSPy generate and test many prompt variations to find the best performer. These are mostly used by developers building AI products rather than everyday users.

Need a Prompt Library Your Whole Team Can Use?

Talk to our AI experts about your workflows and tools. We'll help you build tested, reusable prompts and system prompts that give consistent results.

Schedule a Consultation

How Do You Choose the Right Prompt Framework?

Your taskStart with
Quick answer, email or summaryRTF or TAG
Marketing content for a specific audienceCO-STAR or CRAFT
Multi-step plan or processRISEN
Several creative optionsCRISPE or SCAMPER
Sales copyAIDA, PAS or BAB
Consistent format or brand voiceFew-shot examples
Complex research or long documentsPrompt chaining plus delimiters
AI agent that uses toolsReAct-style prompts

Worth knowing: You can combine frameworks: CO-STAR for the brief, few-shot examples for style, and AIDA for the structure.

Basic Prompt vs Framework Prompt: An Example

Basic prompt: “Write a LinkedIn post about our new app.”

With RTF plus context: “You are a B2B social media manager. Write a LinkedIn post announcing our expense-tracking app for small agencies. It saves owners about two hours a week on receipts. Audience: agency founders. Keep it under 120 words, start with a relatable problem, include one short customer quote placeholder, and end with a question to drive comments.”

The second prompt takes 30 seconds longer to write but usually removes three or four rounds of edits.

What Are the Most Common Prompting Mistakes?

  • Giving a task with no context about audience, purpose or constraints.
  • Asking for too many things in one prompt instead of chaining steps.
  • Leaving out the output format, then reformatting manually.
  • Using vague words like “good”, “engaging” or “professional” without examples.
  • Forcing “think step by step” on reasoning models that already do it.
  • Pasting sensitive or confidential data into tools that aren’t approved by your organisation.
  • Trusting outputs without checking facts, figures and sources.

How EncodeDots Helps Businesses Use AI

Good prompts are the first step; production AI needs more. EncodeDots helps companies design prompt libraries and system prompts, connect models to their own data, and build reliable AI features and agents through our generative AI development services and wider AI development services.

Planning an AI project? Talk to our AI team.

Conclusion

Prompt frameworks are less about magic acronyms and more about habits: say who the AI should be, what you need, why you need it, what to avoid, and how the answer should look. Start with RTF for quick tasks, use CO-STAR or RISEN for important work, add examples when style matters, and break big jobs into chained steps. Then keep testing and refining. That’s what consistently turns generic AI output into work you can actually use.

Frequently Asked Questions – Prompt Frameworks

- What are prompt frameworks?

Prompt frameworks are simple, repeatable structures, usually acronyms like RTF or CO-STAR, that remind you what to include in an AI prompt. Most cover the same essentials: the role the AI should take, the task, relevant context, constraints, examples and the output format. They help you get better results faster and reuse good prompts.

What is the best prompt framework for beginners?

RTF (Role, Task, Format) is the easiest starting point. Tell the AI who to act as, what to do and how to present the answer. Add one or two lines of context, such as the audience and purpose, and you’ll see a clear improvement over a one-line question.

What is the CO-STAR prompt framework?

CO-STAR stands for Context, Objective, Style, Tone, Audience and Response. It became popular after winning a GPT-4 prompt engineering competition in Singapore in 2023. It works especially well for marketing and communication tasks where the voice and target reader matter as much as the content.

Do prompt frameworks work with ChatGPT, Claude and Gemini?

Yes. Prompt frameworks are model-agnostic because they simply organise information in plain language. Each tool has its own strengths and official guidance, for example Claude responds well to XML-style tags, but the core ingredients of role, task, context, examples and format help with every major model.

Is chain-of-thought prompting still useful?

It depends on the model. Chain-of-thought helped older models handle maths and multi-step logic. Modern reasoning models already think step by step internally, so vendors recommend clear goals and adjusting reasoning settings instead. For standard chat models, asking for step-by-step reasoning can still help with tricky problems.

What is the difference between a prompt framework and a prompting technique?

A framework is a template for what to include in a prompt, such as RTF or RISEN. A technique changes how the model works on the task, such as few-shot examples, chain-of-thought reasoning, self-consistency, prompt chaining or ReAct. The best prompts often combine a framework with one or two techniques.

Can I create my own prompt framework?

Yes, and many teams do. Start with the six core ingredients (role, task, context, constraints, examples and format), then add anything specific to your work, such as brand guidelines or compliance rules. Test it on real tasks, refine it, and save it as a shared template.

Is prompt engineering being replaced by context engineering?

Not replaced, but expanded. Context engineering focuses on giving AI systems the right documents, data, tools and memory, not just well-worded instructions. Clear prompts are still the foundation; context engineering builds on them, especially for AI agents and business applications.
Piyush Chauhan, CEO and Founder of EncodeDots is a visionary leader transforming the digital landscape with innovative web and mobile app solutions for startups and enterprises. With a focus on strategic planning, operational excellence, and seamless project execution, he delivers cutting-edge solutions that empower thrive in a competitive market while fostering long-term growth and success.

Stay ahead with EncodeDots

Insights That Keep
Your Business Ahead.

Get expert insights on AI, software development, emerging technologies, and digital innovation delivered straight to your inbox.

No spam. Just valuable insights. Unsubscribe anytime.

Explore Other Topics

We specialize in delivering cutting-edge solutions that enhance efficiency, streamline operations, and drive digital transformation, empowering businesses to stay ahead in a rapidly evolving world.