WTS Chat icon

WTS Chat

Get data from Wts API

Overview

The WTS Chat node for n8n allows you to interact with the WTS Chat API, specifically to manage and retrieve information about messages, contacts, sessions, panels, sequences, and chatbots.
For the selected Resource: Message and Operation: Get Message Status, this node retrieves the current status of a specific message by its ID from the WTS Chat platform.

Common scenarios:

  • Monitoring the delivery or read status of sent messages.
  • Automating workflows based on message status (e.g., triggering follow-ups if a message is not delivered).
  • Integrating message status checks into customer support or notification systems.

Practical example:
You can use this operation in a workflow to check whether a WhatsApp message sent via WTS Chat has been delivered, read, or failed, and then branch your automation accordingly.


Properties

Display Name Type Description
Message ID String The unique identifier of the message whose status you want to retrieve.
  • Message ID:
    • Type: String
    • Description: Enter the message ID for which you want to get the status. This is typically returned when you send a message using WTS Chat.

Output

The output will be a single item per input, with the following structure:

{
  "json": {
    // All fields as returned by the WTS Chat API for message status.
    // Example fields may include:
    "id": "string",            // The message ID
    "status": "string",        // Current status (e.g., 'sent', 'delivered', 'read', 'failed')
    "timestamp": "string",     // Timestamp of the last status update
    // ...other metadata provided by the API
  }
}
  • The exact fields depend on the WTS Chat API response for message status.
  • No binary data is produced by this operation.

Dependencies

  • External Service: Requires access to the WTS Chat API.
  • API Key: You must configure the wtsApi credential in n8n, which includes your WTS Chat API key.
  • n8n Configuration: Ensure the node is properly authenticated with the required credentials.

Troubleshooting

Common issues:

  • Invalid or missing Message ID:
    • If the Message ID is empty or incorrect, the node will throw an error indicating that the parameter is required or invalid.
  • Authentication errors:
    • If the API key is missing or invalid, you'll receive an authentication error from the WTS Chat API.
  • Network/API errors:
    • If the WTS Chat service is unreachable or returns an error, the node will fail with the corresponding error message.

Error messages you might see:

  • "message": "Fill in the field messageId" – Make sure you provide a valid Message ID.
  • "Invalid credentials" – Check your API key configuration in n8n.
  • "Request failed with status code XXX" – Indicates an issue with the WTS Chat API; check the API documentation or service status.

Links and References

  • WTS Chat Website
  • n8n Documentation
  • For more details on the WTS Chat API endpoints and expected responses, refer to their official API documentation (contact WTS Chat support if not publicly available).

Discussion