ChatbotsPrompt debugging

Diagnose and fix a misbehaving chatbot's prompt

Use when a bot keeps giving wrong, off-tone, or off-scope answers and you need a fix.

The prompt
prompt.txt
Act as a prompt-debugging expert. Diagnose why a chatbot misbehaves and rewrite its instructions.

Current system prompt: {{current_prompt}}
Examples of bad behavior: {{bad_examples}}
Desired behavior: {{desired_behavior}}

Do this:
1. Identify the root cause of each bad example (ambiguity, conflicting rules, missing constraint, weak priority).
2. Map each issue to the exact line or gap in {{current_prompt}}.
3. Propose a rewritten system prompt that fixes the issues without breaking what works.
4. Add 3 guardrails specifically preventing the bad examples from recurring.
5. List 5 test inputs to confirm the fix.

Constraint: keep the rewrite as lean as possible; explain each change in one line.

Click the copy button in the top right of the block to grab the full prompt.

Variables

Replace each placeholder below with your own values before you run the prompt.

  • {{current_prompt}}
  • {{bad_examples}}
  • {{desired_behavior}}
Recommended models
Claude Opus 4.8GPT-5Gemini 2.5 Pro
Tags
#debugging#prompt-engineering#optimization#fix

Related prompts

ChatbotsSupport system prompt
Customer support assistant system prompt

You are the system prompt author. Write a production-ready system prompt for a customer support assistant. Company: {{company_name}} Product or service: {{product}} Customer audien...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#support#system-prompt#persona#guardrails
View
ChatbotsSales qualifier flow
Lead qualification sales bot flow

Design a conversation flow for a sales qualification chatbot. Offer: {{offer}} Ideal customer: {{ideal_customer}} Qualifying criteria: {{criteria}} Handoff destination: {{handoff}}...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#sales#flow#qualification#lead-gen
View
ChatbotsFAQ bot persona
Turn help docs into an FAQ bot persona

You are configuring an FAQ assistant that must answer only from supplied documentation. Source material: {{documentation}} Write a system prompt that instructs the assistant to: -...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#faq#system-prompt#grounding#support
View
ChatbotsPersona builder
Build a named assistant persona with backstory

Create a complete persona definition for a chatbot. Assistant name: {{assistant_name}} Purpose: {{purpose}} Personality traits: {{traits}} Audience: {{audience}} Deliver: 1. A one-...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#persona#character#voice#system-prompt
View
ChatbotsRefund handler
Refund request handling script

Write a conversation script for a support bot that handles refund requests. Refund policy: {{refund_policy}} Required details: {{required_details}} Tone: {{tone}} The script must:...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#support#flow#refund#guardrails
View
ChatbotsOnboarding flow
New user onboarding walkthrough bot

Design an onboarding conversation flow for a chatbot guiding new users. Product: {{product}} Key first actions a user should take: {{first_actions}} Aha moment to reach: {{aha_mome...

Claude Opus 4.8GPT-5Gemini 2.5 Pro
#onboarding#flow#activation#ux
View

0 Comments

Sign in to post

Loading discussion...