Claude excels in a wide range of text-based tasks. Claude has been trained to ingest code, prose, and other natural language inputs, and provide text outputs in response. When you send data to Claude in order to generate a response, you are sending a “prompt,” and the act of sending a prompt is called ”prompting.”

Prompts are best written as natural language queries as if you are instructing someone to do something, with the more detail the better. You can further improve your baseline prompt with prompt engineering.

Text use cases and capabilities

Claude can handle a diverse range of text-based tasks, including but not limited to:

  • Text summarization
  • Content generation
  • Data / entity extraction
  • Question answering
  • Text translation
  • Text-based analysis and recommendations
  • Dialogue and conversation
  • Code explanation and generation

For a comprehensive guide on text-based use cases and capabilities, visit use cases and capabilities.

Prompt engineering guide

To get the most out of Claude 3 and enhance its performance for your specific tasks, you may want to apply specific prompt engineering techniques to your prompt. Our prompt engineering covers various strategies and tips to help you craft the most effective prompts to optimize Claude 3’s output. With legacy models, prompt engineering may be more necessary in order to elicit maximum performance, whereas Claude 3 models are far more steerable and easy to instruct.

Anthropic cookbook

To see code examples of Claude’s text generation capabilities in action, check out the Anthropic cookbook, which houses a set of recipes in the form of Jupyter notebooks. These notebooks feature copy-able code that demonstrate how to use Claude in more advanced scenarios, such as uploading PDFs, tool use and function calling, embeddings, and more.

Prompt library

For a wide range of text-based prompts that showcase Claude’s capabilities and help you get started with various tasks, visit our prompt library. The library contains prompts for different use cases and complexity levels, making it easier for you to find and adapt prompts to your specific needs.

API documentation

To understand how to interact with Claude via our API, consult our API documentation. The documentation provides detailed information on how to send requests, handle responses, and troubleshoot errors.