WTS Chat icon

WTS Chat

Get data from Wts API

Overview

This node integrates with the WTS Chat API to send files to contacts via messaging channels. It supports sending files either by uploading a file from the input data or by specifying a file URL. The node allows specifying the sending channel, recipient number, optional chatbot activation, department and user context, and session control options. It is useful for automating file sharing in customer support, marketing, or communication workflows where files need to be sent programmatically to contacts.

Use Case Examples

  1. Sending a product brochure PDF to a customer via WhatsApp channel.
  2. Automating sending of invoices or receipts as files to clients.
  3. Sharing images or documents in customer support chat sessions.

Properties

Name Meaning
Chatbot Name or ID Select or specify the chatbot to use for sending the file, if applicable.
Department Name or ID Select or specify the department context for sending the file.
User Name or ID Select or specify the user within the chosen department to send the file as.
From Name or ID Select or specify the channel (e.g., WhatsApp) from which the file will be sent.
To The recipient's phone number or identifier to send the file to.
Url URL of the file to send instead of uploading a file from input.
Input Field File Name Name of the input field containing the base64 encoded file to send.
Send Synchronous Message Boolean flag to determine if the message should be sent synchronously.
Enable Bot Boolean flag to activate chatbot interaction upon receiving a response from the contact.
Hidden Session Boolean flag to mark the session as hidden.
Force Start Session Boolean flag to force start a new session when sending the file.

Output

JSON

  • json - Response object from the WTS Chat API containing details about the sent file message.

Dependencies

  • WTS Chat API

Troubleshooting

  • Ensure either a file input or a file URL is provided; otherwise, the node throws an error.
  • The 'From' channel must be selected; missing this causes an error.
  • The 'To' recipient number must be specified; missing this causes an error.
  • If sending a file from input, the specified input field must exist and contain binary data; otherwise, an error is thrown.
  • API key credential must be valid and provided; invalid credentials cause authentication errors.

Discussion