LOW / CODEBlueprints
customer-supportai

AI Customer Response Drafter

Claude AI drafts professional customer support replies based on ticket content and a knowledge base document stored in Google Sheets. The agent reviews the draft before sending via Gmail.

Intermediate~25 minn8nMake.com 494 downloads 1372 views

Setup Instructions

1. Create a Google Sheet named "Support Knowledge Base" with columns: Topic, Question Pattern, Approved Answer, Last Updated. Populate with your most common support questions and approved responses. 2. In your automation platform, add a Gmail trigger node that watches for new emails with a specific label (e.g., "Support Inbox") or from a support alias. 3. Add a Google Sheets node to read all rows from the Knowledge Base sheet — this gives Claude context for drafting accurate responses. 4. Add an HTTP Request node to call the Claude API (POST https://api.anthropic.com/v1/messages). Set headers: x-api-key: {{YOUR_ANTHROPIC_API_KEY}}, anthropic-version: 2023-06-01, Content-Type: application/json. Use model claude-sonnet-4-20250514. 5. In the request body, send: (a) the customer's email content, (b) the knowledge base entries, and (c) instructions to draft a professional, empathetic reply that references the knowledge base where applicable. Instruct Claude to flag if no KB article matches. 6. Connect a Gmail node configured to create a draft reply (not send) to the original email thread. This allows the support agent to review before sending. 7. Optionally, add a Google Sheets logging node to track: Timestamp, Customer Email, Subject, KB Article Used, Draft Status. 8. Test by sending a sample support email and verifying a well-crafted draft appears in Gmail ready for review.
Troubleshooting
**Claude ignoring the knowledge base:** Ensure the KB data is passed in a structured format (e.g., numbered entries). Add explicit instructions: "You MUST reference the knowledge base entries provided. If a matching entry exists, base your response on it." **Gmail draft not appearing in the correct thread:** Set the threadId and In-Reply-To header in the Gmail draft node to match the original message. Without these, Gmail creates a new thread instead of replying. **Responses sound too robotic:** Add tone instructions to your Claude prompt: "Write in a warm, professional tone. Use the customer's name. Acknowledge their frustration before providing the solution." **Knowledge base too large for one API call:** If your KB exceeds Claude's context window, add a pre-filtering step — use a text search or embedding match to send only the top 5-10 most relevant KB entries instead of the entire sheet.

Need a custom version?

We can build a tailored automation workflow for your specific needs.

New blueprints weekly

Get notified when we publish new automation workflows.