Wazend API icon

Wazend API

Interact with Wazend API

Overview

This node integrates with the Wazend API to perform various operations related to chat management. Specifically, for the "Chat" resource and the "Mark As Unread" operation, it allows users to mark a particular message as unread in a chat conversation. This can be useful in scenarios where you want to flag messages for follow-up or indicate that a message requires attention later.

Practical examples include:

  • Automatically marking incoming messages as unread if they meet certain criteria (e.g., contain specific keywords).
  • Managing message states programmatically within workflows to improve team collaboration and response tracking.

Properties

Name Meaning
Nombre De La Instancia The name of the Wazend instance to connect to.
Contacto The contact number associated with the chat where the message is located.
ID Del Mensaje The unique identifier of the last message to be marked as unread.
El Mensaje Es Mío Boolean indicating whether the message was sent by the instance itself (true/false).

Output

The node outputs a JSON array containing the result of the "mark as unread" operation. The exact structure depends on the API response but generally includes confirmation of the action performed on the specified message.

No binary data output is indicated.

Dependencies

  • Requires an active connection to the Wazend API.
  • Needs an API authentication token or key configured in the node credentials to authorize requests.
  • The base URL for API requests is https://docs.wazend.net/wazend.

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-api" and "mark-unread" respectively.
  • Authentication Failures: Ensure that the API key or authentication token is valid and properly configured in the node credentials.
  • Invalid Message ID or Contact Number: Double-check that the message ID and contact number correspond to existing entries in the Wazend system.
  • Network Issues: Confirm network connectivity to the Wazend API endpoint.

Links and References

Discussion