Skip to content
AI & Machine Learning

System Prompt

Definition

A system prompt is the instruction text an application gives a language model before the user's messages, setting its role, rules, tone and the tools and information it can use. Users usually don't see it.

Diagram

  1. System · not shown to the person, sent with every request

    You are the help assistant for Lumen, a budgeting app. Answer only about Lumen. Never give investment advice; suggest a licensed adviser instead. Be brief and friendly.

  2. Person

    Can I split a transaction into two categories?

  3. Assistant

    Yes. Open the transaction, tap Split, and choose an amount for each category.

  4. Person

    Should I put my savings into index funds?

  5. Assistant

    I can’t give investment advice, but a licensed financial adviser can. I can help you set a savings goal in Lumen.

The second answer follows the system prompt’s rule. A system prompt shapes behavior strongly but isn’t a security boundary: determined users can sometimes talk a model out of it, so back important rules with checks in code. Treat it as product copy: version it, test it, and review changes.

Worked example