ChatGPT to NotionChatGPT to Notion

Provide detailed context and instructions

on 19 days ago

Provide detailed context and instructions

To ensure Claude understands your task, provide as much context and detail as possible. Include any specific rules or requirements for completing the task correctly. Consider the following example where we ask Claude to remove personally identifiable information (PII) from a given text:

While this prompt may work for simple cases, it lacks the necessary details for Claude to consistently deliver the desired output. Here is a more detailed and clearly written version.

In this improved prompt, we:

  1. Provide context upfront about the nature of the task
  2. Define what constitutes PII (names, phone numbers, addresses)
  3. Give specific, enumerated step-by-step instructions on how Claude should carry out its task
  4. Give guidelines to Claude for how it should format its output

You can also use this technique to control other aspects of Claude's output. For example, by default, Claude often includes a friendly preamble before providing the requested output. If you prefer to receive only the essential information, you can instruct Claude to skip the preamble and get straight to the point.

Here is an example where Claude outputs a preamble:[Example text with preamble]

Here is an example where the prompt asks for Claude to skip the preamble:[Example text without preamble]

By explicitly asking Claude to skip the preamble, you can receive a more concise response that focuses solely on the requested output.

Use numbered lists or bullet points

When providing instructions for complex tasks, consider breaking them down into numbered steps or bullet points. This format makes it easier for Claude to follow the instructions and ensures that all requirements are met.

Here is an example prompt without this technique:[Example prompt without structure]

Here is the same prompt with numbered steps:

  1. Step 1: [Detailed instruction]
  2. Step 2: [Detailed instruction]
  3. Step 3: [Detailed instruction]

By presenting the instructions as numbered steps, you will both naturally write with more detail and better ensure that Claude executes its task to your standards.

Be specific about what you want

If you want Claude to provide a definitive answer or take a specific stance on a topic, make that clear in your prompt. When instructions are vague or open-ended, Claude may provide a more general response.

Here is an example of an open-ended question that causes Claude to equivocate:[Open-ended question example]

Here is the same request, but with a more detailed and nuanced ask that successfully pushes Claude to have an opinion:[Specific question example]

The golden rule of clear prompting

When crafting your prompts, follow the golden rule of clear prompting: show your prompt to a friend or colleague and ask them to follow the instructions themselves to see if they can produce the exact result you want. If your friend is confused, Claude will likely be confused as well.

Remember, Claude is a powerful tool, but it relies on your guidance to deliver the best results. By providing clear, direct, and well-structured prompts, you can unlock Claude's full potential and achieve your desired outcomes more consistently.