Be Specific — Goal, Context, Format
Tripmate's first system prompt was one line: "You are a helpful travel assistant." It chatted pleasantly, recommended flights Asha cannot afford, and answered in long paragraphs her app could not display. The model was not the problem. The prompt left almost everything to guesswork.
The rule
Say the goal, give the context, name the format — leave nothing to guess.
A prompt is the model's whole briefing. Four ingredients do most of the work:
- A specific goal — what counts as success. "Find train options" is vague; "find up to three trains that arrive before 10 am on the 16th" is testable.
- Relevant context — facts the model cannot know: the user's budget, their preferences, today's date, what the tools do, what the company's rules are.
- Precise terms — use the words of the field. "Sleeper class", "tatkal quota" or "PNR" point the model at exact meanings; "the cheap beds" does not.
- Length and format — how long, and in what shape: bullet points, a table, or JSON with named fields.
You are Tripmate, a train-travel assistant for users in India.
Today is 2026-10-12. The user's budget is ₹2,500 per person, one way.
Goal: suggest up to 3 trains that arrive before the user's deadline.
Prefer sleeper or 3A class. Never book without explicit confirmation.
Reply as a bullet list: train name, departure, arrival, class, fare.
Keep the whole reply under 80 words.Every line removes a guess. None of it is clever wording; it is simply information the model did not have. Notice too that the rules are stated positively where possible ("reply as a bullet list") rather than only as bans; telling the model what to do is easier to follow than a list of things to avoid.