Search⌘ K
AI Features

Structuring a Prompt

Explore how to create well-structured prompts by defining conversational roles such as system, user, and assistant, and organizing content with delimiters. This lesson helps you design clear instructions and manage complex input effectively to ensure predictable and high-quality AI behavior.

A well-structured report is more than a long block of text. It includes a title, section headings, and paragraphs that break the content into meaningful units. This structure isn’t cosmetic; it makes the information easier to read, understand, and use.

A modern LLM prompt also needs a clear, deliberate structure. As prompts evolve to include instructions, user queries, reference text, and output requirements, they require a consistent structure to remain manageable. Without structure, the model may misinterpret which parts are instructions and which are data. The next section outlines how to design that structure.

Conversational roles

Modern, instruction-tuned AIs are most often designed as chat models. This means their fundamental architecture is built to understand conversations, not just single, isolated commands. This conversational paradigm has distinct roles, and using them correctly is the first and most crucial step in creating a well-structured prompt. The three roles are

  • System

  • User

  • Assistant

The system prompt

The system prompt is a special, high-level instruction that sets the context, rules, and persona for the entire conversation that follows. It is the primary mechanism for AI contextual refinement, shaping how ...