Wazend API icon

Wazend API

Interact with Wazend API

Overview

The node "Wazend API" provides integration with the Wazend service, allowing users to interact programmatically with its features. Specifically, for the Chat resource and the Enviar Presencia (Send Presence) operation, this node enables sending a presence status such as "typing" or "recording" to a specified contact number. This is useful in chat applications where you want to indicate to the recipient that you are actively typing or recording a message, enhancing real-time communication feedback.

Practical examples include:

  • Indicating to a chat contact that you are currently typing a reply.
  • Showing that you are recording a voice message before sending it.

Properties

Name Meaning
Nombre De La Instancia The name of the Wazend instance to connect to.
Contacto The contact number (remote JID) to whom the presence status will be sent.
Presencia The type of presence to send. Options: "Escribiendo..." (composing), "Grabando..." (recording).
Delay Duration in milliseconds for which the presence status will remain active.

Output

The node outputs a JSON array containing the result of the presence sending operation. The exact structure depends on the response from the Wazend API but typically includes confirmation of the presence status being sent successfully.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential to authenticate with the Wazend API.
  • The base URL for API requests is https://docs.wazend.net/wazend.
  • Proper configuration of the Wazend API credentials within n8n is necessary.

Troubleshooting

  • Operation not supported error: If the node throws an error stating the operation is not supported, verify that the resource and operation names are correctly set to "chat" and "send-presence" respectively.
  • Invalid contact number: Ensure the contact number format matches what the Wazend API expects.
  • Authentication errors: Confirm that the API key credential is valid and has the required permissions.
  • Timeouts or delays: Adjust the "Delay" property if the presence status disappears too quickly or lasts too long.

Links and References

Discussion