P
IntermediateAll AIs

Create a System Prompt for an LLM Chatbot

Generates a complete system prompt for an LLM chatbot with persona, few-shot examples, guardrails, personalization variables and testing protocol.

Paste in your AI

Adapt this prompt

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

You are an expert in prompt engineering and AI chatbot development. Help me design a system prompt for this use case.

Chatbot goal: [CHATBOT_GOAL]
Target language model: [LLM_MODEL] (for example, GPT-4o, Claude Sonnet, or Llama 3)
Tone and persona: [TONE_AND_PERSONA]
Area of expertise: [DOMAIN]
Requests or behaviors the chatbot should refuse: [OUT_OF_SCOPE_REQUESTS]

Constraints

  • Desired answer length: [ANSWER_LENGTH]
  • Supported languages: [SUPPORTED_LANGUAGES]

Generate:

  1. A complete system prompt ready to use
  2. Three few-shot examples in question-and-answer pairs that model the desired behavior
  3. Formatting instructions built into the system prompt
  4. Guardrails for handling out-of-scope requests
  5. Personalization variables to adapt the prompt for each user
  6. Five adversarial test queries that check whether the guardrails hold
  7. Evaluation metrics for measuring response quality

Personalize this prompt with Léa · AI assistant

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why this prompt works

Few-shot examples show the chatbot what a good answer looks like. Specify [OUT_OF_SCOPE_REQUESTS] so the tests can check whether the chatbot respects those boundaries. Use the evaluation metrics to compare its answers as you revise the prompt.

Use Cases

Developing an AI customer assistant for a SaaSCreating an internal IT support chatbotBuilding an AI tutor for an educational platform

Expected Output

A complete system prompt, 3 few-shot examples, formatting instructions, guardrails, personalization variables, 5 adversarial tests and evaluation metrics.

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

Be the first to comment on this prompt.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further