System prompt

A system prompt is a set of instructions an AI model reads before your messages. It sets the role, tone, format and rules for every reply in the chat.

A system prompt is a set of instructions the AI model reads before it sees your messages. It tells the model who it is, how to respond and what rules to follow. Every reply in the conversation follows it.

Your regular messages are user prompts. They ask for something specific. The system prompt sets the ground rules that apply to all of them.

System prompt vs user prompt

System prompt User prompt
Written by The app or you, once You, every turn
Scope The whole conversation One request
Typical content Role, tone, format, limits The question or task
Example “Answer as a support agent. Keep replies short.” “A customer wants to return boots after 40 days.”

A good system prompt

A useful system prompt is short and specific. It covers four things.

  1. Role. Who the model is acting as.
  2. Audience. Who it is writing for.
  3. Format. Length, structure and tone.
  4. Rules. What it must or must not do.

Here is the one I typed into a new Sparkian project.

You answer customer emails for a hiking gear store.
Keep replies under 120 words and friendly.
Never promise a refund. Link to the returns page instead.

Every line can be checked in the output. Vague lines like “be helpful” add nothing, because the model already tries to be helpful.

Project instructions in Sparkian

In Sparkian a project’s Instructions field works as a system prompt for every chat in that project. It holds up to 5,000 characters.

The Sparkian New project dialog with the name Support replies and instructions for answering hiking store customer emails.
Project instructions apply to every chat in the project.

You set it once, and every chat in the project follows it. Teammates in the project get the same behavior without copying the prompt.

Common mistakes

  • Too long. Pages of rules make the model miss the important ones.
  • Conflicting rules like “Be detailed” and “keep it short” in the same prompt.
  • A system prompt is not a safe place for passwords or keys. Prompt injection can expose it.
  • Try a few tricky messages and check that each rule holds.
Chandan Kumar

Chandan Kumar

Founder, Sparkian and Geekflare

Chandan Kumar is a founder of Sparkian & Geekflare. He is a technology enthusiast and entrepreneur who loves to help businesses and people around the world.

Ready to spark your next idea?

Your next question, first draft, or big idea. Start here.