Manny's AI Guide
A beginner's map · AI receptionist · English & Spanish

Build an AI phone agent that answers your calls

Give your business a phone number that always answers. The agent greets callers, answers questions from your own knowledge, takes messages, books appointments and transfers to you when a person is needed, in English and Spanish, day and night. This page compares three ways to build it and walks you through each one. One made-up example runs all the way through: Sunset Wireless, a small cell phone store that gets calls about phones, plans, repairs, upgrades and accessories.

Phone agent: your receptionist Caller and phone number Supabase: your knowledge and messages Claude: your builder
The big picture

What happens when someone calls

Three pieces answer the call, and two more give the agent something to say and something to do.

A caller dialsAny phone, any time.
Your phone numberUsually rented from Twilio for a dollar or two a month.
The voice agentElevenLabs, Grok or Retell/Vapi. It listens, thinks and talks.
What it knows
Your knowledge baseOne Google Drive or Dropbox folder, copied into Supabase. Store hours, plan prices, trade-in rules, repair times.
What it can do
Save a messageBecomes a thread in your Inbox.
Book a timeAdds it to your Google Calendar.
Transfer to youRings your cell when a person is needed.
Pick one to start

Choose your platform

All three can answer calls, use your knowledge, take messages and transfer to you. They differ in voice, setup and price. You can start with one and switch later, because your knowledge and messages live in Supabase, not inside the platform.

ElevenLabs AgentsxAI's Grok VoiceRetell / Vapi
Voice qualityBest known for natural voices; thousands to pick from, plus voice cloningVery natural; built-in voices plus custom cloned voicesGood; you can also plug in ElevenLabs voices
Easy for beginnersYes. Dashboard plus an API Claude can useHarder. A developer API; Claude builds a small phone server for youYes. Dashboards made for call centers
Knowledge baseBuilt in: upload files, add web pages or textThrough tools: it can search your documents or call your own lookupBuilt in. Retell can also sync Google Drive files
Phone numberConnect your Twilio number in the dashboardTwilio number plus the phone server Claude sets upBuy one inside, or import Twilio. Vapi gives one free US number for incoming calls
BookingThrough a tool that calls your calendarThrough a tool that calls your calendarBuilt in: Retell with Cal.com, Vapi with Google Calendar
Cost per minute*About $0.08 for voice, plus the AI modelAbout $0.08, voice and AI includedRetell about $0.07–$0.31; Vapi adds a hosting fee plus each part
Best forYour first agent, the best voice, English and SpanishThe lowest cost per minute if you don't mind more setupA real call center: many lines, transfers, reports

*Prices as of November 2026, before the phone company's charge. Prices change, so check each site before you start.

Recommended start

ElevenLabs Agents

The best voices and everything in one place: phone, knowledge, tools and transfer. Manny already uses ElevenLabs in his iPhone app Paany, so the account is ready.

Jump to the ElevenLabs steps ↓
Lowest all-in cost

xAI's Grok Voice 3.0

Released October 14, 2026. Voice and AI in one price. It's a developer API, so Claude builds the small phone bridge for you, starting from xAI's own Twilio example.

Jump to the Grok steps ↓
Call-center tools

Retell / Vapi

Dashboards, warm transfers, built-in booking, call reports and many lines at once. Both can use ElevenLabs voices.

Jump to the Retell/Vapi steps ↓
Setup, in order

From idea to a phone that answers

First the things every platform needs: step 0, your knowledge base and the agent's jobs. Then follow the steps for the platform you picked.

Step 0 · Before you start

Get ready

  1. Create a Twilio account and buy a local phone number. In November 2026 a US local number is about $1.15 a month, plus about a penny a minute for incoming calls. (Vapi can also give you one free US number for incoming calls.)
  2. Sign up for the platform you picked: ElevenLabs, xAI, Retell or Vapi.
  3. Have Supabase and Claude Code ready, as in the Website guide. Messages and knowledge live in Supabase.
  4. Decide three things: what the agent says first, your hours, and the cell number it should transfer to.
Your first prompt, copy and change itWrite a call script and rules for an AI phone receptionist for my cell phone store, Sunset Wireless. Callers ask about phones, plans, repairs, upgrades and accessories. It must say it's an AI assistant and that the call may be recorded in the first sentence, answer only from my knowledge base, take a message when it doesn't know, book appointments to set up a new phone or drop off a repair, transfer to my cell at +1 555-555-0100 when someone asks for a person, and speak English or Spanish to match the caller. Save it as phone-agent-rules.md and ask me questions about anything you need.
You'll walk away withTwilio number + platform account + phone-agent-rules.md
Shared part A · Every platform

A knowledge base from one folder

Don't connect your whole Google Drive or Dropbox. Make one folder, for example "Phone Agent Knowledge", and put only what callers may hear in it: store hours, plan prices, trade-in rules, repair times, directions and FAQs. Both Google Drive and Dropbox let you give access to that one folder and nothing else.

Option 1 · Google Drive

Share one folder with a robot account

  1. In Google Cloud Console, create a project, turn on the Google Drive API and create a service account. A service account is a robot Google user with its own email address.
  2. In Google Drive, right-click your knowledge folder, choose Share, and add the service account's email as a Viewer.
  3. That's the whole trick: the robot can open only what you shared with it. Your other files stay invisible to it.

Not sure where a button is? Ask Claude to walk you through creating the service account, one click at a time.

Option 2 · Dropbox

Use an app folder

  1. In the Dropbox App Console, create an app and choose App folder access, not Full Dropbox.
  2. Dropbox makes a folder at Dropbox/Apps/<your app name>. Put your knowledge files there.
  3. The app can only see inside that folder. The rest of your Dropbox stays private.

Ask Claude to help you create the app and get its access keys.

Keep it safe

Put the folder's keys in Supabase secrets

Copy this into Claude CodeSave the knowledge folder keys from .env.local as Supabase secrets. Don't print them.
Copy · Automatic

Copy the folder into Supabase

Copy this into Claude CodeCreate a Supabase knowledge table and a scheduled Edge Function that checks my Phone Agent Knowledge folder every hour, reads only that folder, and copies new or changed files into the table as plain text. Then send the same text to my phone agent's knowledge base.
You'll walk away withA knowledge table that updates itself
Shared part B · Every platform

The agent's six jobs

Start with the first three. Add booking, transfers and the second language once those work.

Greet and say it's an AI

The first sentence says who you are and that it's a virtual assistant. Some places now require it, and callers trust it more.

Add to the agent's rulesStart every call with: "Hi, you've reached Sunset Wireless. I'm the store's AI assistant, and this call may be recorded. How can I help?"

Answer from your knowledge

It answers only from the knowledge base. If the answer isn't there, it never guesses. It offers to take a message.

Add to the agent's rulesAnswer only from my knowledge base. If you don't find the answer, say "I'm not sure, let me take a message" and never make things up.

Take a message

It saves the caller's name, callback number, reason and the call transcript as a new thread in your Inbox, and emails you. How the Inbox works.

Add to the agent's rulesWhen a caller leaves a message, call a Supabase function that saves their name, callback number, reason and the transcript as a new Inbox thread marked Phone, and emails me from my Gmail.

Book appointments

It checks your free times in Google Calendar or Cal.com, offers two or three, and reads the date, time and time zone back before booking.

Add to the agent's rulesLet the agent check my Google Calendar for free 30-minute slots during open hours for new-phone setup or repair drop-off, offer two or three, repeat the date, time and time zone, then book it and text the caller a confirmation.

Transfer to a person

If the caller says "person" or presses 0, it transfers to your cell. After hours it takes a message instead and says when you'll call back.

Add to the agent's rulesIf the caller asks for a person or presses 0 during open hours, transfer to my cell. After hours, take a message and say I'll call back the next business day.

Speak English or Spanish

It answers in the caller's language. If it isn't sure, it asks: "English or español?"

Add to the agent's rulesAnswer in the caller's language, English or Spanish. If you're not sure, ask "English or español?" Use a natural voice for each language.
Pick your track

Build it on your platform

Follow only the track for the platform you picked. Each one ends with a test call.

Track 1 · RecommendedElevenLabs Agents

Create · Dashboard

Create the agent and pick its voices

Copy this into Claude CodeHelp me set up my ElevenLabs agent: use phone-agent-rules.md as the instructions, write the first message, and suggest a warm English voice and a warm Spanish voice.
Knowledge

Give it your knowledge

Tools

Connect its tools

Copy this into Claude CodeCreate Supabase Edge Functions for take_message and book_appointment, add them to my ElevenLabs agent as tools, and turn on transfer_to_number to my cell during open hours.
Phone · Dashboard

Connect your Twilio number

You'll walk away withA real number that answers with your agent

Track 2 · Lowest costxAI's Grok Voice

Key

Get an xAI API key

Build · Claude does it

Let Claude build the phone bridge

Copy this into Claude CodeUse xAI's Twilio phone example from the xai-cookbook to build my phone agent with Grok Voice. Load phone-agent-rules.md as the instructions, add tools that read my Supabase knowledge table, take a message, book an appointment and transfer to my cell, test it on my computer first, then tell me the simplest place to host it.
Phone

Point your Twilio number at it

You'll walk away withA Grok-powered number + a small server you own

Track 3 · Call centerRetell / Vapi

Create · Dashboard

Create the agent

Knowledge

Add your knowledge

Built-in tools

Turn on transfers and booking

Copy this into Claude CodeHelp me set up my Retell agent: turn on warm transfer to my cell during open hours, connect Cal.com booking for 30-minute new-phone setup and repair drop-off appointments, and add my Supabase take_message function as a custom tool.
Phone · Dashboard

Get or import a number

You'll walk away withA call-center line with reports and transfers
Before the agent calls anyone

Answering calls is simple. Making calls is regulated. The next three sections have the agent call people, so read this first.

Outgoing · Your website or app

Instant callback when someone sends an inquiry

Someone fills in your contact form about a trade-in. Within about a minute, your agent calls them, already knowing what they asked.

Consent · On the form

Add a callback checkbox to your form

Yes, call me back at this number about my inquiry. The call may be from an AI assistant and may be recorded.
Copy this into Claude CodeAdd an unticked checkbox to my contact form on the website and in the iPhone app: "Yes, call me back at this number about my inquiry. The call may be from an AI assistant and may be recorded." Save callback_consent (yes/no), the time and the exact wording with each inquiry. Ask for a phone number only when the box is ticked.
Trigger · Automatic

A new inquiry starts the call

  • ElevenLabs: its Twilio outbound-call API
  • Retell: Create Phone Call
  • Vapi: its outbound calling API
  • Grok: Twilio starts the call and connects it to your phone server
Copy this into Claude CodeWhen a new inquiry is saved with callback_consent = yes, run a Supabase Edge Function that starts an outgoing call from my agent to that number, passing their first name and their question as context. Only call between 8 am and 9 pm in their local time; otherwise schedule it for 9 am and email them that we'll call at 9.
Call · About a minute later

The agent calls, already in context

"Hi Maria, this is the AI assistant from Sunset Wireless, and this call may be recorded. You just asked about trading in your phone. Is now a good time?"
Log · Inbox

Everything lands in the thread

You'll walk away withInquiries answered by phone within a minute
Outgoing · Your customers

Thank-you calls and promos to your customers

A friendly call after a purchase, with this month's offer. Because it promotes something, it's a marketing call, so it goes only to customers who gave written consent.

Data · Supabase

Keep a customers table

Copy this into Claude CodeCreate a customers table in Supabase with name, phone in E.164 format, time_zone, last_visit, marketing_consent (yes/no), consent_date, consent_wording, consent_source (store tablet, website, app) and do_not_call. Add the marketing consent checkbox, unticked, to checkout, the store tablet, my website and my app.
Filter

Call only people who said yes

Call · Paced

Use your platform's batch calling

"Hi James, this is the AI assistant from Sunset Wireless, and this call may be recorded. Thanks for picking up your new phone with us last week! This month we have a discount on accessories. Would you like me to book a time to come in? And if you'd rather not get these calls, just say 'stop calling' anytime."
Copy this into Claude CodeEvery Tuesday at 10 am, send a batch of thank-you calls through my agent to customers with marketing_consent = yes, not do_not_call, who bought something in the last 14 days. Use their first name and the accessories promo. If anyone says stop calling, set do_not_call right away.
Log · Retry once

Log each outcome, retry once, then stop

You'll walk away withThank-you calls only to people who asked for them
When nobody answers

Voicemail and callbacks

The agent waits for the beep, leaves a short safe message, and recognizes the person when they call back.

1 · Wait for the beep

Answering-machine detection tells a person from a voicemail greeting. Twilio's Answering Machine Detection can wait until the greeting ends, and Retell and Vapi have voicemail detection built in. Ask Claude to turn it on for your platform.

2 · A short, safe message

Under 30 seconds, with nothing private in it. Anyone in the house might hear it.

"Hi, this is the AI assistant from Sunset Wireless, calling about your recent inquiry. This call was recorded. Please call us back at 555-555-0123. If you'd rather not get calls from us, call that number and say 'stop calling'."

The thread is marked "Voicemail left".

3 · Greet them by name

Use the same Twilio number for outgoing and incoming calls. When someone calls, the platform asks your Supabase function who it is before the agent speaks, looking up the caller's number:

  • ElevenLabs: a webhook that returns conversation initiation data (dynamic variables)
  • Retell: the inbound call webhook
  • Vapi: the assistant-request message to your server URL
  • Grok: your phone server looks it up itself
"Thanks for calling back, Maria! We left you a message about trading in your phone."

The thread is marked "Called back", you get a notification, and any pending retry is cancelled.

4 · Avoid "Spam Likely"

Register your number so phones are less likely to label it as spam. In Twilio, look at Trust Hub, which covers caller ID verification (STIR/SHAKEN) and spam-label registration (Voice Integrity). You can also add the number at freecallerregistry.com. Fewer, wanted calls also help your number's reputation.

Copy this into Claude CodeTurn on voicemail detection for my agent's outgoing calls and leave this message after the beep: [paste]. Mark the thread Voicemail left. Use the same Twilio number for incoming calls, and when someone calls, look up their number in Supabase first so the agent greets them by name and knows why we called. Mark the thread Called back, notify me, and cancel any pending retry.
Before you share the number

Test it like a caller

  1. Call in English. Does it say it's an AI in the first sentence?
  2. Call in Spanish. Does it answer in Spanish with a natural voice?
  3. Ask something that's in your folder, like your hours.
  4. Ask something that isn't. It should offer to take a message, not guess.
  5. Leave a message, then check your Inbox and your Gmail.
  6. Book an appointment, then check your calendar.
  7. Say "person" or press 0. Does your cell ring?
  8. Call after hours. Does it take a message and say when you'll call back?
  9. Change your store hours in the folder, wait an hour and ask again.
  10. Send an inquiry with the callback box ticked. Does the agent call within about a minute and know what you asked?
  11. Don't answer that call. Is a short, safe voicemail left, and is the thread marked Voicemail left?
  12. Call back from that phone. Does it greet you by name and know why it called?
  13. Say "stop calling". Is the do-not-call flag set right away?
Then ask ClaudeRead the transcripts of my last five test calls and tell me where the agent was wrong, slow or unclear. Suggest changes to phone-agent-rules.md.

When it works, say the magic words: commit and push

What it costs

Pay by the minute

Twilio US local number≈ $1.15 / mo
Twilio incoming calls≈ $0.0085 / min
ElevenLabs voice (plus AI model)≈ $0.08 / min +
xAI's Grok Voice, all in≈ $0.08 / min
Retell, depending on voice and model≈ $0.07–$0.31 / min
Vapi: hosting fee plus each partVaries
Supabase knowledge and messagesFree to start

Prices as of November 2026. A 3-minute call usually costs well under a dollar. Prices change, so check each site.

Stay safe and legal

Six phone rules

  • Say it's an AI. In the first sentence of every call.
  • Tell callers if you record. Some US states, like California, require everyone on the call to agree to a recording.
  • Consent before any outgoing call. Written consent for promos, 8 am to 9 pm only, and "stop calling" honored right away. See the consent rules.
  • Always offer a person. "Person" or 0 should always work during open hours.
  • No cards or passwords. The agent never takes card numbers, passwords or ID numbers by phone.
  • Keys in Supabase secrets. Never in your code, your app or a chat.

This is general information, not legal advice.

Words you'll see

Quick glossary

Voice agent
An AI that listens, thinks and talks on a phone call.
Twilio
The phone company for apps. You rent a number there and it passes calls to your agent.
SIP
The standard way phone systems hand calls to each other over the internet.
Speech-to-speech
A model that hears and answers in voice directly, which makes replies faster and more natural.
Knowledge base
The documents the agent is allowed to answer from.
RAG
Short for retrieval-augmented generation: the agent looks up the right part of your documents before it answers.
Service account
A robot Google user. It can open only the files and folders you share with its email address.
App folder
A Dropbox access type that limits an app to its own folder, Dropbox/Apps/<app name>.
Webhook
A web address the agent calls to do something, like saving a message in Supabase.
Transfer
Passing the call to a person. A warm transfer tells them about the caller first.
TCPA
The US Telephone Consumer Protection Act. Its rules cover automated, recorded and AI-voice calls, especially to cell phones.
Prior express written consent
A clear signed or checked agreement to receive AI or recorded marketing calls. It can't be a condition of buying.
AMD (answering-machine detection)
Tells whether a person or a voicemail picked up, and can wait for the beep.
Caller ID
The name and number people see when you call. A good reputation keeps it from showing as spam.
STIR/SHAKEN
The system phone companies use to check that a call really comes from the number it shows.
Un mapa para principiantes · Recepcionista con IA · inglés y español

Crea un agente telefónico con IA que conteste tus llamadas

Dale a tu negocio un número que siempre contesta. El agente saluda, responde preguntas con tu propia información, toma mensajes, agenda citas y te pasa la llamada cuando hace falta una persona, en inglés y en español, de día y de noche. Esta página compara tres formas de crearlo y te guía paso a paso en cada una. Un ejemplo inventado nos acompaña de principio a fin: Sunset Wireless, una pequeña tienda de celulares que recibe llamadas sobre teléfonos, planes, reparaciones, cambios de equipo y accesorios.

Agente telefónico: tu recepcionista Quien llama y el número Supabase: tu información y mensajes Claude: tu constructor
El panorama

Qué pasa cuando alguien llama

Tres piezas contestan la llamada, y otras dos le dan al agente qué decir y qué hacer.

Alguien marcaDesde cualquier teléfono, a cualquier hora.
Tu número de teléfonoNormalmente lo rentas en Twilio por uno o dos dólares al mes.
El agente de vozElevenLabs, Grok o Retell/Vapi. Escucha, piensa y habla.
Lo que sabe
Tu base de conocimientoUna carpeta de Google Drive o Dropbox, copiada a Supabase. Horario, precios de planes, reglas de intercambio y tiempos de reparación.
Lo que puede hacer
Guardar un mensajeSe convierte en una conversación en tu bandeja.
Agendar una citaLa agrega a tu Google Calendar.
Pasarte la llamadaSuena en tu celular cuando hace falta una persona.
Elige una para empezar

Elige tu plataforma

Las tres pueden contestar llamadas, usar tu información, tomar mensajes y pasarte la llamada. Cambian en voz, configuración y precio. Puedes empezar con una y cambiar después, porque tu información y tus mensajes viven en Supabase, no dentro de la plataforma.

ElevenLabs AgentsGrok Voice de xAIRetell / Vapi
Calidad de vozLa más conocida por voces naturales; miles para elegir y clonación de vozMuy natural; voces incluidas y voces clonadas a tu medidaBuena; también puedes usar voces de ElevenLabs
Fácil para principiantesSí. Panel de control y una API que Claude puede usarMás difícil. Es una API para desarrolladores; Claude te arma un pequeño servidor telefónicoSí. Paneles hechos para centros de llamadas
Base de conocimientoIncluida: sube archivos, agrega páginas web o textoCon herramientas: puede buscar en tus documentos o en tu propia consultaIncluida. Retell también puede sincronizar archivos de Google Drive
Número de teléfonoConecta tu número de Twilio en el panelNúmero de Twilio más el servidor que Claude configuraCompra uno ahí o importa el de Twilio. Vapi da un número gratis de EE. UU. para llamadas entrantes
CitasCon una herramienta que usa tu calendarioCon una herramienta que usa tu calendarioIncluido: Retell con Cal.com, Vapi con Google Calendar
Costo por minuto*Unos $0.08 por la voz, más el modelo de IAUnos $0.08, voz e IA incluidasRetell unos $0.07–$0.31; Vapi cobra un cargo base más cada parte
Ideal paraTu primer agente, la mejor voz, inglés y españolEl costo más bajo por minuto si no te importa configurar másUn centro de llamadas de verdad: muchas líneas, transferencias, reportes

*Precios de noviembre de 2026, sin el cargo de la compañía telefónica. Los precios cambian, así que revisa cada sitio antes de empezar.

Recomendado para empezar

ElevenLabs Agents

Las mejores voces y todo en un solo lugar: teléfono, información, herramientas y transferencia. Manny ya usa ElevenLabs en su app de iPhone Paany, así que la cuenta ya está lista.

Ir a los pasos de ElevenLabs ↓
El costo total más bajo

Grok Voice 3.0 de xAI

Salió el 14 de octubre de 2026. Voz e IA en un solo precio. Es una API para desarrolladores, así que Claude te arma el pequeño puente telefónico, a partir del ejemplo de Twilio de la propia xAI.

Ir a los pasos de Grok ↓
Herramientas de centro de llamadas

Retell / Vapi

Paneles, transferencias con aviso, citas integradas, reportes de llamadas y muchas líneas a la vez. Las dos pueden usar voces de ElevenLabs.

Ir a los pasos de Retell/Vapi ↓
Configuración, en orden

De la idea a un teléfono que contesta

Primero lo que toda plataforma necesita: el paso 0, tu base de conocimiento y las tareas del agente. Después sigue los pasos de la plataforma que elegiste.

Paso 0 · Antes de empezar

Prepárate

  1. Crea una cuenta en Twilio y compra un número local. En noviembre de 2026, un número local de EE. UU. cuesta unos $1.15 al mes, más cerca de un centavo por minuto por llamada entrante. (Vapi también puede darte un número gratis de EE. UU. para llamadas entrantes).
  2. Regístrate en la plataforma que elegiste: ElevenLabs, xAI, Retell o Vapi.
  3. Ten listos Supabase y Claude Code, como en la guía del sitio web. Los mensajes y la información viven en Supabase.
  4. Decide tres cosas: lo primero que dice el agente, tu horario y el celular al que debe pasar las llamadas.
Tu primer prompt, cópialo y cámbialoEscribe un guion y reglas para una recepcionista telefónica con IA para mi tienda de celulares, Sunset Wireless. La gente llama por teléfonos, planes, reparaciones, cambios de equipo y accesorios. Debe decir en la primera frase que es una asistente de IA y que la llamada puede grabarse, responder solo con mi base de conocimiento, tomar un mensaje cuando no sepa algo, agendar citas para configurar un teléfono nuevo o dejar una reparación, pasarme la llamada a mi celular +1 555-555-0100 cuando alguien pida hablar con una persona, y hablar en inglés o en español según quien llama. Guárdalo como phone-agent-rules.md y hazme preguntas sobre lo que necesites.
Te llevasNúmero de Twilio + cuenta en la plataforma + phone-agent-rules.md
Parte común A · Todas las plataformas

Una base de conocimiento desde una sola carpeta

No conectes todo tu Google Drive ni todo tu Dropbox. Crea una sola carpeta, por ejemplo "Información del agente", y pon ahí solo lo que pueden escuchar quienes llaman: horario de la tienda, precios de planes, reglas para entregar tu teléfono usado, tiempos de reparación, cómo llegar y preguntas frecuentes. Google Drive y Dropbox te dejan dar acceso a esa carpeta y a nada más.

Opción 1 · Google Drive

Comparte una carpeta con una cuenta robot

  1. En Google Cloud Console, crea un proyecto, activa la API de Google Drive y crea una cuenta de servicio. Es un usuario robot de Google con su propio correo.
  2. En Google Drive, haz clic derecho en tu carpeta, elige Compartir y agrega el correo de la cuenta de servicio como Lector.
  3. Ese es todo el truco: el robot solo puede abrir lo que compartiste con él. Tus demás archivos siguen invisibles para él.

¿No sabes dónde está un botón? Pídele a Claude que te guíe para crear la cuenta de servicio, clic por clic.

Opción 2 · Dropbox

Usa una carpeta de app

  1. En la App Console de Dropbox, crea una app y elige el acceso App folder, no Full Dropbox.
  2. Dropbox crea una carpeta en Dropbox/Apps/<nombre de tu app>. Pon ahí tus archivos de información.
  3. La app solo puede ver dentro de esa carpeta. El resto de tu Dropbox sigue privado.

Pídele a Claude que te ayude a crear la app y obtener sus claves de acceso.

Mantenlo seguro

Guarda las llaves de la carpeta en los secretos de Supabase

Copia esto en Claude CodeGuarda las claves de la carpeta de información de .env.local como secretos de Supabase. No las muestres.
Copiar · Automático

Copia la carpeta a Supabase

Copia esto en Claude CodeCrea una tabla knowledge en Supabase y una Edge Function programada que revise mi carpeta de información cada hora, lea solo esa carpeta y copie los archivos nuevos o cambiados a la tabla como texto. Después envía ese mismo texto a la base de conocimiento de mi agente telefónico.
Te llevasUna tabla de información que se actualiza sola
Parte común B · Todas las plataformas

Las seis tareas del agente

Empieza con las tres primeras. Agrega citas, transferencias y el segundo idioma cuando esas ya funcionen.

Saluda y dice que es una IA

La primera frase dice quién eres y que es una asistente virtual. En algunos lugares ya es obligatorio, y la gente confía más.

Agrégalo a las reglas del agenteEmpieza cada llamada con: "Hola, llamaste a Sunset Wireless. Soy la asistente de IA de la tienda y esta llamada puede grabarse. ¿En qué te puedo ayudar?"

Responde con tu información

Responde solo con la base de conocimiento. Si la respuesta no está ahí, nunca adivina. Ofrece tomar un mensaje.

Agrégalo a las reglas del agenteResponde solo con mi base de conocimiento. Si no encuentras la respuesta, di "No estoy segura, déjame tomar un mensaje" y nunca inventes nada.

Toma un mensaje

Guarda el nombre, el número para devolver la llamada, el motivo y la transcripción como una conversación nueva en tu bandeja, y te manda un correo. Cómo funciona la bandeja.

Agrégalo a las reglas del agenteCuando alguien deje un mensaje, llama a una función de Supabase que guarde su nombre, número, motivo y la transcripción como una conversación nueva en la bandeja marcada como Teléfono, y me mande un correo desde mi Gmail.

Agenda citas

Revisa tus horarios libres en Google Calendar o Cal.com, ofrece dos o tres, y repite la fecha, la hora y la zona horaria antes de agendar.

Agrégalo a las reglas del agenteDeja que el agente revise mi Google Calendar para buscar espacios libres de 30 minutos en horario de atención para configurar un teléfono nuevo o dejar una reparación, ofrezca dos o tres, repita la fecha, la hora y la zona horaria, y luego agende y le mande al cliente una confirmación por mensaje de texto.

Pasa la llamada a una persona

Si la persona dice "persona" o marca 0, te pasa la llamada a tu celular. Fuera de horario toma un mensaje y dice cuándo le devolverás la llamada.

Agrégalo a las reglas del agenteSi alguien pide hablar con una persona o marca 0 en horario de atención, pásame la llamada a mi celular. Fuera de horario, toma un mensaje y di que devolveré la llamada el siguiente día hábil.

Habla inglés o español

Responde en el idioma de quien llama. Si no está segura, pregunta: "English or español?"

Agrégalo a las reglas del agenteResponde en el idioma de quien llama, inglés o español. Si no estás segura, pregunta "English or español?". Usa una voz natural para cada idioma.
Elige tu camino

Créalo en tu plataforma

Sigue solo el camino de la plataforma que elegiste. Cada uno termina con una llamada de prueba.

Camino 1 · RecomendadoElevenLabs Agents

Crear · Panel

Crea el agente y elige sus voces

Copia esto en Claude CodeAyúdame a configurar mi agente de ElevenLabs: usa phone-agent-rules.md como instrucciones, escribe el primer mensaje y sugiere una voz cálida en inglés y otra en español.
Información

Dale tu información

Herramientas

Conecta sus herramientas

Copia esto en Claude CodeCrea Edge Functions de Supabase para take_message y book_appointment, agrégalas a mi agente de ElevenLabs como herramientas y activa transfer_to_number a mi celular en horario de atención.
Teléfono · Panel

Conecta tu número de Twilio

Te llevasUn número real que contesta con tu agente

Camino 2 · Menor costoGrok Voice de xAI

Clave

Consigue una clave de API de xAI

Construir · Lo hace Claude

Deja que Claude construya el puente telefónico

Copia esto en Claude CodeUsa el ejemplo telefónico de Twilio del xai-cookbook para crear mi agente con Grok Voice. Carga phone-agent-rules.md como instrucciones, agrega herramientas que lean mi tabla knowledge de Supabase, tomen un mensaje, agenden una cita y pasen la llamada a mi celular, pruébalo primero en mi computadora y luego dime el lugar más sencillo para alojarlo.
Teléfono

Apunta tu número de Twilio hacia él

Te llevasUn número con Grok + un pequeño servidor tuyo

Camino 3 · Centro de llamadasRetell / Vapi

Crear · Panel

Crea el agente

Información

Agrega tu información

Herramientas incluidas

Activa transferencias y citas

Copia esto en Claude CodeAyúdame a configurar mi agente de Retell: activa la transferencia con aviso a mi celular en horario de atención, conecta Cal.com para citas de 30 minutos para configurar teléfonos nuevos y dejar reparaciones y agrega mi función take_message de Supabase como herramienta personalizada.
Teléfono · Panel

Consigue o importa un número

Te llevasUna línea de centro de llamadas con reportes y transferencias
Antes de que el agente llame a alguien

Contestar llamadas es sencillo. Hacer llamadas está regulado. En las próximas tres secciones el agente llama a la gente, así que lee esto primero.

Saliente · Tu sitio web o app

Devolver la llamada al instante cuando alguien hace una consulta

Alguien llena tu formulario de contacto para preguntar por entregar su teléfono usado. En más o menos un minuto, tu agente le llama, ya sabiendo lo que preguntó.

Permiso · En el formulario

Agrega una casilla para devolver la llamada

Sí, llámenme a este número por mi consulta. La llamada puede ser de una asistente de IA y puede grabarse.
Copia esto en Claude CodeAgrega una casilla sin marcar a mi formulario de contacto en el sitio web y en la app de iPhone: "Sí, llámenme a este número por mi consulta. La llamada puede ser de una asistente de IA y puede grabarse." Guarda callback_consent (sí/no), la hora y el texto exacto con cada consulta. Pide el teléfono solo cuando la casilla esté marcada.
Disparador · Automático

Una consulta nueva inicia la llamada

  • ElevenLabs: su API de llamada saliente con Twilio
  • Retell: Create Phone Call
  • Vapi: su API de llamadas salientes
  • Grok: Twilio inicia la llamada y la conecta a tu servidor telefónico
Copia esto en Claude CodeCuando se guarde una consulta nueva con callback_consent = sí, ejecuta una Edge Function de Supabase que inicie una llamada saliente de mi agente a ese número, pasándole su nombre y su pregunta como contexto. Llama solo entre las 8 am y las 9 pm en su hora local; si no, prográmala para las 9 am y mándale un correo diciendo que le llamaremos a las 9.
Llamada · Un minuto después

El agente llama, ya con el contexto

"Hola, María, soy la asistente de IA de Sunset Wireless y esta llamada puede grabarse. Acabas de preguntar por entregar tu teléfono usado. ¿Es buen momento?"
Registro · Bandeja

Todo queda en la conversación

Te llevasConsultas atendidas por teléfono en un minuto
Saliente · Tus clientes

Llamadas de agradecimiento y promociones a tus clientes

Una llamada amable después de una compra, con la oferta del mes. Como promociona algo, es una llamada de mercadeo, así que va solo a clientes que dieron su permiso por escrito.

Datos · Supabase

Ten una tabla de clientes

Copia esto en Claude CodeCrea una tabla customers en Supabase con name, phone en formato E.164, time_zone, last_visit, marketing_consent (sí/no), consent_date, consent_wording, consent_source (tableta de la tienda, sitio web, app) y do_not_call. Agrega la casilla de permiso de mercadeo, sin marcar, al pago, a la tableta de la tienda, a mi sitio web y a mi app.
Filtrar

Llama solo a quien dijo que sí

Llamar · Con calma

Usa las llamadas por lote de tu plataforma

"Hola, James, soy la asistente de IA de Sunset Wireless y esta llamada puede grabarse. ¡Gracias por llevarte tu teléfono nuevo con nosotros la semana pasada! Este mes tenemos descuento en accesorios. ¿Quieres que te agende una visita? Y si prefieres no recibir estas llamadas, solo di 'ya no me llamen' cuando quieras."
Copia esto en Claude CodeCada martes a las 10 am, envía un lote de llamadas de agradecimiento con mi agente a clientes con marketing_consent = sí, que no estén en do_not_call y que compraron algo en los últimos 14 días. Usa su nombre y la promoción de accesorios. Si alguien dice que ya no le llamen, marca do_not_call de inmediato.
Registro · Un reintento

Registra cada resultado, reintenta una vez y para

Te llevasLlamadas de agradecimiento solo a quien las pidió
Cuando nadie contesta

Buzón de voz y llamadas de regreso

El agente espera el tono, deja un mensaje corto y seguro, y reconoce a la persona cuando devuelve la llamada.

1 · Espera el tono

La detección de contestadora distingue a una persona de un saludo de buzón. La detección de contestadora de Twilio puede esperar a que termine el saludo, y Retell y Vapi traen detección de buzón incluida. Pídele a Claude que la active en tu plataforma.

2 · Un mensaje corto y seguro

Menos de 30 segundos y sin nada privado. Cualquiera en la casa podría oírlo.

"Hola, soy la asistente de IA de Sunset Wireless y llamo por tu consulta reciente. Esta llamada fue grabada. Por favor llámanos al 555-555-0123. Si prefieres no recibir llamadas nuestras, llama a ese número y di 'ya no me llamen'."

La conversación se marca como "Mensaje de voz dejado".

3 · Salúdalos por su nombre

Usa el mismo número de Twilio para llamadas salientes y entrantes. Cuando alguien llama, la plataforma le pregunta a tu función de Supabase quién es antes de que el agente hable, buscando el número de quien llama:

  • ElevenLabs: un webhook que devuelve los datos de inicio de la conversación (variables dinámicas)
  • Retell: el webhook de llamadas entrantes
  • Vapi: el mensaje assistant-request a tu server URL
  • Grok: tu servidor telefónico lo busca por su cuenta
"¡Gracias por devolver la llamada, María! Te dejamos un mensaje sobre entregar tu teléfono usado."

La conversación se marca como "Devolvió la llamada", te llega un aviso y se cancela cualquier reintento pendiente.

4 · Evita "Posible spam"

Registra tu número para que los teléfonos tengan menos probabilidad de marcarlo como spam. En Twilio, revisa Trust Hub, que incluye la verificación del identificador de llamadas (STIR/SHAKEN) y el registro contra etiquetas de spam (Voice Integrity). También puedes agregar el número en freecallerregistry.com. Hacer menos llamadas, y solo las deseadas, también ayuda a la reputación de tu número.

Copia esto en Claude CodeActiva la detección de buzón en las llamadas salientes de mi agente y deja este mensaje después del tono: [pegar]. Marca la conversación como Mensaje de voz dejado. Usa el mismo número de Twilio para llamadas entrantes y, cuando alguien llame, busca primero su número en Supabase para que el agente lo salude por su nombre y sepa por qué le llamamos. Marca la conversación como Devolvió la llamada, avísame y cancela cualquier reintento pendiente.
Antes de compartir el número

Pruébalo como si fueras cliente

  1. Llama en inglés. ¿Dice que es una IA en la primera frase?
  2. Llama en español. ¿Responde en español con una voz natural?
  3. Pregunta algo que está en tu carpeta, como tu horario.
  4. Pregunta algo que no está. Debe ofrecer tomar un mensaje, no adivinar.
  5. Deja un mensaje y revisa tu bandeja y tu Gmail.
  6. Agenda una cita y revisa tu calendario.
  7. Di "persona" o marca 0. ¿Suena tu celular?
  8. Llama fuera de horario. ¿Toma un mensaje y dice cuándo devolverás la llamada?
  9. Cambia tu horario en la carpeta, espera una hora y vuelve a preguntar.
  10. Envía una consulta con la casilla marcada. ¿El agente llama en más o menos un minuto y sabe lo que preguntaste?
  11. No contestes esa llamada. ¿Deja un mensaje de voz corto y seguro, y la conversación queda como Mensaje de voz dejado?
  12. Devuelve la llamada desde ese teléfono. ¿Te saluda por tu nombre y sabe por qué te llamó?
  13. Di "ya no me llamen". ¿Se marca no llamar de inmediato?
Después pídele a ClaudeLee las transcripciones de mis últimas cinco llamadas de prueba y dime dónde el agente se equivocó, fue lento o no fue claro. Sugiere cambios a phone-agent-rules.md.

Cuando funcione, di las palabras mágicas: haz commit y push

Lo que cuesta

Pagas por minuto

Número local de Twilio en EE. UU.≈ $1.15 / mes
Llamadas entrantes en Twilio≈ $0.0085 / min
Voz de ElevenLabs (más el modelo de IA)≈ $0.08 / min +
Grok Voice de xAI, todo incluido≈ $0.08 / min
Retell, según la voz y el modelo≈ $0.07–$0.31 / min
Vapi: cargo base más cada parteVaría
Información y mensajes en SupabaseGratis para empezar

Precios de noviembre de 2026. Una llamada de 3 minutos normalmente cuesta mucho menos de un dólar. Los precios cambian, así que revisa cada sitio.

Seguro y dentro de la ley

Seis reglas para el teléfono

  • Di que es una IA. En la primera frase de cada llamada.
  • Avisa si grabas. Algunos estados de EE. UU., como California, exigen que todos en la llamada acepten la grabación.
  • Permiso antes de cualquier llamada saliente. Permiso por escrito para promociones, solo de 8 am a 9 pm, y "ya no me llamen" respetado de inmediato. Ve las reglas de permiso.
  • Siempre ofrece una persona. "Persona" o el 0 siempre deben funcionar en horario de atención.
  • Nada de tarjetas ni contraseñas. El agente nunca pide números de tarjeta, contraseñas ni números de identificación por teléfono.
  • Las claves en los secretos de Supabase. Nunca en tu código, tu app ni un chat.

Esto es información general, no asesoría legal.

Palabras que vas a ver

Glosario rápido

Agente de voz
Una IA que escucha, piensa y habla en una llamada.
Twilio
La compañía telefónica para apps. Ahí rentas un número y pasa las llamadas a tu agente.
SIP
La forma estándar en que los sistemas telefónicos se pasan llamadas por internet.
Voz a voz
Un modelo que escucha y responde con voz directamente, lo que hace las respuestas más rápidas y naturales.
Base de conocimiento
Los documentos con los que el agente puede responder.
RAG
Siglas en inglés de generación aumentada por recuperación: el agente busca la parte correcta de tus documentos antes de responder.
Cuenta de servicio
Un usuario robot de Google. Solo puede abrir los archivos y carpetas que compartes con su correo.
Carpeta de app
Un tipo de acceso de Dropbox que limita una app a su propia carpeta, Dropbox/Apps/<nombre de la app>.
Webhook
Una dirección web a la que el agente llama para hacer algo, como guardar un mensaje en Supabase.
Transferencia
Pasar la llamada a una persona. Una transferencia con aviso le cuenta de quién se trata antes.
TCPA
La ley de protección al consumidor telefónico de EE. UU. Sus reglas cubren llamadas automáticas, grabadas y con voz de IA, sobre todo a celulares.
Consentimiento previo expreso por escrito
Un acuerdo claro, firmado o marcado, para recibir llamadas de mercadeo con IA o grabadas. No puede ser condición para comprar.
AMD (detección de contestadora)
Distingue si contestó una persona o un buzón de voz, y puede esperar el tono.
Identificador de llamadas
El nombre y número que la gente ve cuando llamas. Una buena reputación evita que aparezca como spam.
STIR/SHAKEN
El sistema que usan las compañías telefónicas para comprobar que una llamada de verdad viene del número que muestra.