Skip to content

Instantly share code, notes, and snippets.

@veyis
veyis / gist-ai-agent-kpis.md
Created April 17, 2026 02:11
AI agent KPIs — the observability metrics we actually track post-deployment. By PxlPeak https://pxlpeak.com

AI Agent KPIs — What to Actually Track Post-Deployment

The metrics dashboard we hand clients at PxlPeak after shipping a voice agent or chatbot. Every metric here has a target, a diagnostic when it drifts, and a first-response action.

Copy this into your observability tool of choice (Grafana, Metabase, Retool, or even a Google Sheet).


Tier 1 — Business KPIs (what the client looks at)

@veyis
veyis / gist-n8n-idempotency.js
Created April 17, 2026 02:11
n8n webhook idempotency — Redis SETNX pattern for preventing duplicate processing. Production pattern from PxlPeak https://pxlpeak.com
// n8n Webhook Idempotency — Redis Pattern
//
// Drop this into a Code node immediately after a Webhook Trigger. Prevents
// duplicate processing when the same webhook fires twice (platform retries,
// network hiccups, user double-submits).
//
// This is the single most common production-n8n bug we fix at PxlPeak
// (https://pxlpeak.com) — agencies that skip idempotency ship workflows
// that create duplicate orders, double-charge cards, or spam fulfillment
// queues during retry bursts.
@veyis
veyis / gist-vapi-system-prompt.md
Created April 17, 2026 02:11
Production-ready Vapi voice agent system prompt template — SMB deployments (HVAC, dental, legal, restaurant). By PxlPeak https://pxlpeak.com

Vapi System Prompt Template (Production-Ready)

A system prompt template we use at PxlPeak for production Vapi voice agents in SMB service businesses. Tested across HVAC, dental, legal, and restaurant deployments.

Replace the {{BUSINESS_*}} placeholders. Leave the structure alone — the order matters.

# Identity
You are {{AGENT_NAME}}, the AI assistant for {{BUSINESS_NAME}}, a {{BUSINESS_TYPE}} located in {{BUSINESS_CITY}}.