Precisa de ajuda? Fale com a gente no WhatsAppChame no WhatsApp+33 7 67 93 66 56Abrir chat
Agentes de programação com IA · Whatsable

Automação de WhatsApp com Vibe Code

Cole um prompt no seu agente de programação com IA. Ele adiciona o WhatsApp ao seu app com a API v1 da Whatsable, a forma como seu código envia e recebe mensagens de WhatsApp, e antes pede que você salve sua chave como um secret.

Funciona com seu agente

OpenClawCursorClaude CodeGitHub CopilotGemini CLIAmpRoo CodeJunieOpenHands
Início rápido

Copie um prompt para sua plataforma

Escolha a aba da sua plataforma, copie o prompt e cole no seu agente de IA. O prompt usa a API v1 da Whatsable e pede que você salve sua chave de API como um secret.

Padrão

Copiar prompt completo

Cole isto no chat do seu agente de IA para iniciar a configuração.

Prompt do 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
Requer o console da Whatsable

A conexão inicial do WhatsApp, a cobrança e a aprovação de modelos pela Meta não podem ser feitas pelo Lovable. Conclua esses passos no console primeiro.

Referência da API v1 da Whatsable

Como funciona

Trabalhe com um agente de IA ou escreva código

MCP é o padrão aberto que apps de IA como Claude, ChatGPT e Cursor usam para chamar ferramentas. Você pede com suas próprias palavras, e o assistente faz o trabalho na Whatsable. Seu código pode usar a API v1 da Whatsable para as mesmas tarefas.

Uma Agent Skill

Uma agent skill da Whatsable ensina seu agente de IA a conectar o servidor MCP da Whatsable. Ela não contém scripts: o servidor lista as próprias ferramentas. Para seu próprio código, use a API v1 da Whatsable.

O servidor MCP da Whatsable

Adicione a Whatsable ao seu app de IA. O app abre uma página da Whatsable onde você entra e escolhe o que o app pode fazer e quais números pode usar. Você pode revogar quando quiser.

Planos Pro e Agency

A API e o servidor MCP da Whatsable estão no Pro e no Agency, não no Bulk Message.

Recursos

O que seu agente pode fazer

Seu agente pode trabalhar com a conta e seus números, mensagens, conversas e a IA em cada uma, modelos, contatos e etiquetas, mensagens agendadas, disparos em massa e agentes de IA pelo servidor MCP da Whatsable.

Conta e números

Veja a qual conta esta conexão pertence, o que ela pode fazer, os números de WhatsApp e a equipe. Somente leitura.

Mensagens e conversas

Leia conversas, envie mensagens de texto dentro da janela de 24 horas e envie modelos para primeiras mensagens ou depois de 24 horas.

IA em conversas e agentes

Trabalhe com a IA em cada conversa e gerencie agentes de IA.

Modelos, agendamentos, disparos em massa

Gerencie modelos, mensagens agendadas e disparos em massa.

Contatos e etiquetas

Leia e gerencie contatos e etiquetas para organizar suas conversas de WhatsApp.

Legível por máquina

Para agentes de IA que leem esta página

Uma agent skill da Whatsable ensina seu agente de IA a conectar o servidor MCP da Whatsable. Ela não contém scripts: o servidor lista as próprias ferramentas. Para seu próprio código, use a API v1 da 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.

Erros comuns

Erros 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.

Quer automatizar o WhatsApp com seu agente de IA?

Conecte o servidor MCP da Whatsable ou crie sobre a API v1 da Whatsable e lance automação de WhatsApp direto do seu editor.

O Pro inclui teste grátis de 7 dias · Configuração em 6 minutos · Cancele quando quiser

Começar teste grátis
Chat