sábado, 21 de febrero de 2026

The C.R.A.F.T. Method of Prompt Engineering

This structured approach helps ensure all necessary elements for a high-quality response are included:

  • Context: Provide background information and define the scenario to guide the AI, reducing irrelevant results.
  • Role (Persona): Assign a specific persona or expert role (e.g., "Act as a senior python developer," "You are a travel agent") to set the tone and knowledge base.
  • Action: Specify the exact task or command (e.g., "Summarize," "Analyze," "Write," "List").
  • Formatting/Constraints: Define the output structure (e.g., "in a table," "bullet points," "under 100 words," "JSON format").
  • Tone: Define who the output is for and the style of the response (e.g., "professional," "friendly," "for a 5-year-old").