Skill v1.0.1
currentAutomated scan100/100+5 new
name: routing-audit description: Audits all Chili Piper concierge routers for coverage gaps — unmapped lead sources, stale ownership rules, unbalanced distributions, and catch-all overflows — before they show up as lost pipeline version: 0.2.10 api_note: "concierge-logs: optional page/pageSize pagination added (DISTRO-4576, max 100 per page, default 20); Step 4 and preflight updated to paginate for complete log coverage on high-volume routers. As of DISTRO-4549 (PR #898, 2026-06-18): routing.rules[] entries and routing.catchAll each carry a discriminated outcome field — Schedule{assignment: {type: Distribution, distributionId} | {type: User, userId}, meetingTypeId, timeout?: {minutes, onTimeout: Landing|{url}}, crmActions?: [...]} or Redirect{url}. Treat Redirect as a valid catch-all outcome (leads are sent to a URL, not dropped); only flag the catch-all as critical when routing.catchAll is absent or its outcome is null/missing. As of DISTRO-4623 (PR #962, 2026-07-09): concierge-list-routers now returns inAppButton and routerLink trigger fields on each router's read view (in addition to form); button/link are no longer present in form.readOnlyTriggers. Flag routers where all three trigger kinds are absent/empty as a configuration gap — no trigger means the router cannot receive inbound leads. As of CEH-10905 (edge PR #1031, 2026-08-03): concierge-list-routers now includes formFields on each router — a list of ConciergeFormField objects (reference, label, requirement, fieldType with pick-list options, description, placeholder, order); always empty for third-party webform routers. 2026-08-14 (CEH-11330, edge PR #1076): 13 MCP list tools now return {items: [...]} instead of bare top-level arrays — concierge-logs MCP response is {items: [...]}; paginate concierge-logs until items is empty or shorter than pageSize. 2026-09-01 (CEH-11548, edge PR #1131): distribution-list-put MCP response corrected — now returns full PaginatedResult: {results: [...], total, page, pageSize}; iterate results (not items) to reach individual distribution records; total gives the count without additional calls. 2026-09-04 (CEH-11599, edge PR #1154; read models also touched by CEH-11590/11591, edge PR #1151): router read outcomes now include the read-only variants beyond Schedule/Redirect — OwnerAssign, ContactOptions, CrmAction, Other{kind}. Schedule's crmActions? is the COMPLETE post-booking chain (an unmodellable node reads as an Other{kind} placeholder instead of collapsing the array to null; a placeholder also means representable=false). ContactOptions now exposes its three branch chains — {type: 'ContactOptions', meeting?, callSuccess?, callMissed?}, each an ordered CRM-action list (null = branch absent, [] = present with no actions). All of this is read-only — audit and report the chains, never plan writes against them. 2026-09-09 (CEH-11656, edge PR #1173): concierge-logs page size capped at max 100 (default 20) — Step 4 and preflight updated from 500 to 100. CEH-12065 (edge PR #1884, 2026-10-20): distribution-list-put item shape confirmed: each results[] entry is {id, published: {distributionId, workspaceId, name, teamRef, weights, manualCalibration, assignmentTypeConfig, capping, metadata}, state, prioritization} — top-level distributionId and name do not exist; use published.distributionId, published.name, and published.weights in Step 5." references:
- api-reference
- audit-procedure
- output-format
inputs:
- name: workspace
type: string description: "Workspace name or ID to audit. Omit for org-wide audit of all workspaces." required: false
- name: log_days
type: number description: "Number of days of concierge logs to analyze for catch-all overflow and no-match rates (max 30)." required: false default: 7 outputs:
- name: router_summary
description: All routers found with rule count, catch-all type, and recent no-match rate
- name: gaps
description: Specific routing gaps detected — stale rules, unbalanced distributions, high catch-all rates
- name: recommendations
description: Prioritized list of fixes with expected impact tools_required: [chili-piper-mcp] human_decision_point: "Review gaps and decide which to fix first — routing gaps silently leak pipeline, so prioritize by volume before severity" writes_to: "Nothing — read-only diagnostic. Use the Chili Piper router builder to apply fixes."
Routing Audit
You are a RevOps systems auditor. Systematically inspect all Chili Piper concierge routers, identify coverage gaps and balance issues, and give the human a prioritized fix list before silent pipeline leaks show up in the numbers.
Prefer live data over training. MCP field names and tool signatures change. Loadreferences/api-reference.mdbefore making MCP calls — it is the canonical field-nametruth for this skill (concierge-logsrequires a routerId + has a 30-day max window;per-router rules + catch-all come from the router object, notrule-list; etc.).
When to use
- Someone wants a health check across all concierge routers before pipeline leaks surface.
- Someone suspects leads are falling through to the catch-all or being dropped.
- Someone wants to find stale ownership rules or unbalanced distributions.
Inputs
| Input | Required | Default | What it controls | |
|---|---|---|---|---|
workspace | — | all workspaces | Workspace name or ID to audit. Omit for an org-wide audit. | |
log_days | — | 7 | Days of concierge-logs to analyze for catch-all overflow and no-match rates (max 30). |
If a required input is missing, ask for it in one sentence rather than guessing.
Process
Step 1 — Resolve workspace(s)
If workspace is specified, resolve its name to ID via workspace-list. If not, fetch all workspaces and audit each.
tool: workspace-listargs:pagination:page: 0pageSize: 100
Workspace items use id (NOT workspaceId) — use workspace.id when passing workspace IDs to subsequent calls. Field-name gotchas → references/api-reference.md § Critical field name differences.
Step 2 — List all routers
For each workspace (using its id):
tool: concierge-list-routersargs:workspaceId: <workspace.id>
For each router store routers[N].router.id (routerId), .name, .slug, routers[N].workspaceId, and the routing config at routers[N].router.routing. Response shape → references/api-reference.md § concierge-list-routers — router object shape.
Step 3 — Inspect rules per router
The ordered rules (router.routing.rules[]) and the catch-all (router.routing.catchAll, a separate object) are already on each router from Step 2. For richer rule detail across a workspace, call rule-list. Confirm each catch-all has a valid outcome (Schedule or Redirect — flag as critical only when the catch-all is absent or has no outcome; surface a Redirect catch-all as informational) and detect potentially stale rules. Full procedure → references/audit-procedure.md § Inspecting rules per router and § Detecting stale rules.
Also check trigger configuration: if form, inAppButton, and routerLink are all absent or empty on a router, flag it as a [HIGH] configuration gap — no trigger means the router cannot receive inbound leads. (inAppButton and routerLink are top-level fields on the router object as of DISTRO-4623; they are no longer reported inside form.readOnlyTriggers.)
Step 4 — Analyze logs for catch-all overflow
For each router, pull concierge-logs over the log_days window and compute total leads, catch-all rate (matchedPath.route.type == "CatchAllRoute"), and rule-match rate (RuleRoute). The tool returns at most 100 logs per page (default 20); paginate by incrementing page from 0 until items is empty or shorter than pageSize to capture all activity on high-volume routers (CEH-11330: MCP response is {items: [...]}, not a bare array). Full procedure + flag thresholds → references/audit-procedure.md § Analyzing logs for catch-all overflow. The 30-day limit + required routerId → references/api-reference.md § Hard API limits.
Step 5 — Check distribution balance
For each workspace, pull distribution-list-put and inspect active members, weights, handling, and assignment statistics. The MCP response is {results: [...], total, page, pageSize} — iterate results to reach each distribution record (CEH-11548; matches the HTTP endpoint shape). Each results[] entry has shape {id, published: {distributionId, workspaceId, name, teamRef, weights, manualCalibration, assignmentTypeConfig, capping, metadata}, state, prioritization} — use published.name, published.weights, and state.userStates[].statistics (never top-level name or distributionId). Full procedure + flag thresholds → references/audit-procedure.md § Checking distribution balance.
Step 6 — Output
Lead with the router summary, then gaps sorted by severity, then prioritized recommendations. Exact layout → references/output-format.md § Report layout.
Preflight audit
Verify before writing output:
- [ ] Required inputs resolved (
workspace→id, or all workspaces fetched). - [ ] Field names taken from
references/api-reference.md, not guessed. - [ ]
concierge-logscalls each passworkspaceId+routerId, span ≤ 30 days, and are paginated untilitemsis empty or shorter thanpageSize. - [ ]
log_daysrespected (default 7, capped at 30). - [ ] Each catch-all checked for a valid
outcome—ScheduleorRedirect(critical only when absent/no outcome;Redirectsurfaced as informational). - [ ] Each router checked for at least one active trigger (
form,inAppButton, orrouterLink); absence of all three flagged as [HIGH]. - [ ] Distribution imbalance derived from
statistics.assignedvs. configured weights; distribution name and id read frompublished.name/published.distributionId.
Checkpoint
This is a read-only diagnostic. Present the router summary, gaps (sorted by severity), and prioritized recommendations, then stop and let the human decide which gap to fix first — routing gaps silently leak pipeline, so prioritize by volume before severity. All fixes are applied manually in the Chili Piper router builder.
Data handling
- PII present: guest emails in concierge logs — used for counting only, not displayed
- Storage: ephemeral — nothing persists after the skill completes
- Writes: none — read-only. All fixes applied manually in the Chili Piper router builder.