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
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:
- A complete system prompt ready to use
- Three few-shot examples in question-and-answer pairs that model the desired behavior
- Formatting instructions built into the system prompt
- Guardrails for handling out-of-scope requests
- Personalization variables to adapt the prompt for each user
- Five adversarial test queries that check whether the guardrails hold
- 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
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 OptimizerComments
Be the first to comment on this prompt.
Glossary Terms
📬 Get new prompts every week
Join our newsletter and never miss a prompt.