Recreate these flows node by node. The ZapWhat node labels are in Spanish for now; every operation maps to the API reference on this site.
1. Automatic replies with AI
Every incoming message goes through a language model and the answer is sent back to the same chat, quoting the original message.
ZapWhat Trigger → AI Agent / Basic LLM Chain → ZapWhat · Mensaje · Enviar texto
- Use the ZapWhat Trigger with the
incoming event and ignore messages where fromMe is true, otherwise the workflow answers itself.
- Add an AI node (OpenAI, Anthropic or the AI Agent) and paste the prompt below as the system message.
- Reply with ZapWhat · Mensaje · Enviar texto:
to = {{ $json.from }} and replyTo = {{ $json.messageId }}.
You are a WhatsApp support agent.
Answer in the same language the customer used, in 60 words or fewer.
Never invent prices, stock or delivery dates: when you do not know, reply
"Te paso con un asesor" and stop.
Do not use markdown, emojis or links unless the customer asks for them.
The message text leaves your server and goes to your AI provider: review your privacy policy and add a human fallback when the model is unsure. Keep answers short — WhatsApp is a chat, not email.
2. Route messages without AI
Use the WhatsApp message category or simple keywords to send each message down a different branch of the workflow.
ZapWhat Trigger → Switch → Enviar texto / Enviar archivo / Contacto · Sincronizar
- Switch on
{{ $json.category }} to separate text, image, audio, document and group events.
- Inside the text branch use the expression below to tag price, schedule or support questions.
- Save leads with ZapWhat · Contacto · Sincronizar using
phone = {{ $json.from }}.
{{ $json.text.toLowerCase().includes('precio') ? 'pricing'
: ($json.text.toLowerCase().includes('horario') ? 'hours' : 'other') }}
Keywords are free, predictable and instant: use them before paying for a model call.
3. Notifications from your own system
Start the flow from your ERP, your CRM or a schedule and deliver the message to a number or a group.
Webhook / Schedule Trigger → Número · Verificar número → ZapWhat · Mensaje
- Check the recipient first with Número · Verificar número and skip numbers that are not on WhatsApp.
- Send text, a document (an invoice PDF, for example) or a location with the Mensaje resource.
- For groups use the group JID as destination, for example
[email protected].
# Your own system calls the n8n webhook
POST https://your-n8n.example.com/webhook/zapwhat-notify
{ "to": "5215512345678", "text": "Tu pedido está listo" }
The ZapWhat Trigger listens on one fixed path, so keep a single instance per workflow and route several numbers with a Switch.
Download the templates
Import the JSON files in n8n (Workflows → Import from file), type your instance ID into the ZapWhat node and select your ZapWhat API credential.
Templates are plain n8n workflow exports and never include credentials or API tokens.