Writing structured prompts (templates)
From Random Prompts to Professional Templates
Imagine pannunga โ neenga oru builder kitta veedu kattanum nu solreenga.
Approach 1: "Oru nalla veedu kattunga" โ Builder confused. Evlo rooms? Budget? Style? Yaar ku?
Approach 2: "3 BHK, modern style, โน50L budget, 4-person family ku, east-facing, 1200 sq ft, modular kitchen venum" โ Builder exactly enna venum nu theriyum!
AI prompting la um same dhaan. Structured prompts = detailed blueprint. Random prompts = vague instructions.
Previous article la Zero-shot, Few-shot, CoT learn panneenga. Now frameworks learn pannunga โ these are SYSTEMS for writing consistently great prompts every single time.
Indha article la cover pannaporadhu:
- ๐๏ธ RICE Framework โ 4-step prompt structure
- ๐จ CREATE Framework โ 6-step advanced structure
- ๐ญ Role-based prompting โ AI ku roles assign pannunga
- ๐ 5 ready-to-use templates โ copy-paste and customize
- โก Real before/after examples โ difference feel pannunga
Indha article mudichaa, neenga "prompt templates" oru personal library maintain panna start pannuvenga. Let's build that library! ๐
What Are Prompt Frameworks?
Prompt framework = oru structured method to organize your instructions to AI. Random ah type pannradhu ku badhila, oru system follow pannreenga.
Why frameworks matter:
Without framework:
*"Write me a blog post about AI"*
โ Generic, unfocused, probably 500 words of fluff
With framework:
*"Role: Tech blogger for Tamil audience. Task: Write a 300-word blog post about how AI is changing Indian IT jobs. Tone: Conversational, optimistic. Format: 3 sections with headers. Include: 2 statistics, 1 real company example."*
โ Focused, specific, exactly what you want!
The 2 main frameworks:
RICE Framework (Simple, 4 components):
- Role โ Who should the AI be?
- Instruction โ What should it do?
- Context โ Background information
- Expectation โ What output format/quality you expect
CREATE Framework (Advanced, 6 components):
- Character โ AI's persona/expertise
- Request โ Specific task
- Examples โ Few-shot examples (optional)
- Adjustments โ Constraints, tone, length
- Type โ Output format (list, essay, code, table)
- Extras โ Additional requirements
Which one to use?
| Scenario | Framework | Why |
|---|---|---|
| Quick email drafts | RICE | Simple, fast |
| Content creation | CREATE | More control needed |
| Code generation | RICE | Straightforward tasks |
| Complex reports | CREATE | Multiple constraints |
| Daily tasks | RICE | Speed matters |
| Client deliverables | CREATE | Quality critical |
Framework Architecture โ How Structured Prompts Flow
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ STRUCTURED PROMPT ANATOMY โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ โโโโ RICE FRAMEWORK โโโโโ โโโ CREATE FRAMEWORK โโโ โ โ โ โ โ โ โ โ โ R: Role/Persona โ โ C: Character โ โ โ โ โโโโโโโโโโโโโโโโ โ โ R: Request โ โ โ โ โ "You are a โ โ โ E: Examples โ โ โ โ โ senior dev" โ โ โ A: Adjustments โ โ โ โ โโโโโโโโฌโโโโโโโโ โ โ T: Type of output โ โ โ โ โ โ โ E: Extras โ โ โ โ I: Instruction โ โโโโโโโโโโโโฌโโโโโโโโโโโโ โ โ โ โโโโโโโโโโโโโโโโ โ โ โ โ โ โ "Debug this โ โ โ โ โ โ โ Python code"โ โ โ โ โ โ โโโโโโโโฌโโโโโโโโ โ โ โ โ โ โ โ โ โ โ โ C: Context โ โ โ โ โ โโโโโโโโโโโโโโโโ โ โ โ โ โ โ "FastAPI app, โ โ โ โ โ โ โ Python 3.11" โ โ โ โ โ โ โโโโโโโโฌโโโโโโโโ โ โ โ โ โ โ โ โ โ โ โ E: Expectation โ โ โ โ โ โโโโโโโโโโโโโโโโ โ โ โ โ โ โ "Fix + explainโ โ โ โ โ โ โ in comments" โ โ โ โ โ โ โโโโโโโโฌโโโโโโโโ โ โ โ โ โโโโโโโโโโโผโโโโโโโโโโโโโโโ โ โ โ โ โ โ โ โผ โผ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ COMBINED PROMPT โ โ โ โ [System/Role] + [Task] + [Context] + โ โ โ โ [Examples] + [Constraints] + [Format] โ โ โ โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ โ โผ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ HIGH-QUALITY AI OUTPUT โ โ โ โ Focused โข Formatted โข Consistent โข Useful โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
RICE Framework โ Detailed Breakdown
RICE simple but powerful. Daily tasks la idhu podhum.
R โ Role (เฎฏเฎพเฎฐเฏ เฎฎเฎพเฎคเฎฟเฎฐเฎฟ?):
AI ku oru persona assign pannunga. Idhu output quality dramatically change pannudhu.
Examples:
- *"You are a senior marketing manager with 10 years experience"*
- *"You are a Tamil teacher explaining to 10-year-old students"*
- *"You are a startup CTO evaluating technology choices"*
I โ Instruction (เฎเฎฉเฏเฎฉ เฎเฏเฎฏเฏเฎฏเฎฃเฏเฎฎเฏ?):
Clear, specific task. Vague instruction = vague output.
โ "Write about marketing"
โ "Write 5 Instagram caption ideas for a new coffee shop launch in Chennai"
C โ Context (Background เฎเฎฉเฏเฎฉ?):
Relevant information AI ku theriyaadha or remember pannanum.
- Target audience details
- Industry/domain specifics
- Previous related work
- Constraints (budget, timeline, etc.)
E โ Expectation (Output เฎเฎชเฏเฎชเฎเฎฟ เฎตเฏเฎฃเฏเฎฎเฏ?):
Exact format, length, tone, style specify pannunga.
- *"Output as a markdown table with 3 columns"*
- *"Keep it under 200 words, professional tone"*
- *"Include code examples in Python 3.11"*
Full RICE Example:
*"Role: You are a senior HR manager at a mid-size IT company in Chennai.*
*Instruction: Draft a rejection email to a candidate who reached the final round.*
*Context: The candidate, Priya, was strong technically but lacked leadership experience. We want her to reapply in 6 months.*
*Expectation: Professional, empathetic tone. Under 150 words. Include specific feedback and encouragement to reapply."*
Idhu random ah "write a rejection email" nu type pannaa varadhu la โ 10x better output varum! ๐ฏ
CREATE Framework โ Advanced Control
CREATE RICE oda big brother maari. Complex tasks ku more control tharum.
C โ Character (Persona + Expertise):
RICE oda Role maari, but more detailed. Personality, expertise level, communication style ellam specify pannalaam.
*"You are Dr. Ramesh, a data science professor at IIT Madras with 15 years experience. You explain complex concepts using Tamil analogies and real Indian examples."*
R โ Request (Specific Task):
What exactly you want. Multiple sub-tasks irundaa, numbered list la kudungo.
*"1. Explain what Random Forest is. 2. Compare with Decision Tree. 3. Give a real-world use case from Indian banking."*
E โ Examples (Optional Few-shot):
Pattern establish pannanum na, examples add pannunga.
*"Like this style: 'Random Forest enna na, imagine pannunga 100 doctors oru patient ah examine pannuraanga...'"*
A โ Adjustments (Constraints & Tone):
Length, tone, what to include/exclude, language mix.
*"Tone: Casual, conversational Tanglish. Length: 300-400 words. Avoid: Complex math formulas. Include: At least 2 analogies."*
T โ Type (Output Format):
Exact format specify pannunga.
*"Format: Blog post with H2 headers, bullet points for key concepts, a comparison table, and a summary box at the end."*
E โ Extras (Additional Requirements):
SEO keywords, call-to-action, references, anything else.
*"Include SEO keywords: 'machine learning Tamil', 'random forest explained'. End with 3 discussion questions."*
When CREATE > RICE:
| Scenario | RICE | CREATE |
|---|---|---|
| Quick email | โ | Overkill |
| Blog post | OK | โ Better |
| Technical doc | Limited | โ Perfect |
| Marketing campaign | Limited | โ Essential |
| Course content | Limited | โ Ideal |
Role-Based Prompting โ The Power of Personas
Role-based prompting = AI ku oru specific identity assign pannunga. Idhu surprisingly powerful technique.
Why roles work:
LLM training data la experts oda content irukku โ doctors, lawyers, teachers, developers. Role assign pannaa, AI adha category oda knowledge and communication style activate pannudhu.
Role writing formula:
*"You are a [expertise level] [profession] with [X years] experience in [specific domain]. You [key characteristic]. Your audience is [target]."*
10 Powerful Roles:
| # | Role | Best For |
|---|---|---|
| 1 | Senior Software Engineer | Code reviews, architecture decisions |
| 2 | Marketing Strategist | Campaign planning, copy writing |
| 3 | University Professor | Explaining complex concepts simply |
| 4 | Startup Mentor | Business advice, pitch feedback |
| 5 | Data Analyst | Data interpretation, visualization advice |
| 6 | UX Designer | User experience, interface feedback |
| 7 | HR Manager | People management, policy drafting |
| 8 | Financial Advisor | Budget planning, investment basics |
| 9 | Content Creator | Social media, blog writing |
| 10 | Project Manager | Planning, timeline estimation |
Role stacking โ Multiple roles combine pannalaam:
*"You are a senior developer WHO ALSO has experience as a technical writer. Your code explanations are clear enough for junior developers to understand."*
Common mistake: Over-specific roles that don't exist in training data.
โ *"You are a blockchain-powered quantum-AI specialist for Tamil Nadu agriculture"*
โ *"You are an agricultural technology consultant familiar with Indian farming practices"*
Pro tip: Role description la negative instructions um add pannunga:
*"You are a financial advisor. You do NOT give specific stock recommendations. You focus on general financial literacy and principles."*
Analogy โ Movie Director Giving Instructions
๐ฌ Movie director analogy:
Unstructured prompt = Director solluvaaru: "Act pannu." Actor confused โ comedy aa? tragedy aa? love scene aa?
RICE prompt = Director solluvaaru: "Nee oru father (Role). Un daughter marriage fix aagirukku, un emotions show pannu (Instruction). She's marrying someone from another city, you're happy but sad she's leaving (Context). Subtle ah, overacting vendaam, tears varaama control pannu (Expectation)."
CREATE prompt = Director solluvaaru everything above + "Previous scene la nee laughing ah iruntha (Example). Camera close-up la irukku so micro-expressions matter (Adjustment). Dialogue illa, expression only (Type). Background music slow violin irukku, pace match pannu (Extras)."
Same actor, same scene โ but structured direction gives Oscar-worthy performance vs random acting!
Unnoda AI um ipdi dhaan โ better instructions = better performance. Framework use pannunga, results feel pannunga! ๐
How Structured Prompts Improve AI Output
Under the hood, structured prompts epdi help pannudhu nu paapom.
1. Attention Mechanism Optimization:
LLM attention mechanism specific tokens la focus pannudhu. Structured prompt la clear sections irukku โ Role, Task, Format โ so attention correctly distributed aagum. Vague prompt la attention scattered, output unfocused.
2. Context Window Efficiency:
Every token counts. Structured prompts waste tokens avoid pannudhu โ no repeated information, no ambiguity that needs clarification. Same context window la more useful information fit aagum.
3. Output Anchoring:
Format specification ("as a table", "in 3 bullet points") AI oda output generation ku strong anchor kudukudhu. Without it, AI default format use pannudhu โ which may not be what you want.
4. Role Priming:
Role assignment first tokens la varuvadhaal, subsequent generation ellam adha role oda "lens" through filter aagum. "You are a doctor" sonna, medical terminology, cautious language, evidence-based reasoning automatically increase aagum.
Before vs After comparison:
| Metric | Unstructured | RICE | CREATE |
|---|---|---|---|
| Relevance | 60% | 85% | 95% |
| Format accuracy | 40% | 80% | 95% |
| Consistency | 50% | 85% | 90% |
| First-try success | 30% | 70% | 85% |
| Tokens wasted on iterations | High | Low | Very Low |
Key insight: Structured prompts la neenga 5 min extra spend pannreenga prompt writing la. But 3-4 iterations save aagum. Net time savings: 60-70%!
Oru professional always tools use pannuvaaru โ carpenter ruler use pannuvaaru, doctor stethoscope use pannuvaaru. Unnoda tool = prompt framework. Use it! ๐ ๏ธ
5 Ready-to-Use Prompt Templates
Real-World Use Cases by Role
Different roles ku different template usage:
๐จโ๐ป Software Developer:
| Task | Framework | Key Elements |
|---|---|---|
| Code generation | RICE | Language, framework, requirements |
| Bug debugging | RICE + CoT | Error message, stack trace, "think step by step" |
| API documentation | CREATE | Audience level, examples, format standards |
| Architecture review | CREATE | System context, constraints, scale requirements |
| PR description | RICE | Changes summary, impact, testing notes |
๐ Marketing Professional:
| Task | Framework | Key Elements |
|---|---|---|
| Social media posts | RICE | Platform, audience, brand voice, CTA |
| Ad copy variations | CREATE + Few-shot | Examples of good copy, A/B test variants |
| Campaign strategy | CREATE | Budget, timeline, KPIs, channels |
| Competitor analysis | RICE + CoT | Market context, analysis framework |
| Email newsletter | CREATE | Subscriber segment, past performance data |
๐ Student:
| Task | Framework | Key Elements |
|---|---|---|
| Concept explanation | RICE | Subject, current knowledge level |
| Essay outline | CREATE | Topic, word limit, citation style |
| Exam preparation | RICE + CoT | Subject, difficulty level, time limit |
| Research summary | CREATE | Paper/source, audience, key findings |
| Study plan | RICE | Subjects, timeline, exam dates |
๐ HR Professional:
| Task | Framework | Key Elements |
|---|---|---|
| Job descriptions | CREATE | Role level, company culture, requirements |
| Interview questions | RICE | Role, experience level, competencies |
| Policy drafting | CREATE | Legal requirements, company size, industry |
| Performance review | RICE | Employee context, review period, goals |
| Training material | CREATE | Topic, audience level, duration |
Pro tip: Unnoda role ku relevant templates oru document la save pannunga. Reuse, refine, repeat! ๐
Framework Limitations & Common Mistakes
โ ๏ธ Frameworks use pannumbodhu avoid pannunga:
Over-engineering:
- โ Simple question ku CREATE full framework: "What's 2+2?" ku 6-part prompt โ overkill!
- โ Simple tasks ku simple prompts. Framework complex tasks ku dhaan.
Conflicting instructions:
- โ "Be concise" + "Include detailed examples with explanations" โ AI confused aagum
- โ Pick one priority. Concise OR detailed, not both.
Role hallucination:
- โ "You are a doctor" โ AI gives medical advice it shouldn't
- โ Always add: "This is for educational purposes. Recommend consulting a real professional."
Template rigidity:
- โ Same template for every task without modification
- โ Templates are starting points โ customize for each specific use case
Missing context:
- โ Great structure but no relevant context: RICE without the C
- โ Context is often the most important part โ don't skip it!
Format overload:
- โ "Output as a table with headers, then a bullet list, then a paragraph summary, then a flowchart, then..."
- โ One primary format. Maybe one secondary. Keep it focused.
Language mismatch:
- โ English framework for Tamil output without specifying language
- โ Explicitly state: "Respond in Tanglish (Tamil + English mix)"
Remember: Frameworks are tools, not rules. Break them when it makes sense! ๐ง
Why Structured Prompts Matter for Your Career
Structured prompting oru skill alla โ oru competitive advantage.
The productivity multiplier:
Average knowledge worker AI use pannumbodhu 3-4 iterations venum to get good output. Structured prompt use pannaa? First try la 80%+ quality. Over a week, indha time savings massive.
| Without Framework | With Framework |
|---|---|
| 4 iterations average | 1-2 iterations |
| 20 min per task | 7 min per task |
| Inconsistent quality | Consistent quality |
| Hard to replicate | Easy to share & reuse |
| Individual skill | Team capability |
Team impact:
- Prompt templates share pannalaam across team
- New team members faster onboard aagum
- Output quality standardized aagum
- Best practices documented and improved over time
Career advantages:
- Efficiency โ Same work, less time, better quality
- Leadership โ You can teach others, become the AI expert
- Innovation โ Better prompts = better AI outputs = better ideas
- Documentation โ Your prompt library is intellectual property
Industry demand:
Companies now hiring "Prompt Engineers" โ but really, EVERY role needs structured prompting skills. Marketing, engineering, HR, sales โ ellam AI-assisted workflows adopt pannudhu.
Your action item: Start building a personal Prompt Library today. Notion, Google Doc, or simple text file โ doesn't matter. Save your best prompts. Categorize by task type. Refine over time. In 6 months, you'll have a powerful toolkit that makes you 3x more productive! ๐
โ Key Takeaways
๐ 5 Things to Remember:
- RICE = Simple tasks. Role + Instruction + Context + Expectation. Daily emails, quick content, code tasks โ RICE podhum. 30 seconds la framework setup pannalaam.
- CREATE = Complex tasks. Character + Request + Examples + Adjustments + Type + Extras. Reports, campaigns, documentation โ CREATE use pannunga. Extra 2 min investment = dramatically better output.
- Role-based prompting is powerful. "You are a senior [role]" add pannaa, output quality noticeably improve aagum. Roles AI oda relevant knowledge activate pannudhu.
- Templates save time. 5 core templates maintain pannunga. Reuse and refine. First-try success rate 30% โ 80% pogum.
- Don't over-engineer. Simple task ku simple prompt. Framework complex tasks ku dhaan. Right tool for right job โ previous article la learn pannadha remember pannunga!
Quick decision guide:
| Question | Answer | Use |
|---|---|---|
| Task takes < 1 min? | Yes | No framework, direct prompt |
| Need specific format? | Yes | RICE minimum |
| Multiple constraints? | Yes | CREATE |
| Repeatable task? | Yes | Create a template |
| Team task? | Yes | Documented CREATE template |
๐ Mini Challenge โ Build Your First Template
๐ฏ Challenge: Create your personal prompt template library!
Step 1 (5 min): Pick your top 3 most common AI tasks. Examples:
- Writing emails
- Summarizing documents
- Generating social media posts
- Debugging code
- Explaining concepts
Step 2 (10 min): For each task, write a RICE template:
- Fill in Role, Instruction, Context, Expectation
- Leave placeholders for variable parts: [topic], [audience], [length]
Step 3 (5 min): Test one template on ChatGPT/Gemini:
- Fill in the placeholders with real values
- Compare output with your usual unstructured prompt
- Note the quality difference!
Step 4 (Ongoing): Save your templates somewhere accessible:
- Notion page
- Google Doc
- Notes app
- Even a text file on desktop!
Bonus Challenge: ๐ฅ
Take the CREATE framework and write a template for the MOST COMPLEX task you do at work. Share it with a colleague. Get their feedback. Refine it.
Expected outcome: After this challenge, you'll have 3 reusable templates that save you 15-20 minutes every day. Over a month, that's 8+ hours saved! Worth the 20 min investment, right? ๐ก
Interview Questions
๐ค Prompt engineering interview preparation:
Q1: "What is a prompt framework and why is it useful?"
A: A prompt framework is a structured method for organizing AI instructions โ like RICE (Role, Instruction, Context, Expectation) or CREATE (Character, Request, Examples, Adjustments, Type, Extras). It improves output quality, ensures consistency, enables reusability, and reduces iteration cycles from 4-5 to 1-2.
Q2: "How would you design a prompt template for a team to use?"
A: Start with the most common team tasks. Use CREATE framework for complex tasks. Include clear placeholders with instructions (e.g., [INSERT TARGET AUDIENCE โ age, location, interests]). Add example filled templates. Version control the templates. Gather feedback and iterate monthly.
Q3: "What's the difference between role prompting and system prompting?"
A: Role prompting is done in the user message ("You are a senior developer..."). System prompting uses the system message field (available in API). System prompts are stronger โ they persist across the conversation. In practice, for single-turn tasks, role prompting in user message works well. For multi-turn applications, system prompts are preferred.
Q4: "How do you handle conflicting requirements in a prompt?"
A: Prioritize requirements explicitly. Use numbered priority: "Priority 1: Accuracy. Priority 2: Brevity. If conflict, accuracy wins." Alternatively, split into multiple prompts โ one for each requirement โ then combine results.
Q5: "Can you give an example of a bad structured prompt and how to fix it?"
A: Bad: "You are an expert. Write something good about AI. Make it professional but casual. Long but concise." โ contradictions everywhere! Fix: "You are a tech journalist. Write a 300-word LinkedIn post about AI in healthcare. Professional tone with one personal anecdote. Include 2 statistics." โ clear, non-contradictory, specific.
Final Thought
๐ The real secret of prompt engineering:
Idhu about AI illa โ idhu about clear thinking. Structured prompt ezhudha therinja, neenga actually clear ah think panna therinjirukka nu artham.
RICE or CREATE framework fill pannumbodhu, neenga force pannreenga yourself to answer: "Who am I talking to? What exactly do I want? What context matters? What does good output look like?"
Indha questions answer panna therinja, AI mattum illa โ email writing, presentation, meeting communication โ ellam improve aagum.
Start today: Pick ONE template from this article. Use it for your next AI task. Feel the difference. Then build your library, one template at a time.
Frameworks are not constraints โ they are launchpads. ๐
Next Learning Path
๐บ๏ธ Your journey continues:
โ Completed: Prompt types (Zero-shot, Few-shot, CoT)
โ Completed: Structured prompts (RICE, CREATE, templates)
๐ Next: AI Tools Ecosystem โ text, image, video tools comparison
๐ฎ Coming up: AI Hallucination, Using AI for Daily Work
Practice plan:
- Today โ Create 3 RICE templates for your common tasks
- This week โ Try CREATE for one complex task
- This week โ Build a "Prompt Library" document
- Next week โ Share templates with a colleague, get feedback
Your prompt library is your superpower. Every template you create makes you faster, better, more consistent. Invest time now, save hours later.
Keep building, keep refining! ๐
Frequently Asked Questions
You need to create a detailed product comparison report for your manager. The report needs specific formatting, particular analysis framework, competitor data context, and executive summary. Which approach is BEST?