AI Prompt Engineering

Google AIPrompt Engineering

Master the T.C.R.E.I. framework and transform your basic prompts into powerful AI instructions

The T.C.R.E.I. Framework

A systematic approach to creating effective AI prompts

T.C.R.E.I. Framework
T

Task

Define what you want AI to do

C

Context

Provide background information

R

References

Give specific examples

E

Evaluate

Assess AI output quality

I

Iterate

Refine and improve prompts

Memory Aid

🦀 Tiny Crabs Ride Enormous Iguanas 🦎

Remember the framework with this fun mnemonic!

Iteration Methods

Strategies for improving your prompt outputs

Iterative Process

🔄 Revisit Framework

Go back to T.C.R.E.I. steps and improve each element

✂️ Shorter Sentences

Break complex requests into focused, manageable parts

🔄 Different Phrasing

Try alternative wording or analogous tasks

🚧 Add Constraints

Introduce specific limitations to guide AI focus

AI Agents & Multimodal Capabilities

Specialized AI assistants and advanced interaction methods

🤖 Specialized AI Agents
AI Agents

AI Agents are specialized experts designed to help with specific tasks and answer questions within defined domains.

Doctor AgentResearch AgentCoding AgentMarketing AgentLearning Agent
🎯 Multimodal AI
Multimodal AI

AI models like Gemini can process multiple types of data simultaneously for richer, more contextual interactions.

Text + Images
Audio Processing
Video Analysis
Document Understanding

Prompt Examples

See how basic prompts transform using the T.C.R.E.I. framework

📝 Prompt Evolution Example

Basic: suggest a gift related to anime for my friend's birthday.

+ Persona: Act as an anime expert to suggest an anime gift for my friend's birthday.

+ Context: Act as an anime expert to suggest a gift related to anime for my friend's birthday and she is turning 29 years old. Her favourite anime is Shangri-la Frontier.

🏢 Work Task Example

Task: Create a table that tracks weekly staffing.

Context: I have 10 employees. Create columns for day, name, and shift.

Constraints:

  • 3 employees for morning, 2 for afternoon shift
  • No morning shift after afternoon shift
  • Equal total shifts per week per employee
🎮 AI Agent Example

Persona: Act as a career development training simulator.

Task: Help interns master interview skills.

Stop Rule: Continue until "JAZZ HANDS."

Challenges & Responsible AI Use

Understanding AI limitations and ethical deployment principles

AI Challenges
AI Challenges

🎭 Hallucination

AI provides inconsistent, incorrect, or nonsensical outputs

⚖️ Biases

AI inherits biases from human-generated training data

Best Practices
Responsible AI
Evaluate Suitability: Ensure AI fits the task
Get Approval: Obtain company consent
Protect Privacy: Use secure tools
Validate Outputs: Review all AI content
Be Transparent: Disclose AI usage
Advanced Techniques
AI Advanced Techniques
🔗 Prompt Chaining

Interconnected prompts for complex tasks

🧠 Chain of Thought

Step-by-step reasoning process

🌳 Tree of Thought

Multiple reasoning paths exploration

🎯 Meta Prompting

High-level behavior instructions