Skip to main content

Write a single prompt

Overview

Single prompt agents use one comprehensive prompt to define the agent’s behavior, personality, and capabilities.

Writing an effective single prompt

Key components

  1. Agent Role - Define who the agent is
  2. Personality - Describe the tone and style
  3. Capabilities - List what the agent can do
  4. Constraints - Set boundaries and limitations
  5. Instructions - Provide clear guidance

Example structure

Best practices

  • Be specific and clear
  • Use consistent formatting
  • Test and iterate
  • Keep it concise but comprehensive

Next Steps