Jon Karrer

Claude prompting guide

Taken from the claude website.

General tips for effective prompting

1. Be clear and specific

2. Use examples

3. Encourage thinking

4. Iterative refinement

5. Leverage Claude's knowledge

6. Use role-playing

Task-specific tips and examples

Content Creation

  1. Specify your audience

    • Tell Claude who the content is for.

    Bad prompt: "Write something about cybersecurity."

    Good prompt: "I need to write a blog post about cybersecurity best practices for small business owners. The audience is not very tech-savvy, so the content should be:

    1. Easy to understand, avoiding technical jargon where possible
    2. Practical, with actionable tips they can implement quickly
    3. Engaging and slightly humorous to keep their interest

    Please provide an outline for a 1000-word blog post that covers the top 5 cybersecurity practices these business owners should adopt."

    Why it's better: The good prompt specifies the audience, desired tone, and key characteristics of the content, giving Claude clear guidelines for creating appropriate and effective output.

  2. Define the tone and style

    • Describe the desired tone.
    • If you have a style guide, mention key points from it.

    Bad prompt: "Write a product description."

    Good prompt: "Please help me write a product description for our new ergonomic office chair. Use a professional but engaging tone. Our brand voice is friendly, innovative, and health-conscious. The description should:

    1. Highlight the chair's key ergonomic features
    2. Explain how these features benefit the user's health and productivity
    3. Include a brief mention of the sustainable materials used
    4. End with a call-to-action encouraging readers to try the chair

    Aim for about 200 words."

    Why it's better: This prompt provides clear guidance on the tone, style, and specific elements to include in the product description.

  3. Define output structure

    • Provide a basic outline or list of points you want covered.

    Bad prompt: "Create a presentation on our company results."

    Good prompt: "I need to create a presentation on our Q2 results. Structure this with the following sections:

    1. Overview
    2. Sales Performance
    3. Customer Acquisition
    4. Challenges
    5. Q3 Outlook

    For each section, suggest 3-4 key points to cover, based on typical business presentations. Also, recommend one type of data visualization (e.g., graph, chart) that would be effective for each section."

    Why it's better: This prompt provides a clear structure and asks for specific elements (key points and data visualizations) for each section.

Document summary and Q&A

  1. Be specific about what you want

    • Ask for a summary of specific aspects or sections of the document.
    • Frame your questions clearly and directly.
    • Be sure to specify what kind of summary (output structure, content type) you want
  2. Use the document names

    • Refer to attached documents by name.
  3. Ask for citations

    • Request that Claude cites specific parts of the document in its answers.

Here is an example that combines all three of the above techniques:

Bad prompt: "Summarize this report for me."

Good prompt: "I've attached a 50-page market research report called 'Tech Industry Trends 2023'. Can you provide a 2-paragraph summary focusing on AI and machine learning trends? Then, please answer these questions:

  1. What are the top 3 AI applications in business for this year?
  2. How is machine learning impacting job roles in the tech industry?
  3. What potential risks or challenges does the report mention regarding AI adoption?

Please cite specific sections or page numbers when answering these questions."

Why it's better: This prompt specifies the exact focus of the summary, provides specific questions, and asks for citations, ensuring a more targeted and useful response. It also indicates the ideal summary output structure, such as limiting the response to 2 paragraphs.

Data analysis and visualization

  1. Specify the desired format

    • Clearly describe the format you want the data in.

    Bad prompt: "Analyze our sales data."

    Good prompt: "I've attached a spreadsheet called 'Sales Data 2023'. Can you analyze this data and present the key findings in the following format:

    1. Executive Summary (2-3 sentences)

    2. Key Metrics:

      • Total sales for each quarter
      • Top-performing product category
      • Highest growth region
    3. Trends:

      • List 3 notable trends, each with a brief explanation
    4. Recommendations:

      • Provide 3 data-driven recommendations, each with a brief rationale

    After the analysis, suggest three types of data visualizations that would effectively communicate these findings."

    Why it's better: This prompt provides a clear structure for the analysis, specifies key metrics to focus on, and asks for recommendations and visualization suggestions for further formatting.

Brainstorming

  1. Use Claude to generate ideas by asking for a list of possibilities or alternatives.
    • Be specific about what topics you want Claude to cover in its brainstorming

Bad prompt: "Give me some team-building ideas."

Good prompt: "We need to come up with team-building activities for our remote team of 20 people. Can you help me brainstorm by:

  1. Suggesting 10 virtual team-building activities that promote collaboration
  2. For each activity, briefly explain how it fosters teamwork
  3. Indicate which activities are best for: a) Ice-breakers b) Improving communication c) Problem-solving skills
  4. Suggest one low-cost option and one premium option."

Why it's better: This prompt provides specific parameters for the brainstorming session, including the number of ideas, type of activities, and additional categorization, resulting in a more structured and useful output.

  1. Request responses in specific formats like bullet points, numbered lists, or tables for easier reading.

    Bad Prompt: "Compare project management software options."

    Good Prompt: "We're considering three different project management software options: Asana, Trello, and Microsoft Project. Can you compare these in a table format using the following criteria:

    1. Key Features
    2. Ease of Use
    3. Scalability
    4. Pricing (include specific plans if possible)
    5. Integration capabilities
    6. Best suited for (e.g., small teams, enterprise, specific industries)"

    Why it's better: This prompt requests a specific structure (table) for the comparison, provides clear criteria, making the information easy to understand and apply.

Troubleshooting, minimizing hallucinations, and maximizing performance

  1. Allow Claude to acknowledge uncertainty

    • Tell Claude that it should say it doesn’t know if it doesn’t know. Ex. “If you're unsure about something, it's okay to admit it. Just say you don’t know.”
  2. Break down complex tasks

    • If a task seems too large and Claude is missing steps or not performing certain steps well, break it into smaller steps and work through them with Claude one message at a time.
  3. Include all contextual information for new requests

    • Claude doesn't retain information from previous conversations, so include all necessary context in each new conversation.

Example good vs. bad prompt examples

These are more examples that combine multiple prompting techniques to showcase the stark difference between ineffective and highly effective prompts.

Example 1: Marketing strategy development

Bad prompt: "Help me create a marketing strategy."

Good prompt: "As a senior marketing consultant, I need your help developing a comprehensive marketing strategy for our new eco-friendly smartphone accessory line. Our target audience is environmentally conscious millennials and Gen Z consumers. Please provide a detailed strategy that includes:

  1. Market Analysis:

    • Current trends in eco-friendly tech accessories
    • 2-3 key competitors and their strategies
    • Potential market size and growth projections
  2. Target Audience Persona:

    • Detailed description of our ideal customer
    • Their pain points and how our products solve them
  3. Marketing Mix:

    • Product: Key features to highlight
    • Price: Suggested pricing strategy with rationale
    • Place: Recommended distribution channels
    • Promotion: a) 5 marketing channels to focus on, with pros and cons for each b) 3 creative campaign ideas for launch
  4. Content Strategy:

    • 5 content themes that would resonate with our audience
    • Suggested content types (e.g., blog posts, videos, infographics)
  5. KPIs and Measurement:

    • 5 key metrics to track
    • Suggested tools for measuring these metrics

Please present this information in a structured format with headings and bullet points. Where relevant, explain your reasoning or provide brief examples.

After outlining the strategy, please identify any potential challenges or risks we should be aware of, and suggest mitigation strategies for each."

Why it's better: This prompt combines multiple techniques including role assignment, specific task breakdown, structured output request, brainstorming (for campaign ideas and content themes), and asking for explanations. It provides clear guidelines while allowing room for Claude's analysis and creativity.

Example 2: Financial report analysis

Bad prompt: "Analyze this financial report."

Good prompt: "I've attached our company's Q2 financial report titled 'Q2_2023_Financial_Report.pdf'. Act as a seasoned CFO and analyze this report and prepare a briefing for our board of directors. Please structure your analysis as follows:

  1. Executive Summary (3-4 sentences highlighting key points)

  2. Financial Performance Overview: a) Revenue: Compare to previous quarter and same quarter last year b) Profit margins: Gross and Net, with explanations for any significant changes c) Cash flow: Highlight any concerns or positive developments

  3. Key Performance Indicators:

    • List our top 5 KPIs and their current status (Use a table format)
    • For each KPI, provide a brief explanation of its significance and any notable trends
  4. Segment Analysis:

    • Break down performance by our three main business segments
    • Identify the best and worst performing segments, with potential reasons for their performance
  5. Balance Sheet Review:

    • Highlight any significant changes in assets, liabilities, or equity
    • Calculate and interpret key ratios (e.g., current ratio, debt-to-equity)
  6. Forward-Looking Statements:

    • Based on this data, provide 3 key predictions for Q3
    • Suggest 2-3 strategic moves we should consider to improve our financial position
  7. Risk Assessment:

    • Identify 3 potential financial risks based on this report
    • Propose mitigation strategies for each risk
  8. Peer Comparison:

    • Compare our performance to 2-3 key competitors (use publicly available data)
    • Highlight areas where we're outperforming and areas for improvement

Please use charts or tables where appropriate to visualize data. For any assumptions or interpretations you make, please clearly state them and provide your reasoning.

After completing the analysis, please generate 5 potential questions that board members might ask about this report, along with suggested responses.

Finally, summarize this entire analysis into a single paragraph that I can use as an opening statement in the board meeting."

Why it's better: This prompt combines role-playing (as CFO), structured output, specific data analysis requests, predictive analysis, risk assessment, comparative analysis, and even anticipates follow-up questions. It provides a clear framework while encouraging deep analysis and strategic thinking.