Qiscus Omnichannel icon

Qiscus Omnichannel

Consume Qiscus Omnichannel API

Actions2

Overview

The node implements a "Send System Event" operation within an SDK resource context. It is designed to send system event messages to a specified room identified by a Room ID. This functionality is useful in scenarios where automated or programmatic notifications, alerts, or system-generated messages need to be sent to chat rooms or communication channels within an application.

Practical examples include:

  • Sending system alerts or status updates to a support room.
  • Broadcasting automated messages triggered by external events.
  • Notifying users in a specific room about system maintenance or changes.

Properties

Name Meaning
Room ID The identifier of the room to send the message to. Example: "345737961". This is required.
Message The content of the system event message to send. This is required.

Output

The output structure is not explicitly detailed in the provided source code. However, typically for such operations, the json output would contain confirmation of the message being sent, including metadata such as message ID, timestamp, and status. If binary data were involved (not indicated here), it would represent attachments or media related to the message.

Dependencies

  • The node depends on an internal router module (./actions/router) which handles the execution logic.
  • It also relies on a description module (./actions/node.description) for its metadata.
  • Requires proper configuration of API credentials or authentication tokens to interact with the backend service that manages rooms and messages.
  • No explicit external services or environment variables are mentioned in the provided code snippet.

Troubleshooting

  • Missing or invalid Room ID: Ensure the Room ID is correctly provided and corresponds to an existing room.
  • Empty or invalid Message: The message field must not be empty; provide meaningful text.
  • Authentication errors: Verify that the API key or authentication token is valid and has permissions to send messages.
  • Network issues: Check connectivity to the backend service.
  • Unhandled exceptions: Since the execute method delegates to a router, errors may originate from there; reviewing logs or enabling debug mode might help identify issues.

Links and References

  • No direct links are available from the provided code. For further details, consult the SDK documentation or the backend service API reference related to sending system events or messages to rooms.

Discussion