AI & Agentic

Structured Prompting: The RTFC Framework for Better AI Output

The RTFC framework (Role - Task - Format - Context) is the simplest structure for getting consistently better output from AI. Same request, structured prompt - dramatically better results.

Structured prompting: The RTFC framework for better AI output

Bad prompts aren’t a sign of low intelligence - AI just needs enough information to do good work. The RTFC framework (Role - Task - Format - Context) is the simplest structure for getting better output immediately.

Why structure matters

Most beginners write prompts like: “Write me an email.”

AI doesn’t know:

  • Who is it for? What tone?
  • What is it about?
  • Long or short? What format?
  • What’s the next step?

Result: generic output, multiple rounds of revision, more time spent than just writing it yourself.

A good prompt means you give AI enough information so it doesn’t have to guess.


The RTFC framework

R - Role

Tell AI what role to play to get the right perspective and tone.

“You are a B2B copywriter specializing in SaaS…” “You are a senior developer with 10 years of React experience…” “You are a marketing consultant for SMBs in Southeast Asia…”

Why it matters: AI can answer the same question from many angles. Role tells AI which angle to take - a developer sees a problem differently than a marketer.


T - Task

Describe exactly what you need. The more specific, the better.

“Write a follow-up email after a 30-minute consulting call” - specific (instead of “write an email” - too vague)

Tip: Use clear action verbs: write, analyze, summarize, compare, create a list, suggest, review, translate…


F - Format

What do you want the output to look like?

“Under 150 words, ending with one clear CTA” “Bullet points format, 5 main ideas” “Comparison table with 3 columns: Feature / Pros / Cons” “Professional but friendly tone, in plain English”

Why it matters: If you don’t specify, AI picks its own format - usually longer than needed and not suited to your context.


C - Context

Background information so AI understands your specific situation.

“The recipient is a CFO at a 50-person company considering a solution but concerned about onboarding costs…”

Tip: Context doesn’t need to be long. 2-3 sentences of key information is usually enough. Focus on what genuinely affects the output.


Direct comparison

Unstructured prompt:

Write an email to a customer

Structured prompt (RTFC):

[R] You are a B2B copywriter.
[T] Write a follow-up email after a 30-minute consulting call.
[F] Professional but friendly tone, under 150 words, 
    ending with one CTA to schedule a demo.
[C] The recipient is a Marketing Manager at a fintech company,
    interested in an email automation solution, concerned about
    how long it will take their team to onboard.

Try both and compare the output - the difference is immediate.


Example 2 - Analyzing feedback

RTFC isn’t just for writing. It applies to any task:

Unstructured prompt:

Analyze customer feedback

Structured prompt (RTFC):

[R] You are a product analyst experienced in analyzing user feedback.
[T] Read the 10 pieces of feedback below and find common patterns.
[F] Respond in this structure:
    - Top 3 pain points (with number of mentions)
    - Top 3 things users are happy with
    - 1 surprising insight I may not have noticed
    - 2 prioritized action items
[C] This feedback is from Pro-tier users, 3-6 months into using the product.
    I need to present findings to the CPO next week.

[Paste the 10 feedback items here]

Same data, structured prompt produces output ready for a presentation - instead of a generic paragraph that still needs processing.


3 common mistakes when writing prompts

1. Role too generic: “You are an AI assistant” doesn’t help. Replace it with something specific like “You are a growth marketer with B2B SaaS experience in Southeast Asia”.

2. Skipping Format: Forgetting to specify format is the most common reason output comes back too long and needs heavy revision. Always add “Reply in under X words” or “Use bullet points, max 5 items”.

3. One prompt and done: If the first output isn’t right, don’t rewrite from scratch - iterate. Follow up with: “Make it 30% shorter”, “Use a firmer tone”, “Add one specific example”. AI keeps context from previous prompts within the same chat.


When you don’t need all 4 parts

RTFC is a framework, not a rigid rule. For simple tasks (translating a paragraph, reformatting text), you don’t need all 4 parts.

Practical principle: If AI output misses the mark, ask yourself which part of RTFC is missing - then add that part to the prompt.


Save templates for reuse

Once you have an RTFC prompt that works well, save it as a template:

[R] You are a [role].
[T] [Specific task] with the following information:
    - [Input 1]: [...]
    - [Input 2]: [...]
[F] [Format and length requirements]
[C] [Important context]

Next time, just fill in the placeholders - no need to rewrite from scratch.

For more on managing and reusing prompts effectively, read: Optimize AI Chat History and Session Log

✦ Miễn phí

Muốn nhận thêm kiến thức như thế này?

Mình tổng hợp AI, marketing và tech insights mỗi tuần - gọn, có gu.

Không spam. Unsubscribe bất cứ lúc nào.