McKay Johns

Advanced Techniques

Master sophisticated prompting strategies that unlock the full potential of AI models.

Chain-of-Thought Prompting

Chain-of-thought (CoT) prompting encourages the AI to break down complex problems into steps, leading to more accurate and explainable results.

Pro Tip

Add "Let's think step by step" or "Show your reasoning" to activate chain-of-thought reasoning.

Basic Chain-of-Thought Example

Instead of:

"What's 23 × 47?"

Use:

"What's 23 × 47? Let's think step by step."

Advanced Chain-of-Thought for Complex Analysis

"Analyze this business scenario and recommend a strategy. 
Break down your analysis into these steps:
1. Identify key problems
2. Evaluate available options
3. Consider risks and benefits
4. Make a recommendation with reasoning"

Few-Shot Learning

Few-shot learning provides the AI with examples of the desired input-output pattern, dramatically improving performance on specific tasks.

Structure: Context → Examples → Task

"Convert business jargon into plain English:

Jargon: 'We need to leverage our core competencies'
Plain: 'We should use our main strengths'

Jargon: 'Let's circle back on this offline'
Plain: 'Let's discuss this later privately'

Jargon: 'We need to ideate some blue-sky solutions'
Plain:"

Prompt Chaining

Break complex tasks into smaller, connected prompts where each output feeds into the next prompt.

Chaining Strategy

Step 1: Research and gather information

Step 2: Analyze the gathered data

Step 3: Generate recommendations

Step 4: Format for presentation

Chaining Example: Content Creation

Prompt 1 (Research):

"Research the top 5 trends in [industry] for 2024. Provide key statistics and sources."

Prompt 2 (Analysis):

"Based on this research: [insert results], identify the 3 most impactful trends and explain why."

Prompt 3 (Content):

"Write a 500-word blog post about these trends: [insert analysis]. Target audience: business professionals."

Role-Based Prompting

Assign specific roles or personas to the AI to get more focused, expert-level responses.

Effective Role Assignment

"You are a senior data scientist with 10 years of experience in sports analytics. 
You specialize in player performance analysis and have worked with professional teams. 
Your communication style is clear and data-driven, but accessible to non-technical stakeholders.

Task: Analyze this player data and provide insights..."

Multiple Role Perspectives

"Analyze this business proposal from three perspectives:

1. As a financial analyst (focus on ROI and risks)
2. As a marketing manager (focus on market opportunity)  
3. As an operations director (focus on implementation challenges)

Provide each perspective separately, then a summary recommendation."

Meta-Prompting Techniques

Advanced techniques that help the AI understand and optimize its own reasoning process.

Self-Reflection Prompting

"Solve this problem, then critique your own solution. 
What assumptions did you make? What could be improved? 
Provide a revised solution if needed."

Constraint-Based Prompting

"You must follow these constraints:
- Use only data from the last 2 years
- Include at least 3 quantitative metrics
- Limit response to 200 words
- End with one actionable recommendation

Now analyze..."

Advanced Practice Exercise

Master Challenge

Create a prompt chain for market research that includes:

  • Role-based prompting (market researcher persona)
  • Few-shot examples for data formatting
  • Chain-of-thought for analysis
  • Specific constraints and output format

Test your chain with a real business question and refine based on results.