- Home
- Skills
- Workflow Automation
- WhatsApp AI Sales, Pix & n8n Production Blueprint (PT-BR)
More screenshots
Works with the AI Agents you already use
WhatsApp AI Sales, Pix & n8n Production Blueprint (PT-BR)
by Almir Maria
Building a production-ready WhatsApp sales agent in Brazil requires more than just a LLM connection.
$12
WhatsApp AI Sales, Pix & n8n Production Blueprint (PT-BR)
Example session with this skill installed
Desenhe uma arquitetura no n8n para vender um curso de R$ 197 via WhatsApp, usando a Evolution API e recebimento via Pix. Preciso de proteção contra rajada de mensagens e log LGPD.
- Read your context and instructions
- Compiled the whatsapp ai sales
Finalizei a arquitetura técnica para seu fluxo de vendas via WhatsApp e Pix. Abaixo, detalho a topologia de webhooks, o buffer de mensagens e o contrato JSON para o agente.
Arquitetura de Vendas WhatsApp Pix (Produção)
graph TD
A[WhatsApp/Evolution API] --> B[n8n Webhook: Ingestão]
B --> C{Redis Buffer: 8s}
C -->|Acumular| D[Redis msg_buffer:phone]
C -->|Janela de Silêncio| E[Worker: Concatenar Mensagens]
E --> F[Agente LLM: Triagem e Oferta]
F --> G{Intenção: Compra?}
G -->|Sim| H[Tool: Gerar Pix Dinâmico]
G -->|Não| I[Fluxo Suporte/Dúvida]
H --> J[WhatsApp: Enviar Copia-e-Cola]
K[Webhook Gateway Pix] --> L[n8n: Confirmação Pagamento]
L --> M[CRM Update + Liberação Curso]
Especificação dos Componentes
| Componente | Regra de Implementação |
|---|---|
| Debounce | Redis SET last_seen:{phone} com TTL de 8s. Apenas o último trigger aciona o LLM. |
| Idempotência | idempotency_key gerada como hash(phone + order_id + step). |
| LGPD | Nó de função n8n para regex de mascaramento: \d{3}\.\d{3}\.\*\*\*-\*\*. |
Contrato JSON do Agente
{
"estado_atual": "FECHAMENTO_PIX",
"mensagens_whatsapp": [
"Perfeito! Gerando seu acesso para o curso.",
"Aqui está o código Pix Copia-e-Cola (vence em 30 min):"
],
"tool_call": {
"executar": true,
"ferramenta": "gerar_cobranca_pix",
"parametros": {
"valor_centavos": 19700,
"cliente_documento": "12345678901"
}
}
}
Next steps
- Configure o Redis no seu ambiente n8n para habilitar o nó de espera (Wait) dinâmico.
- Homologue o webhook de retorno do seu gateway Pix em ambiente Sandbox.
- Adicione o comando
SAIRno nó de roteamento inicial para conformidade imediata.
Connects securely to your tools. The creator never sees your data.
About this skill
Building a production-ready WhatsApp sales agent in Brazil requires more than just a LLM connection. You face high-frequency message bursts, complex Pix payment flows, and strict LGPD data privacy laws. This skill provides the complete engineering architecture to handle these production pains without losing leads or leaking sensitive data.
What it does
- Anti-Burst Buffering implements Redis-based debounce logic to handle users who send multiple short messages.
- Multimodal Triaging processes text, audio (via Whisper/Gemini), and images with structured OCR extraction.
- Pix Checkout Engine generates dynamic QR codes and Copy-and-Paste keys with configurable expiration and idempotency.
- State Machine Architecture separates conversations into Triaging, Offer, Closing, and Human Handoff states.
- LGPD Governance enforces PII masking, opt-out commands, and strict data retention policies.
How it works
- Initial Diagnosis where you define your WhatsApp provider, orchestrator (n8n/Make), and CRM stack.
- Architecture Generation producing end-to-end Mermaid flow diagrams and JSON schemas.
- Implementation Specs including specific node configurations for n8n/Make and MCP tool definitions.
- Validation against the LGPD checklist to ensure legal and security compliance before rollout.
Frameworks & tools
Built for n8n (self-hosted or cloud) and Make. Integrates with WhatsApp Cloud API, Evolution API, Z-API, Redis for buffering, and standard Brazilian Pix gateways.
Why this beats prompting it yourself
Standard prompts fail when users send five messages in a row or when a Pix payment fails to sync with the CRM. This skill enforces engineering patterns like Dead Letter Queues and idempotency keys that basic LLM instructions ignore.
Use cases
- Automating high-volume sales for digital products with instant Pix delivery.
- Building lead qualification bots that sync directly with HubSpot or Pipedrive.
- Creating customer support agents that handle audio messages and proof-of-payment OCR.
Known limitations
Requires an external Redis instance for high-scale buffering. Financial confirmation relies entirely on external Pix webhooks rather than LLM vision.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.