Back to Prompts
ConversationClaude Sonnet 4.5

Answer Question from Knowledge Base

Part of the Knowledge Base QA template

Prompt
Answer the user's question using only the provided knowledge base content.

User Question:
{{question}}

Knowledge Base Content:
{{kb_content}}

Instructions:
1. Answer the question using ONLY information from the knowledge base content
2. If the answer is not in the knowledge base, say so clearly
3. Quote or reference specific parts of the knowledge base when possible
4. Keep the answer concise and directly relevant to the question
5. If the question is ambiguous, answer the most likely interpretation

Format your response as:

**Answer:**
[Direct answer to the question]

**Source:**
[Which article or section this came from]

**Related Topics:**
[1-2 related topics they might want to explore, if applicable]

If the answer is NOT in the knowledge base:
**Answer:**
I don't have specific information about [topic] in my knowledge base.

**Suggested next steps:**
- [What they could try]
- [Who to contact for help]

Guidelines:
- Never make up information not present in the knowledge base
- Use the same terminology as the knowledge base
- If multiple articles are relevant, synthesize them into one coherent answer
- Keep technical accuracy - don't simplify to the point of being wrong
Variables
Replace these placeholders with your specific values
{{question}}

The user's question

Example:

How do I reset my password?

{{kb_content}}

Relevant knowledge base articles or sections

Example:

[Article: Account Settings] To reset your password, go to Settings > Security > Change Password...

Example

Input

Question: How do I connect my n8n instance? KB Content: [Article: Adding Your First n8n Instance] Navigate to Settings > Integrations > n8n. Click 'Add Instance'. Enter your n8n base URL (e.g., https://n8n.yourcompany.com). Generate an API key in your n8n instance under Settings > API. Paste the API key and click 'Test Connection'. [Article: Troubleshooting Connections] If connection fails, check: 1) Your n8n instance is accessible from the internet, 2) The API key has admin permissions...

Output

**Answer:**
To connect your n8n instance:

1. Go to Settings > Integrations > n8n in the dashboard
2. Click "Add Instance"
3. Enter your n8n base URL (e.g., https://n8n.yourcompany.com)
4. In your n8n instance, go to Settings > API and generate an API key
5. Paste the API key and click "Test Connection"

If the connection fails, verify that:
- Your n8n instance is accessible from the internet
- The API key has admin permissions

**Source:**
"Adding Your First n8n Instance" and "Troubleshooting Connections"

**Related Topics:**
- Setting up workflow monitoring
- Configuring sync frequency