/fe-sa-automation:customer-question-monitorfrom fe-sa-automation
Automated inbox scanning for customer questions with research-backed draft replies. Scans Gmail/Teams, researches via Glean/Slack/docs, creates Gmail drafts (never sends). Uses checkpoint dedup for scheduled runs. Use when the user says 'monitor inbox for customer questions', 'auto-scan and draft replies', or 'check for unanswered customer emails'.
Ships in fe-sa-automation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scans Gmail and Teams for customer questions, researches answers using Glean, Slack, and public documentation, and creates Gmail draft replies for human review. Never sends customer-facing emails — only creates drafts. (A self-notification summary email is sent to the user when new drafts are created.)
How this differs from similar skills:
fe-answer-customer-questionsrequires manual input — you paste questions, provide a Google Doc URL, or share a Slack thread. This skill automatically scans your inbox without manual intervention.draft-replies-emailscans for unanswered emails and drafts replies matching your writing style, but does not research answers via Glean, Slack, or documentation. This skill adds deep product research to produce technically accurate customer-facing replies with confidence ratings.Use
fe-answer-customer-questionsfor ad-hoc question answering,draft-replies-emailfor general inbox catch-up, and this skill for automated, research-backed customer Q&A monitoring on a schedule.
Monitor my inbox for customer questions and draft replies
Check for customer emails from Acme Corp and auto-draft responses
Scan my last 4 hours of email for unanswered customer questions
| Dependency | Required | Purpose |
|---|---|---|
Google Auth (google-auth skill) | Yes | Gmail read/draft access |
| Glean MCP | Optional | Internal docs, runbooks, wikis |
| Slack MCP | Optional | Channel discussions, similar questions |
| Teams MCP | Optional | External chat messages and mentions |
| Parameter | Required | Default | Description |
|---|---|---|---|
accounts | No | All external senders | List of account names to filter (e.g., ["Acme Corp", "Contoso"]) |
checkpoint_file | No | ~/.vibe/scripts/.qa-checkpoint.json | Path to checkpoint JSON for dedup tracking |
scan_hours | No | 4 (first run) | How far back to scan on the first run; subsequent runs use checkpoint timestamp |
CRITICAL — Read before running
- NEVER sends customer-facing emails — only creates Gmail drafts for customer replies
- Self-notification only — a summary email is sent to the user (not to customers) when new drafts are created
- All drafts require human review before sending to customers
- Checkpoint prevents duplicate processing — each message is processed at most once
- Only processes genuine customer questions — filters out notifications, newsletters, calendar invites, auto-replies, and other noise
Invoke the google-auth skill to obtain a valid access token with Gmail scopes (read, compose, modify).
If Glean MCP, Slack MCP, or Teams MCP are available, verify connectivity. These are optional — the workflow proceeds without them but produces richer answers when they are present.
Load the checkpoint file (default ~/.vibe/scripts/.qa-checkpoint.json). The schema:
{
"last_run": "2025-07-10T14:30:00Z",
"processed_messages": ["msg_id_1", "msg_id_2"]
}
last_run is null, treat this as the first run and scan the last scan_hours hours (default 4).last_run is set, scan from that timestamp to now.Search Gmail for messages from external senders (non-@databricks.com) received since last_run.
Gmail search query pattern:
after:{epoch_seconds} -from:databricks.com -label:sent -label:drafts
If accounts is provided, add sender filters for those domains/names.
Filter OUT (skip these):
.ics attachments, "invitation" subjects)X-Auto-Reply, Auto-Submitted headers)processed_messagesin:drafts for the thread ID before processing)Keep (process these):
Query Teams MCP for recent mentions and direct chats with external contacts since last_run.
Apply the same filtering rules as Gmail — skip automated messages, keep genuine questions.
For each question found in Steps 3–4, research using all available sources:
docs.databricks.comCompile two versions of each answer:
For each processed message, create a Gmail draft:
threadId and In-Reply-To headers)Draft HTML format (use this exact structure):
<div style="font-family: Arial, sans-serif; max-width: 700px;">
<!-- Customer-Facing Reply -->
<div style="background: #e8f5e9; border-left: 4px solid #4caf50; padding: 16px; margin-bottom: 16px; border-radius: 4px;">
<h3 style="margin-top: 0; color: #2e7d32;">Customer-Facing Reply</h3>
<p><!-- answer with inline hyperlinks, public docs only --></p>
</div>
<!-- Internal Notes -->
<div style="background: #e3f2fd; border-left: 4px solid #1976d2; padding: 16px; margin-bottom: 16px; border-radius: 4px;">
<h3 style="margin-top: 0; color: #1565c0;">Internal Investigation Notes</h3>
<p><!-- technical depth, Slack/Glean/JIRA links --></p>
</div>
<!-- Confidence -->
<div style="background: #fff3e0; border-left: 4px solid #ff9800; padding: 12px; border-radius: 4px;">
<strong>Confidence:</strong> <span style="color: #e65100;">Medium</span>
— <em>brief justification</em>
</div>
</div>
Confidence levels:
| Level | Meaning |
|---|---|
| High | Answer confirmed by public docs and/or PM statements |
| Medium | Answer supported by internal docs or Slack discussions but not fully confirmed |
| Low | Best-effort answer; recommend verifying with PM/engineering before sending |
After all drafts are successfully created:
processed_messageslast_run to the current timestampprocessed_messages to the most recent 200 entries to prevent file bloatOnly update the checkpoint after successful draft creation — if drafting fails for a message, leave it unprocessed so it is retried on the next run.
Skip this step entirely if zero new drafts were created.
If new drafts were created, send a short notification email to yourself with a summary table:
<table style="border-collapse: collapse; width: 100%; font-family: Arial, sans-serif;">
<thead>
<tr style="background: #f5f5f5;">
<th style="padding: 8px; border: 1px solid #ddd; text-align: left;">Source</th>
<th style="padding: 8px; border: 1px solid #ddd; text-align: left;">From</th>
<th style="padding: 8px; border: 1px solid #ddd; text-align: left;">Subject</th>
<th style="padding: 8px; border: 1px solid #ddd; text-align: left;">Confidence</th>
</tr>
</thead>
<tbody>
<!-- one row per draft -->
<tr>
<td style="padding: 8px; border: 1px solid #ddd;">
<span style="background: #D93025; color: white; padding: 2px 8px; border-radius: 4px; font-size: 12px;">Gmail</span>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">[email protected]</td>
<td style="padding: 8px; border: 1px solid #ddd;">Subject line</td>
<td style="padding: 8px; border: 1px solid #ddd;">High</td>
</tr>
</tbody>
</table>
Source badge colors:
| Source | Color |
|---|---|
| Gmail | #D93025 (red) |
| Teams | #6264A7 (purple) |
Subject line: [Q&A Monitor] {count} new draft replies ready for review
To run this skill automatically, use the fe-macos-scheduler plugin to create a recurring task:
Schedule "monitor customer questions" to run every 2 hours during business hours (8AM-10PM)
The checkpoint file ensures no duplicate processing across runs.
User: Monitor my inbox for customer questions and draft replies
→ Scans Gmail (and Teams if available), researches answers, creates drafts
User: Check for customer emails from Acme Corp and Contoso
→ Filters to those accounts only, creates drafts for their questions
User: Run the Q&A monitor for the last 8 hours
→ Overrides scan_hours to 8, processes all matching messages
User: Auto-draft replies to any unanswered customer questions
→ Full scan with default settings, creates drafts for review
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/account-consumption-reportGenerate a comprehensive weekly or monthly consumption trend report for any Databricks customer account. Includes 16 embedded charts covering spend trends, product breakdown, workspace analysis, contract burndown, user adoption, competitive landscape, BI tool ecosystem, and whitespace opportunities. Delivered as an HTML email with inline charts. Use when the user says 'consumption report', 'account health email', 'weekly consumption email', 'spending report', 'consumption trend', or wants to generate a recurring consumption analysis for a customer./daily-meeting-prepGenerate and EMAIL a daily meeting prep brief for tomorrow. Reads Google Calendar, classifies meetings (customer/internal/1:1/travel/PTO), detects conflicts and travel logistics, pulls Salesforce UCO context, and sends a formatted HTML email to specified recipients. Distinct from sa-planner (which outputs to terminal/doc, not email). Use when the user says 'email me tomorrow prep', 'send daily prep email', 'daily meeting prep email', 'email me what I have tomorrow', or wants a daily briefing delivered via email./product-updates-digestGenerate a weekly digest of Databricks project-updates@ mailing list emails. Reads all project update emails from the past week, categorizes features by maturity stage (GA/Preview/Beta/Private Preview/Coming Soon), identifies SA action items and customer opportunities, and sends a concise digest email. Use when the user says 'project updates', 'product updates digest', 'what shipped this week', 'feature updates', 'weekly product digest', or wants a summary of Databricks product changes./weekly-planning-reportGenerate and EMAIL a comprehensive weekly planning report for the upcoming week. Reads Google Calendar for Mon-Fri, pulls account context from Salesforce and Logfood, sends a detailed HTML email with day-by-day schedule, account briefings, and action items, and optionally updates a shared Google Doc to-do list. Distinct from sa-planner (which outputs to terminal/doc, not email). Use when the user says 'email me a weekly prep report', 'send weekly planning email', 'weekly prep email with account briefings', 'email next week schedule', or wants a weekly briefing delivered via email.npx claudepluginhub sarah-hord-db/vibe --plugin fe-sa-automation