¿Necesitas ayuda? Escríbenos por WhatsAppEscríbenos por WhatsApp+33 7 67 93 66 56Abrir chat
Agentes de programación con IA · Whatsable

Automatización de WhatsApp con Vibe Code

Pega un prompt en tu agente de programación con IA. Agrega WhatsApp a tu app con la API v1 de Whatsable, la vía por la que tu código envía y recibe mensajes de WhatsApp, y primero te pide guardar tu clave como secreto.

Funciona con tu agente

OpenClawCursorClaude CodeGitHub CopilotGemini CLIAmpRoo CodeJunieOpenHands
Inicio rápido

Copia un prompt para tu plataforma

Elige la pestaña de tu plataforma, copia el prompt y pégalo en tu agente de IA. El prompt construye sobre la API v1 de Whatsable y te pide guardar tu clave de API como secreto.

Predeterminado

Copia el prompt completo

Pega esto en el chat de tu agente de IA para empezar la configuración.

Prompt del agente
Add WhatsApp to this project with the Whatsable API v1.
First, ask me to save my Whatsable API key as the secret WHATSABLE_API_KEY: in my platform's secrets store, or in a local .env file that git ignores. Never hard-code the key, commit it to git, or send it to frontend code.
API reference: https://docs.whatsable.app/api-reference/v1
OpenAPI file: https://api.whatsable.app/v1/openapi.json
Base URL: https://api.whatsable.app/v1
Auth header: Authorization: Bearer <WHATSABLE_API_KEY>
Build rules:
- Call the API only from server-side code (an edge or backend function), never from the browser.
- Test the connection with GET /v1/me.
- Send messages with POST /v1/messages. Phone numbers are E.164 with a leading +.
- To message someone first, or more than 24 hours after their last message, send an approved template: {"to": "+15551234567", "type": "template", "template": {"name": "<template name>", "language": "<language code>", "variables": {}}}.
- Inside the 24-hour window you can send text: {"to": "+15551234567", "type": "text", "text": {"body": "Hi!"}}.
- A 201 means Whatsable recorded the message. Read "status" in the body: "sent" or "failed". Don't resend a failed message whose error is not retryable.
- Send an Idempotency-Key header with each send. Reuse it only to retry a send that got no answer; after a "failed" send with "retryable": true, retry later with a new key.
- To receive messages, add a backend function and point a Whatsable webhook at its URL (Settings → Webhooks → Add endpoint, turn on Incoming messages).
Confirm the secret is set, then build the send flow for my use case.
Prefer to work through your AI assistant instead of code? Connect the Whatsable MCP server: https://docs.whatsable.app/mcp/agent-skill
Requiere la consola de Whatsable

La conexión inicial de WhatsApp, la facturación y la aprobación de plantillas por Meta no se pueden hacer desde Lovable. Complétalas primero en la consola.

Referencia de Whatsable API v1

Cómo funciona

Trabaja con un agente de IA o escribe código

MCP es el estándar abierto que apps de IA como Claude, ChatGPT y Cursor usan para llamar herramientas. Pides con palabras sencillas y el asistente hace el trabajo en Whatsable. Tu código puede usar la API v1 de Whatsable para las mismas tareas.

Una Agent Skill

Una agent skill de Whatsable le indica a tu agente de IA cómo conectar el servidor MCP de Whatsable. No contiene scripts: el servidor lista sus propias herramientas. Para tu propio código, usa la API v1 de Whatsable.

El servidor MCP de Whatsable

Agrega Whatsable a tu app de IA. La app abre una página de Whatsable donde inicias sesión y eliges qué puede hacer la app y qué números puede usar. Puedes revocar el acceso en cualquier momento.

Planes Pro y Agency

La API y el servidor MCP de Whatsable están en Pro y Agency, no en Bulk Message.

Capacidades

Lo que tu agente puede hacer

Tu agente puede trabajar con la cuenta y sus números, mensajes, conversaciones y la IA de cada una, plantillas, contactos y etiquetas, mensajes programados, difusiones y agentes de IA a través del servidor MCP de Whatsable.

Cuenta y números

Consulta a qué cuenta pertenece esta conexión, qué puede hacer, los números de WhatsApp y el equipo. Solo lectura.

Mensajes y conversaciones

Lee conversaciones, envía mensajes de texto dentro de la ventana de 24 horas y envía plantillas para primeros mensajes o después de 24 horas.

IA en conversaciones y agentes

Trabaja con la IA de cada conversación y gestiona agentes de IA.

Plantillas, programados, difusiones

Gestiona plantillas, mensajes programados y difusiones.

Contactos y etiquetas

Consulta y gestiona contactos y etiquetas para organizar tus conversaciones de WhatsApp.

Legible por máquinas

Para agentes de IA que leen esta página

Una agent skill de Whatsable le indica a tu agente de IA cómo conectar el servidor MCP de Whatsable. No contiene scripts: el servidor lista sus propias herramientas. Para tu propio código, usa la API v1 de Whatsable.

Para agentes de IA
- Every Whatsable API route starts with https://api.whatsable.app/v1.
- Send your API key in the Authorization header: Authorization: Bearer <your Whatsable API key>.
- In Whatsable, open Settings → API keys and click Create API key. Copy the key.
- A key from the legacy Whatsable API doesn't work with API v1.
- The Whatsable API and MCP server are on Pro and Agency, not Bulk Message.
- Server URL: https://api.whatsable.app/mcp. Sign in with OAuth from your AI app, or send an API key as a Bearer header.
- The account and its numbers, messages, conversations and the AI in each one, templates, contacts and labels, scheduled messages, broadcasts and AI agents.

Errores comunes

Errores a evitar
- Free-text and media only work inside the 24-hour window; otherwise send an approved template.
- A key from the legacy Whatsable API doesn't work with API v1.
- Keep the key in a secrets store or a git-ignored .env file. Never hard-code it, commit it, or send it to frontend code.
- A 201 means Whatsable recorded the message. Read "status" in the body: "sent" or "failed".
- Send an Idempotency-Key header with each send. Reuse it only to retry a send that got no answer; after a "failed" send with "retryable": true, retry later with a new key.
- First-time WhatsApp connection (Meta embedded signup) is browser-only in the Whatsable console.

¿Quieres automatizar WhatsApp con tu agente de IA?

Conecta el servidor MCP de Whatsable o construye sobre la API v1 de Whatsable y lanza automatización de WhatsApp desde tu editor.

Pro incluye una prueba gratis de 7 días · configuración en 6 minutos · cancela cuando quieras

Empieza tu prueba gratis
Chat