Chatwork icon

Chatwork

Retrieve data from Chatwork API.

Overview

This node integrates with the Chatwork API to retrieve and manage chatroom data. Specifically, for the "Rooms" resource and the "Get messages" operation, it fetches all messages from a specified chatroom. This is useful for scenarios where you want to automate message retrieval for monitoring conversations, archiving chats, or triggering workflows based on chat content.

For example, you could use this node to:

  • Automatically pull new messages from a team chatroom to analyze sentiment or extract action items.
  • Archive chatroom messages daily into a database or document storage.
  • Trigger notifications or other automations when certain keywords appear in chatroom messages.

Properties

Name Meaning
Chatroom ID The unique numeric identifier of the chatroom from which to retrieve messages.

Output

The output is an array of JSON objects representing the messages retrieved from the specified chatroom. Each object corresponds to a single message and contains all relevant message details as provided by the Chatwork API.

If multiple messages are returned, they are flattened into the output array.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Chatwork API using a valid API authentication token configured in n8n credentials.
  • The node makes HTTP requests to Chatwork endpoints to fetch data.
  • No additional external services are required beyond Chatwork itself.

Troubleshooting

  • Common issues:

    • Invalid or missing Chatroom ID will cause the API request to fail.
    • Insufficient permissions or invalid API token may result in authorization errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "operation is not supported." — indicates that the selected operation is not implemented; ensure "Get messages" is chosen.
    • "resource is not supported." — indicates an unsupported resource was selected; ensure "Rooms" is selected.
    • API errors from Chatwork (e.g., 401 Unauthorized, 404 Not Found) typically indicate credential or parameter issues.
  • Resolutions:

    • Verify the Chatroom ID is correct and accessible by the authenticated user.
    • Confirm the API key or token is valid and has necessary permissions.
    • Check network connectivity and retry if transient errors occur.

Links and References

Discussion