Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Prompt

Definition

The input given to a model: instructions, context, examples and the question or task itself, sent as one or more messages in a request.

In more detail

In chat APIs a prompt is a list of messages with roles such as system, user and assistant. Everything in it, including retrieved documents and tool results, influences the output.

The prompt is more than the question a user types. In an application it usually combines a system prompt, earlier turns, retrieved documents, tool definitions and tool results, and each of these competes for the model's attention. Writing a good prompt is mostly about being specific: say what the task is, who it is for, what a good answer looks like and what to do when information is missing.

  • Context window

    The maximum number of tokens a model can consider in one request, covering both the input you send and the output it writes.

  • Prompt engineering

    Designing, testing and refining prompts so a model produces the output you need reliably, across many inputs and not just one.

  • System prompt

    Instructions set by the application developer that frame every conversation, such as the assistant's role, rules and output format.

  • Prompt template

    A prompt with placeholders, such as {question} or {context}, that code fills in at run time so the instructions are reused.

  • Role prompting

    Telling a model to take on a role, such as a security reviewer or a patient tutor, to shape its focus, tone and level of detail.

  • Prompting fundamentals: clear tasks, examples and formats

    How to write a good prompt: frame the task, say who the output is for, show an example and specify the format, so a model's answers are useful and repeatable.

    TutorialBeginner25 min

  • Prompt engineering

    Writing clear, testable instructions for models and checking them on real inputs.

    SkillBeginner

  • Prompt template

    A prompt with placeholders, such as {question} or {context}, that code fills in at run time so the instructions are reused.

    Glossary