Chatwork icon

Chatwork

Retrieve data from Chatwork API.

Overview

This node integrates with the Chatwork API to manage chatrooms and their messages. Specifically, for the Rooms - Send message operation, it allows users to send a text message to a specified chatroom by providing the chatroom ID and the message content.

Common scenarios where this node is beneficial include:

  • Automating notifications or alerts into team chatrooms.
  • Sending updates or reminders to project-specific chatrooms.
  • Integrating external systems to post messages automatically based on events.

For example, you could use this node to send a daily summary report to a project chatroom or notify a support team chatroom when a new ticket is created.

Properties

Name Meaning
Chatroom ID The unique numeric identifier of the chatroom where the message will be sent.
Message body The text content of the message to send to the specified chatroom.

Output

The node outputs an array of JSON objects representing the response from the Chatwork API after sending the message. The exact structure depends on the API's response but typically includes details about the sent message such as its ID, timestamp, and content confirmation.

If multiple input items are processed, the output will be an array containing each corresponding response object.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Chatwork API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The node uses HTTP methods (POST) to interact with the Chatwork API endpoints.

Troubleshooting

  • Error: Operation not supported — This occurs if an unsupported operation name is provided. Ensure "sendMessage" is correctly selected under the Rooms resource.
  • Error: Resource not supported — Happens if the resource parameter is incorrect or missing. Confirm that "rooms" is selected as the resource.
  • API Authentication Errors — If the API key or token is invalid or missing, the request will fail. Verify that the API credential is properly set up in n8n.
  • Invalid Chatroom ID — Providing a non-existent or unauthorized chatroom ID will cause the API to reject the request. Double-check the chatroom ID value.
  • Empty Message Body — The message property is required; sending an empty string may result in an error or no message being posted.

Links and References

Discussion