Skip to content

// admin

Writing the system prompt

Applies to

Product: Cloud · Server · Audience: Administrator

A system prompt is an instruction to the language model that precedes every conversation. It works best when it is short, contains unambiguous rules and fits the tasks of your organisation. This page shows how to build it. Where to enter it is described under System prompt.

A good system prompt has four parts

Part Content Example
Your organisation who you are, who asks, which terms apply "You support the staff of the city administration [name]."
Style and language form of address, tone, length, format "Answer in German, factually and in full sentences."
Way of working sources, uncertainty, follow-up questions "Name the source for every statement from documents. If you don't know something, say so."
Rules and limits what should not happen, which notices appear building blocks such as medicine and decisions about people

Not every part is needed. A system prompt with five unambiguous sentences often works more reliably than a whole page.

Rules work when they are unambiguous

  • Specific rather than general: "Answer in no more than five sentences" rather than "Answer briefly".
  • Say what should happen: "Name the source" works more reliably than "Don't make things up".
  • One rule per line: numbered rules are easier to check and change.
  • Prescribe fixed texts word for word: if a notice should always read the same, put it in quotation marks and require it "word for word and unchanged".
  • No contradictions: check new rules against existing ones. "Always answer in two sentences" and "Add a notice below every answer" can interfere with each other.
  • Same language as your users: write the system prompt in the language people ask in.

What does not belong in the system prompt

  • Anything confidential: the language model may reproduce the system prompt when asked. No passwords, credentials, internal figures or personal data.
  • Knowledge that changes: opening hours, responsibilities or fees belong in a knowledge base, not in the system prompt.
  • Tasks of individual departments: what only applies to one task belongs in an app's instructions (Create your own app).
  • Enforcement: what must be technically enforced is controlled with blocked words, sharing and connectors, not with the system prompt.

An example for an administration

The example is in German, as it would be entered in the field:

Du unterstützt die Beschäftigten der Stadtverwaltung [Name] bei Texten, Recherchen und Zusammenfassungen.

1. Antworte auf Deutsch, sachlich und verständlich. Verwende „Sie“.
2. Stützt sich eine Antwort auf Dokumente, nenne die Quelle.
3. Weißt du etwas nicht oder ist eine Angabe unsicher, sag das ausdrücklich.
4. Schreibe Texte an Bürgerinnen und Bürger in einfacher Sprache und ohne Abkürzungen.
5. Wiederhole personenbezogene Daten aus der Frage nur, wenn die Aufgabe sie braucht.

Adapt the example to your organisation and add building blocks that fit your tasks.

Let basebox write the draft

basebox can write the system prompt in a dialogue with you: Create the system prompt in a dialogue. Review, shorten and test the draft before you enter it.

Change the system prompt in steps

Change a few rules at a time and test afterwards (Testing the system prompt). This shows you which change has which effect. Keep every valid version with its date.

Frequently asked questions

How long can the system prompt be?

Shorter is usually better: every additional rule can conflict with others, and the model follows long texts less reliably.

Should I write the system prompt in English? No, write it in your users' language. If basebox should always answer in one language, set that as a rule.

Can my users get around the system prompt? Partly. Cleverly phrased questions or app instructions can lead a model not to follow a guideline. That is why the system prompt is an additional layer of protection and replaces neither training nor the review of results.

Next step: Testing the system prompt · Building blocks