WTS Chat icon

WTS Chat

Get data from Wts API

Overview

The "Send Text In Session" operation of the WTS Chat node allows sending a text message directly within an existing chat session identified by its Session ID. This is useful for continuing conversations in ongoing sessions without starting new ones, ensuring context continuity.

Common scenarios include:

  • Customer support agents replying to users in active chat sessions.
  • Automated systems sending follow-up messages or notifications within a session.
  • Bots or integrations that need to inject messages into a specific session thread.

Example: Sending a confirmation message to a user in a support session after their issue has been resolved.

Properties

Name Meaning
Text The actual text content you want to send in the session.
Session ID The unique identifier of the chat session where the text message will be sent.
Send Synchronous Message Boolean flag indicating whether the message should be sent synchronously (true) or asynchronously (false).

Output

The node outputs JSON data representing the response from the API after sending the text message in the session. This typically includes details about the sent message such as message ID, status, timestamps, and any metadata returned by the service.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the WTS Chat API.
  • The node depends on the external WTS Chat service endpoints to send messages within sessions.
  • Proper configuration of the API base URL and credentials in n8n is necessary.

Troubleshooting

  • SessionID is empty!
    Error thrown if the Session ID property is not provided or is empty. Ensure the Session ID is correctly set.

  • API errors during sending
    Network issues, invalid API keys, or permission problems can cause failures. Verify API credentials and network connectivity.

  • Invalid or empty text message
    If the text message is empty or only whitespace, the node may throw an error. Provide valid non-empty text.

  • Synchronous message flag misuse
    Setting synchronous sending incorrectly might affect message delivery timing. Use according to your integration needs.

Links and References

Discussion