npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-wapi

v1.0.0

Published

n8n community nodes for W-api WhatsApp API - Send messages, manage instances and webhooks

Downloads

270

Readme

n8n-nodes-wapi

Este é um pacote de nodes customizados para n8n que permite integração completa com a W-api WhatsApp API.

🚀 Instalação

Opção 1: Instalação via npm (Recomendado para produção)

  1. Publique o pacote no npm:
cd n8n-nodes-wapi
npm publish
  1. No n8n, instale o pacote:
npm install n8n-nodes-wapi

Opção 2: Instalação Local (Para desenvolvimento/testes)

  1. No diretório do n8n, instale localmente:
cd ~/.n8n/custom
npm install /caminho/completo/para/n8n-nodes-wapi
  1. Ou adicione ao package.json do n8n:
{
  "dependencies": {
    "n8n-nodes-wapi": "file:../caminho/para/n8n-nodes-wapi"
  }
}

Opção 3: Variável de Ambiente (Mais simples para testes)

  1. Defina a variável de ambiente:
export N8N_CUSTOM_EXTENSIONS="/caminho/completo/para/n8n-nodes-wapi"
  1. Reinicie o n8n

📋 Recursos Disponíveis

🔌 Instância

  • Criar: Criar nova instância WhatsApp
  • Conectar: Obter QR Code para conexão
  • Status: Verificar status da conexão
  • Listar: Listar todas as instâncias
  • Logout: Desconectar instância
  • Deletar: Remover instância

💬 Mensagem

  • Enviar Texto: Enviar mensagem de texto
  • Enviar Imagem: Enviar imagem com legenda opcional

🔗 Webhook

  • Configurar: Definir URL do webhook
  • Obter: Ver configuração atual do webhook

🔑 Configuração de Credenciais

  1. No n8n, vá em CredentialsNew
  2. Procure por W-api API
  3. Configure:
    • URL da API: http://localhost:3333 (ou sua URL)
    • API Key: Sua chave de autenticação

📝 Exemplos de Uso

Exemplo 1: Criar Instância e Enviar Mensagem

[Trigger] → [W-api: Criar Instância] → [W-api: Enviar Texto]

Exemplo 2: Workflow Completo

[Webhook] → [W-api: Enviar Texto] → [Resposta]

Exemplo 3: Enviar Imagem

[Schedule] → [W-api: Enviar Imagem]

🎯 Campos Principais

Instância

  • Nome da Instância: Identificador único (ex: loja-centro)

Mensagem

  • Nome da Instância: Instância a ser usada
  • Número: Número com código do país (ex: 5521999999999)
  • Texto: Conteúdo da mensagem
  • URL da Imagem: Link da imagem (para envio de imagens)
  • Legenda: Texto da imagem (opcional)

Webhook

  • Nome da Instância: Instância a configurar
  • URL do Webhook: Endpoint que receberá os eventos

🔄 Eventos do Webhook

O webhook receberá eventos como:

  • QRCODE_UPDATED: Novo QR Code gerado
  • CONNECTION_UPDATE: Mudança no status da conexão
  • MESSAGES_UPSERT: Nova mensagem recebida

🆘 Suporte

Para problemas ou dúvidas, abra uma issue no GitHub.

📄 Licença

MIT