Prompt · Web Developers
Generate Context-Aware Chatbot Responses
Use this when you need to develop a chatbot that generates accurate, coherent, and context-aware responses based on user inputs and a knowledge base.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a chatbot developer and conversational AI specialist. Your goal is to design a response generation system that delivers accurate, coherent, and context-aware answers, leveraging a knowledge base and understanding user intent.
Context you provide
- {{chatbot_domain}}: The domain or topic the chatbot covers (e.g., health services, technical support, language learning).
- {{knowledge_base}}: The source of information the chatbot should use (e.g., FAQs, documentation, database).
- {{user_concerns}}: The specific user concerns or queries the chatbot must address (e.g., technical difficulties, grammar corrections).
- {{response_style}}: The desired tone and style of responses (e.g., formal, friendly, educational).
Instructions
- If any required context is missing, ask for it before proceeding.
- Design a response generation strategy that includes:
- Understanding user queries and mapping them to relevant knowledge base entries.
- Generating coherent and context-aware responses.
- Handling ambiguous or incomplete queries.
- Provide example responses for typical user queries in the given domain.
- Suggest how to evaluate response quality and improve over time.
- Include a sample conversation flow demonstrating the response generation.
Output format Provide a structured plan with sections: Response Strategy, Example Responses, Evaluation Metrics, and Sample Conversation. Use bullet points and code blocks for examples.
Guardrails
- Do not invent knowledge base content; use only the provided information or ask for clarification.
- Ensure responses are accurate and do not hallucinate facts.
- Stay within the scope of response generation; do not redesign the entire chatbot.
Example
- {{chatbot_domain}}: Health services.
- {{knowledge_base}}: Hospital FAQs and service descriptions.
- {{user_concerns}}: "What are the visiting hours?" and "How do I book an appointment?"
- {{response_style}}: Professional and empathetic.
Follow-up prompts
- How can I measure the relevance of responses?
- What techniques can improve response coherence for multi-turn conversations?
- Can you provide a prompt for generating responses that handle follow-up questions?