Actions59
- Instancia Actions
- Mensaje Actions
- Grupo Actions
- Crear Grupo
- Actualizar Imagen Del Grupo
- Actualizar Nombre Del Grupo
- Actualizar Descripción Del Grupo
- Actualizar Configuraciones
- Actualizar Miembros
- Buscar Enlace De Invitación
- Revocar Enlace De Invitación
- Enviar Enlace De Invitación
- Buscar Grupos
- Encontrar Participantes
- Mensajes Temporales
- Entrar en El Grupo
- Salir Del Grupo
- Chat Actions
- Perfil Actions
- Evento Actions
Overview
This node, named "Wazend API," allows users to interact with the Wazend API, specifically to manage instances of WhatsApp integrations. The "Crear Instancia" (Create Instance) operation under the "Instancia" resource enables users to create and configure a new WhatsApp instance programmatically.
Typical use cases include:
- Automating the setup of WhatsApp instances for customer support or marketing.
- Integrating WhatsApp messaging capabilities into workflows without manual configuration.
- Configuring advanced options such as proxy settings, webhook event monitoring, and integration with Chatwoot (a customer engagement platform).
For example, a user can create a WhatsApp instance with a specific name, optionally provide an API key, set up proxy configurations, enable RabbitMQ event monitoring, and define webhook URLs to receive real-time events from the WhatsApp instance.
Properties
Name | Meaning |
---|---|
Nombre De La Instancia | The name to assign to the new WhatsApp instance. This is a required string input. |
Apikey Para La Instancia | Optional API key token for authenticating the instance creation request. |
Número De WhatsApp | Optional phone number that will connect to the instance to receive the pairing code. |
Opciones | A collection of optional advanced settings: |
- Chatwoot | Configuration settings for integrating the instance with Chatwoot, including account ID, admin token, URL, agent signature toggle, message reopening, conversation status, contact import, message import limits, and branding. |
- Comportamiento | Behavior settings for the instance, such as rejecting calls, sending messages on call rejection, ignoring group messages, always online status, auto-reading messages, syncing full history, and reading statuses. |
- Proxy | Proxy server settings including host, port, protocol (HTTP/HTTPS), username, and password. |
- RabbitMQ | Settings to enable or disable RabbitMQ event monitoring, specify which events to monitor, and whether to send media data in base64 format. |
- Webhook | Webhook configuration including the URL to receive events, option to create event-specific routes, base64 encoding for media data, and selection of events to monitor via webhook. |
Output
The node outputs a JSON array containing the response from the Wazend API after attempting to create the WhatsApp instance. The exact structure depends on the API response but typically includes details about the created instance such as its ID, status, and configuration summary.
If the node supports binary data output (not explicitly shown here), it would likely relate to media or QR codes associated with the WhatsApp instance, but this is not detailed in the provided information.
Dependencies
- Requires an active connection to the Wazend API endpoint at
https://docs.wazend.net/wazend
. - Needs an API authentication token (provided as an input property) or other credentials configured in n8n to authorize requests.
- Optional dependencies include:
- Chatwoot account and admin token for Chatwoot integration.
- RabbitMQ service if event monitoring via RabbitMQ is enabled.
- A reachable webhook URL to receive event callbacks.
- Proxy server details if the instance needs to connect through a proxy.
Troubleshooting
- Operation Not Supported Error: If the selected operation or resource is not supported, the node throws an error indicating the unsupported function. Ensure the correct resource ("instances-api") and operation ("instance-basic") are selected.
- Authentication Failures: Missing or invalid API keys/token may cause authorization errors. Verify the API key/token is correctly entered and has sufficient permissions.
- Network Issues: Proxy misconfiguration or unreachable webhook URLs can cause connectivity problems. Double-check proxy settings and webhook endpoints.
- Event Monitoring Misconfiguration: Selecting unsupported or incorrect event names for RabbitMQ or webhook monitoring may result in no events being received.
- Invalid Input Data: Required fields like "Nombre De La Instancia" must be provided; otherwise, the API may reject the request.
Links and References
- Wazend API Documentation — Official API docs for further details on endpoints and parameters.
- Chatwoot — For understanding Chatwoot integration options.
- RabbitMQ — For configuring and managing RabbitMQ event queues.
- n8n Documentation — For general guidance on creating and using custom nodes and credentials.