PromptCraft Pro
AI Prompt Engineering Portal
Select your role to generate a complete, ready-to-run AI productivity session — real prompts, live demos, and workflows by Dr. Thamizharasi.
Role-Specific Daily AI Use Cases
Top 10 Practical AI Prompts
Live Demo Using First Prompt
This demo uses the first prompt from the selected role's Prompts tab. Select a role on the Home page, then use Prompt 1 below as the live demonstration.
🎯 First Prompt for Selected Role
🎬 How to Present This Live
Live AI Prompt Demo
Select your role on the Home page, then use the buttons below to paste the first prompt directly into ChatGPT or Claude for a live demonstration.
🎯 Live Demo Prompt
Basics of Prompt Engineering
Prompt engineering is the process of designing clear and structured instructions for AI systems to generate accurate and useful results.
📌 Components of a Good Prompt
| Component | Description |
|---|---|
| Role | Tell AI who it should act as |
| Task | Clearly explain the work to be done |
| Context | Provide project details and requirements |
| Format | Specify output style such as JSON or table |
| Constraints | Add rules like no assumptions or max word count |
🔬 Prompt Anatomy — Technical Breakdown
⚙️ How LLMs Process Your Prompt
| Stage | What Happens | Why It Matters for You |
|---|---|---|
| Tokenisation | Your text is split into tokens (~4 characters each). "FastAPI" = 2 tokens. | Longer prompts cost more. Every word is measured. |
| Attention | The model weights relationships between every token in your prompt simultaneously. | Context at the start and end of a prompt gets highest attention. Bury critical instructions in the middle and the model may miss them. |
| Context Window | The model can only see tokens within its context limit (e.g. 200K for Claude 3.5, 1M for Gemini 1.5 Pro). | Exceeding the window silently truncates your input. Large codebases, full PDFs, and long chat history all compete for this space. |
| Temperature | Controls randomness in token selection. Low (0.0–0.2) = deterministic. High (0.8–1.0) = creative. | Use low temperature for code, SQL, structured output. Use higher temperature for brainstorming and creative writing. |
| System Prompt vs User Prompt | System prompts set persistent behaviour rules. User prompts contain the specific task. | For enterprise AI apps, your role, rules, and constraints belong in the system prompt — not repeated per request. |
| Stop Sequences | Tokens that tell the model to stop generating (e.g. "###", "---END---"). | Use stop sequences in API calls to control output length and prevent runaway generation in structured output flows. |
🧠 Advanced Prompting Techniques
✅ Production-Ready Example Prompt
LLM Token Optimization & Cost Control
This tab explains how LLM cost is calculated and how teams can reduce cost while improving speed, quality, and scalability.
📌 Token Cost Formula
💼 Costing Factors to Compare Across LLMs
| Factor | Why It Matters |
|---|---|
| Input token price | Cost of prompt, system instructions, RAG chunks, chat history. |
| Output token price | Cost of generated answer; often more expensive than input. |
| Context window | How much text, document content, code, schema, or chat history can be sent at once. |
| Max output tokens | Maximum answer size the model can generate in one response. |
| Prompt caching | Reduces cost for repeated system prompts or repeated context. |
| Batch processing | Cheaper for non-real-time jobs such as nightly summaries, report generation, and document processing. |
| Latency | Important for chatbots, live applications, customer support, and real-time copilots. |
| Tool calling / function calling | Needed for agents, API workflows, database tools, automation, and multi-step task execution. |
| Multimodal support | Text, image, audio, PDF, video, screenshots, and document understanding capabilities. |
| Data privacy / enterprise controls | Important for company data, client data, production code, compliance, and access control. |
| Model routing | Use cheaper models for simple tasks and powerful models for complex reasoning, architecture, or code analysis. |
🧠 What Consumes Input Tokens?
| Component | Example | Optimization |
|---|---|---|
| System Prompt | Long role instructions and rules | Compress prompt, remove repeated instructions |
| Chat History | Previous 50 conversation turns | Use summarized memory instead of full history |
| RAG Context | 10 retrieved chunks from documents | Use top 3–5 relevant chunks only |
| Database Schema | Full schema with 100 tables | Send only relevant tables and columns |
| Examples | Many few-shot examples | Keep only high-value examples |
⚠️ Common Token Waste Problems
⚡ Optimization Techniques
📊 Enterprise Monitoring KPIs
| KPI | Why It Matters | Action |
|---|---|---|
| Avg Input Tokens | Detect prompt/context bloat | Compress prompt and reduce retrieved chunks |
| Avg Output Tokens | Control response verbosity | Add output length limits and structured format |
| Cost per Request | Understand unit economics | Set budget alerts and quotas |
| Cost per User / Team | Identify expensive workflows | Apply model routing and caching |
| Token Spikes | Detect abuse or accidental full-document sends | Add max token caps and input validation |
| Cache Hit Ratio | Measure saved LLM calls | Improve semantic cache and TTL strategy |
🎬 Live Demo Flow
✅ Closing Message
Reusable Prompt Design Patterns
Prompt patterns are reusable structures that help employees get consistent, high-quality AI output.
📌 Master Prompt Pattern
⚖️ Bad Prompt vs Pattern-Based Prompt
AI Hallucination Prevention
Hallucination happens when AI gives confident answers that are incorrect, invented, outdated, or unsupported.
🛡️ Hallucination-Safe Prompt
🎬 Live Demo Idea
AI Output Formats Across IT Roles
The format you request determines whether AI output is immediately usable or needs manual cleanup. Specify the format explicitly in every prompt — AI will match it precisely.
📋 Complete Output Format Reference by IT Role
| Format | Used By | Best For | Prompt Instruction to Use |
|---|---|---|---|
| JSON | AI Developer, Backend Dev, DevOps | API responses, agent tool outputs, config files, structured data pipelines, automation payloads | "Return ONLY valid JSON. No preamble. No markdown fences." |
| Markdown Table | BA, QA, PM, Delivery Manager, TA | Test cases, RAID logs, story backlogs, comparison matrices, sprint plans, risk registers | "Format as a markdown table with columns: [col1 | col2 | col3]" |
| Numbered List | All roles | Step-by-step runbooks, ordered requirements, installation guides, release checklists, onboarding steps | "Return as a numbered list. Each item one line. No sub-bullets." |
| Code Block | AI Dev, Frontend Dev, Backend Dev, DevOps, Network Eng | Working code, SQL queries, Dockerfile, YAML configs, shell scripts, IaC templates | "Return only the code inside a single code block. Language: Python. No explanation outside the block." |
| YAML | DevOps, Technical Architect, AI Developer | Docker Compose, Kubernetes manifests, GitHub Actions pipelines, OpenAPI specs, Ansible playbooks | "Output as valid YAML only. Use 2-space indentation. No comments unless requested." |
| OpenAPI / Swagger YAML | Technical Architect, Backend Dev, BA | REST API contracts, endpoint documentation, request/response schemas, integration specs | "Output a complete OpenAPI 3.1 YAML spec with paths, schemas, and example values." |
| Gherkin (Given/When/Then) | QA, BA, PM | Acceptance criteria, BDD test scenarios, UAT scripts, feature file generation | "Write acceptance criteria in Gherkin format: Given [context], When [action], Then [outcome]." |
| Mermaid Diagram | Technical Architect, BA, AI Developer | Flowcharts, sequence diagrams, entity-relationship diagrams, system architecture, state machines | "Generate a Mermaid flowchart / sequenceDiagram / erDiagram. Output only the Mermaid code block." |
| PlantUML | Technical Architect, BA | UML class diagrams, activity diagrams, component diagrams, use case diagrams for formal documentation | "Generate PlantUML code for a [diagram type] diagram. Output only the @startuml...@enduml block." |
| SQL | AI Developer, Backend Dev, BA, DBA | Query generation, schema creation, index recommendations, migration scripts, analytics queries | "Write a SQL query for PostgreSQL. Use parameterised placeholders. No dynamic SQL. Add inline comments." |
| Prose / Executive Summary | Delivery Manager, PM, CTO, HR | RAG status reports, board-level summaries, incident narratives, client emails, PIRs | "Write in professional prose. Max [N] words. Structure: [intro / body / action items]. No bullet points." |
| Bullet Summary | PM, Delivery Manager, HR, UI/UX | Meeting summaries, sprint retrospectives, risk highlights, interview notes, research findings | "Summarise as bullet points. Max [N] bullets. Each bullet one sentence. Group under headers: [Section 1, Section 2]." |
| JIRA-Ready Format | BA, PM, QA, Delivery Manager | Epics, user stories, subtasks, acceptance criteria, story point estimates, sprint assignment | "Format as JIRA-ready output: Epic | Story | Subtask | Acceptance Criteria | Story Points | Priority | Sprint." |
| CSV | PM, HR, BA, DevOps | Bulk data import, test case exports, candidate tracking, SLA logs, sprint metrics for Excel/Sheets | "Output as CSV. First row is headers. No extra text. Wrap fields with commas in double quotes." |
| Terraform / HCL | DevOps, Technical Architect | AWS/GCP/Azure IaC provisioning, reusable modules, state management, environment configs | "Write Terraform HCL for [resource]. Use variables for all hardcoded values. Add description to every variable." |
| Dockerfile / docker-compose.yml | DevOps, AI Developer, Backend Dev | Container build definitions, multi-service local dev, production service orchestration | "Write a production-ready Dockerfile using multi-stage build. Then write the docker-compose.yml with health checks." |
| Regex Pattern | Backend Dev, QA, DevOps, Network Eng | Input validation, log parsing, search-and-replace, firewall rules, URL routing patterns | "Return only the regex pattern. Include a Python snippet showing how to apply it. Explain each group in one line." |
| Pydantic / TypeScript Schema | AI Developer, Backend Dev, Frontend Dev | Request/response models, type-safe data contracts, API validation, frontend interfaces | "Generate a Pydantic v2 BaseModel / TypeScript interface for [data structure]. Include field descriptions and validators." |
| Scorecard / Rubric | HR, Delivery Manager, PM | Interview scorecards, CV screening rubrics, vendor evaluation matrices, code review checklists | "Format as a scoring rubric: Criterion | Weight | 1 (Does Not Meet) | 2 (Partial) | 3 (Meets) | 4 (Exceeds)." |
| ADR (Architecture Decision Record) | Technical Architect, CTO, AI Developer | Documenting technology choices, trade-off analysis, team alignment, audit trail for future decisions | "Write an ADR. Format: Title | Status | Context | Decision | Options (with pros/cons) | Consequences | Risks." |
| Changelog / Release Notes | DevOps, PM, Backend Dev, Frontend Dev | Sprint release notes, API version changelogs, hotfix summaries, customer-facing feature announcements | "Write release notes in Keep a Changelog format: Added | Changed | Fixed | Deprecated | Security. Audience: [technical/non-technical]." |
| Wireframe Description / UI Spec | UI/UX Designer, Frontend Dev, BA | Component state definitions, layout specs, interaction documentation, handoff to developers | "Write a UI spec for [component]. Cover: layout, all states (default/hover/loading/error/empty), interactions, ARIA attributes, responsive breakpoints." |
| RFC Document | Technical Architect, CTO, AI Developer | Proposing architecture changes, API redesigns, process improvements for team review and consensus | "Write an RFC. Format: Summary | Motivation | Proposed Design | Alternatives | Drawbacks | Unresolved Questions | Implementation Plan." |
| Post-Incident Report (PIR) | DevOps, Delivery Manager, PM | Production incident documentation, root cause analysis, corrective actions, stakeholder communication | "Write a PIR. Format: Executive Summary | Timeline (UTC) | 5-Whys Root Cause | Actions Taken | Corrective Actions with Owner and Deadline | Prevention." |
| STRIDE Threat Model | Technical Architect, AI Developer, DevOps | Security architecture reviews, threat identification, risk-ranked mitigations, pen-test prep | "Generate a STRIDE threat model. For each category: specific threat, Likelihood × Impact, mitigation, component owner. End with top 5 by risk score." |
⚡ Format Selection Quick Guide
🎯 Format Instruction Examples — Copy Ready
Bad Prompt vs Good Prompt
Example 1 — Developer: Code Fix Request
Example 2 — BA: Requirements Documentation
Example 3 — QA: Test Case Generation
Best AI Tools for Your Role
AI Risks & Safety — What Every Employee Must Know
Quick Prompt Cheat Sheet
AI Adoption Business Model
This section converts the AI practical session into a business model for corporate training, consulting, subscriptions, and AI adoption support.
🎯 Why Companies Should Invest in AI
📊 Current Challenges vs AI Benefits
| Team | Current Challenge | AI Benefit | Expected Gain |
|---|---|---|---|
| Developers | Documentation, debugging, code review | Faster analysis, refactoring, unit test generation | 20% – 40% |
| Testers | Test case creation, regression scenarios | Functional, negative, edge, and security test cases | 30% – 50% |
| Business Analysts | Requirements and Jira stories | Epics, stories, subtasks, acceptance criteria | 30% – 60% |
| HR / Talent Acquisition | JD writing and resume screening | JD, scorecards, interview questions, summaries | 40% – 70% |
| Project Managers | Status reports, MoM, planning | Reports, RAID logs, meeting summaries, sprint plans | 20% – 50% |
📈 ROI Calculator Example
🎓 Training Payment Plans
Duration: 2 Hours
Includes: AI basics, ChatGPT, Claude, prompt basics, risks
₹10,000 – ₹25,000
Duration: Half Day
Includes: Role-wise prompts, live demos, token optimization
₹25,000 – ₹50,000
Includes: Assessment, training, prompt library, adoption support, ROI measurement
₹75,000 – ₹2,00,000
🗓️ AI Productivity Accelerator Plan
🔄 Subscription Plans
₹299/month
₹999/user/month
🏢 AI Center of Excellence — Premium Retainer
Monthly Retainer: ₹25,000 – ₹1,00,000/month
💰 Additional Revenue Streams
| Service | Target Audience | Pricing |
|---|---|---|
| Resume Optimization Using AI | Job seekers and professionals | ₹999/person |
| LinkedIn AI Branding Workshop | Professionals and job seekers | ₹5,000 – ₹10,000/session |
| AI Interview Preparation | Freshers and experienced candidates | ₹2,000 – ₹5,000/person |
| College Faculty AI Training | Schools, colleges, faculty groups | ₹10,000 – ₹50,000/session |
| Prompt Engineering Consulting | Startups and IT teams | ₹1,000 – ₹3,000/hour |