zvonilka
Skill0 starsChanged 5 months agoMITView on GitHub
End-to-end setup of a Retell AI voice agent for a local service business (cleaning, dental, HVAC, salon, auto detailing, roofing, etc.) starting from just a website URL. Extracts company DNA from the site, generates an anti-stupor sales-trained prompt with price-shopper objection handling + always-range pricing + photo-quote human handoff, creates the Retell LLM + Agent via SDK, binds to a purchased phone number with country lock + voicemail + recording disclosure, and deploys webhook + manual trigger endpoint to Vercel. ALWAYS use this skill when the user gives a client website URL plus any of: "voice bot", "voice agent", "Retell", "Retell AI", "AI caller", "AI receptionist", "phone receptionist", "outbound bot", "phone screener", "lead callback bot", "automated phone", "phone qualifying", "qualify leads by phone", "call back leads", "Twilio Retell", "Anna" (canonical persona), "Zvonilka", "звонилка", or names a local service business and a phone-quoting workflow — even if the user does not explicitly say "skill". Also trigger when the user wants to follow up on website form submissions by phone, answer inbound FAQs by phone, or replace a human-answered booking line with an AI. Skip only for: text-only web chatbots, raw Twilio scripts without LLM, calls outside North America (compliance layer differs), or HIPAA/healthcare scenarios (separate compliance review needed).
- Reads credentials
- Installs packages
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-visibilitySkill
- audit-pipelineSkill
- lead-form-hardeningSkill
- tnova-seo-geoSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 78
Test number (owner's spouse / friend / second phone — for outbound smoke test)
- Very specific: line 80
Verify the existing project has: Next.js App Router, Upstash Redis (for outcome logging), Vercel deployment linked.
- Very specific: line 83
Read the client's existing content files (typically src/content/services.ts + src/content/business.ts in a TNova-template project).
- Very specific: line 91
If the client has no structured content files (just an HTML site), build these two files first by extracting from the site.
- Very specific: line 108
Add the 7 env vars to Vercel Production via vercel env add (see template list above)
- Very specific: line 115
After each test call, read the transcript in Retell Dashboard → Call History.
- Distinctive: line 148
If those files don't exist, build them first from the website.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zvonilka — Retell voice agent setup, end-to-end
A skill for spinning up a tactful, sales-trained, lead-qualifying voice agent for a client's local service business in under an hour, starting from nothing but their website URL.
When to use
Trigger when the user wants any of:
- A bot that calls leads from a form / Meta Pixel / CRM within seconds of submission
- A bot that answers inbound calls when the owner is busy
- A bot that qualifies leads down to bookable (service + size + location + date) before passing to a human
- A bot that shifts price-shoppers to SMS rather than burning the lead
- A human-handoff workflow where the bot collects info then a real person calls back
Typical user prompts: "set up a voice bot for {site}", "my client wants an AI caller for {business type}", "make Anna for this site", "build me Zvonilka for {client name}".
Skip if
- Pure text chatbot (use a chat-specific skill instead)
- Telephony without LLM (use Twilio docs directly)
- Outside North America (compliance section needs rewriting per country — fork the skill)
- Healthcare/HIPAA scenarios (separate compliance layer needed)
Core philosophy (the non-negotiables)
These are baked into the prompt template and should NOT be removed when adapting for a new client:
- Always disclose AI in the first sentence. Phrase: "an automated assistant from {Brand}". Closes CRTC/CASL/TCPA identification requirements + AI-disclosure best practice with zero conversion cost (<5% delta per Retell data). "Stealth AI" is a trap — one regulator complaint = $15k/call.
- Always disclose recording in the first sentence. Phrase: "This call may be recorded for quality." Required under Alberta PIPA + most provincial/state laws.
- Always price as a range, never a single number. "Around $X to $Y, depending on how [the home/space/scope] is." Exact price = human photo-handoff path (coordinator texts from a personal number, asks for photos, hand-computes). Bot never touches photos, never has MMS.
- Never drop the price. Discounts destroy the unit economics of a small local business. Objection handling = stack value, not drop dollars.
- Take "no" the first time. Two objection-handles max, then graceful SMS handoff. Pushy bots torch warm leads that would've converted on a follow-up text.
- Honest "are you AI?" answer + instant human transfer on request. No negotiation, no "why" question.
- ONE short sentence per turn. Phone speakers + small TTS pauses = long sentences become wall-of-speech. Max ~12 words per turn unless reading a price range.
- Lead the caller through 4 steps: service → size → area → date. Don't ask vague "how can I help?". Use directing phrases: "Quick question:", "First thing I need:", "Got it — next:".
- Country-lock the phone number (inbound AND outbound) — prevents international scam-routing + accidental international outbound charges from typo'd numbers.
- Hard 3-minute call cap. Anything beyond becomes SMS handoff. Phone time is expensive; SMS is free and the right tool for "let me think about it" leads.
What the skill produces
A complete voice-agent stack in the client's existing Next.js + Vercel project:
src/lib/voice/
retell.ts # HMAC signature verify + thin type for tools
kb-summary.ts # generates compact inline KB from client's services.ts + business.ts
prompts.ts # full Anna persona prompt with company facts baked in
functions.ts # 6 standard custom tools
retell-agent.ts # agent voice/timing config
src/app/api/voice/
webhook/route.ts # Retell events + function-call handler, Redis-only side effect
trigger/route.ts # protected manual trigger for outbound test calls
scripts/
sync-retell-kb.ts # idempotent KB CRUD via SDK
sync-retell-llm.ts # idempotent LLM CRUD (rerun after every prompt edit)
sync-retell-agent.ts # idempotent Agent CRUD
bind-retell-number.ts # binds agent to purchased number + country lock
_env-write.ts # helper that updates .env.local non-destructivelyPlus 7 env vars added to local .env.local and Vercel Production: RETELL_API_KEY, RETELL_KB_ID, RETELL_LLM_ID, RETELL_AGENT_ID, RETELL_WEBHOOK_SECRET, VOICE_TRIGGER_SECRET, RETELL_FROM_NUMBER, SITE_URL.
Phased workflow (~45 min end to end)
Phase 0 — Intake (5 min)
Collect from user:
- Client website URL (must be public, no Vercel auth gate on it — required for KB scrape later)
- Retell API key (must be from the workspace where the phone number is — see "Workspace gotcha" below)
- Phone number — either already purchased in Retell Dashboard or get one now (~$2/mo)
- Bot persona name (default:
Anna. Local flavor:Daria,Olha,Maya, etc.) - Voice (default:
11labs-Annaif female persona — see Retell voices list) - Test number (owner's spouse / friend / second phone — for outbound smoke test)
Verify the existing project has: Next.js App Router, Upstash Redis (for outcome logging), Vercel deployment linked. If not — these are the only platform requirements.
Phase 1 — Extract company DNA (10 min)
Read the client's existing content files (typically src/content/services.ts + src/content/business.ts in a TNova-template project). Pull:
- Brand name, founding year
- Phone, email, hours, region
- Trust signals (license, insurance, bond, eco, family-run, etc.)
- Service area list (will be used for in-area / out-of-area triage)
- Full service catalog with pricing tiers (will be rendered into prompt §0 as authoritative facts)
- Anything they explicitly DON'T do (will be rendered into FAQ as "we don't, happy to refer")
If the client has no structured content files (just an HTML site), build these two files first by extracting from the site. The whole prompt depends on having business.ts and services.ts as the single source of truth.
Phase 2 — Generate the prompt + scripts (10 min)
Copy the 12 boilerplate files from this skill's scripts/ folder into the client project (see scripts/README.md for the destination map — most files land in src/lib/voice/, two go to src/app/api/voice/, the rest in client scripts/). The 5 lib/voice/ files are largely identical between clients — only prompts.ts (persona name + identity string + industry-adapted FAQ) and retell-agent.ts (agent_name + voicemail message) need editing. The §0 Company Facts block in prompts.ts is auto-generated by buildCompanyFacts() reading business.ts + services.ts, so changing those upstream content files regenerates the bot's grounding on the next LLM sync. See prompt-template.md for the placeholder map.
Phase 3 — Create Retell objects (5 min)
pnpm add -D retell-sdk dotenv tsx
pnpm tsx scripts/sync-retell-llm.ts # creates LLM, writes RETELL_LLM_ID
pnpm tsx scripts/sync-retell-agent.ts # creates Agent, writes RETELL_AGENT_ID
pnpm tsx scripts/bind-retell-number.ts # binds agent + country lockKB step (sync-retell-kb.ts) is optional in MVP — facts are already baked into prompt §0. Run it only if the client wants the bot to also pull live blog content / dynamic FAQ from the website. The KB API has been buggy on fresh Retell accounts (500s on URL sources) — keep this step optional and fall through gracefully.
Phase 4 — Deploy + smoke test (10 min)
vercel deploy --prod --yes(or use Vercel auto-deploy via main branch push)- Add the 7 env vars to Vercel Production via
vercel env add(see template list above) - Redeploy so env takes effect
- Smoke test webhook:
curl https://{client-domain}/api/voice/webhook→ expect{"ok":true,"route":"voice/webhook","note":"POST only"} - Trigger outbound test call via
/api/voice/trigger(see scripts/api-voice-trigger.ts for endpoint shape) - Walk the spouse / test caller through the 15 anti-stupor scenarios (see
anti-stupor-scenarios.mdin this skill)
Phase 5 — Iterate the prompt (per-call basis)
After each test call, read the transcript in Retell Dashboard → Call History. Find stupors from the table in anti-stupor-scenarios.md. Edit src/lib/voice/prompts.ts to address them → pnpm tsx scripts/sync-retell-llm.ts → next test call (~2 sec).
Repeat until 3 consecutive test calls have zero stupors. Then the bot is ready for live leads.
Workspace gotcha (BURN-INDUCING — learned the hard way)
Retell accounts can have multiple Workspaces (e.g. one default your default + one per-client UEC). API keys are workspace-scoped. If the client buys a phone number in workspace A but you create the LLM/Agent with an API key from workspace B, your phoneNumber.list() returns 0 and binding fails silently with a confusing "no numbers" error.
Always confirm the API key is from the SAME workspace as the phone number. Check by going to Retell Dashboard → top-left workspace switcher → Settings → API Keys. Don't trust the user that "the key is right" — show them the workspace name + the key name + verify.
Compliance reference
This skill defaults to Canadian compliance (CRTC UTRs, ADAD rules, Alberta PIPA, CASL for SMS). See compliance-canada.md for the full layered breakdown. For US clients, swap to TCPA/FCC layer (consent forms differ, recording disclosure varies by state). For EU/UK, GDPR + Ofcom — fork the skill.
The prompt section §3 (mandatory first sentence) and §10 (hard exits) are the load-bearing compliance pieces. Never weaken them per a client's "but my competitors don't disclose" request — that's the regulator-jackpot scenario.
Reference files in this skill
Load only what's relevant to the current phase — each file is operational, not aspirational, and stands alone.
prompt-template.md— full 13-section Anna prompt with{{placeholders}}+ per-industry adaptation table. The most important file; read it in Phase 2.audience-research-template.md— structured output the Discovery agent (Phase 1) writes totmp/zvonilka-discovery-{slug}.md. Read before launching the Explore subagent.anti-stupor-scenarios.md— 15-scenario test matrix + the typical stupors each catches + the prompt rule that fixes each. Read in Phase 4 + 5.price-shopper-playbook.md— 8 verbatim objection responses + value-stack patterns + the "never drop price" rule + when to give up and warm-SMS. Embedded into prompt §5c.compliance-canada.md— CRTC UTRs + ADAD + Alberta PIPA + CASL + AIDA status + Quebec Law 25 fallback. Default jurisdiction.compliance-us.md— TCPA + FCC AI-caller order + California AB 2885 + per-state notes. Use when client is US-based.retell-objects.md— the 3-level hierarchy (KB → LLM → Agent), idempotent CRUD pattern, workspace gotcha, phone-binding array format, voice IDs, function-call response shape.scripts/— 12 production-tested TypeScript files + a README with per-file customization map. Drop straight into the client project.
Recommended first move when the skill is invoked
Always start by reading the client's src/content/business.ts and src/content/services.ts (or equivalent) to extract company DNA. The prompt is generated from these. Without them, you're guessing — and the bot will hallucinate prices and areas, which is the failure mode that loses the client's trust on day one.
If those files don't exist, build them first from the website. Do NOT try to shortcut by scraping at runtime — the prompt must be deterministic.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

