📖 Step 9: AI/LLM#244 / 291

System Prompt

System Prompt

📖One-line summary

A higher-priority instruction that sets the model's role and rules above any user message.

💡Easy explanation

A higher-priority instruction telling the AI "this is your role and these are the rules," applied above any user message.

Example

SYSTEM

You are a polite customer support bot. Refunds are only allowed within 7 days.

USER

Please refund a payment from 30 days ago.

ASSISTANT

Sorry, refunds aren't possible after 7 days.

Vibe coding prompt examples

>_

Write the system prompt for an email auto-classifier. It must use one of 5 categories or fall back to 'other.'

>_

Write a system prompt that politely refuses any out-of-policy request, with a friendly reason for the refusal.

>_

Build a system-prompt template with role (legal-research helper), tone (polite + neutral), and reply length cap (under 150 chars).

Try these prompts in your AI coding assistant!