Chatwork icon

Chatwork

Retrieve data from Chatwork API.

Overview

This node interacts 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 analyze conversation history, monitor ongoing discussions, or archive chat content from a particular room.

Practical examples include:

  • Extracting all messages from a project chatroom to generate meeting notes.
  • Monitoring customer support chatrooms for quality assurance.
  • Archiving chatroom conversations for compliance purposes.

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 message and contains details as provided by the Chatwork API, such as message content, sender information, timestamps, and message IDs.

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

No binary data output is involved in 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: Ensure the Chatroom ID is correct and exists in your Chatwork account.
    • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
    • Network or API downtime: Check network connectivity and Chatwork service status.
  • Error messages:

    • "operation is not supported." — This indicates an unsupported operation was selected; verify that "Get messages" is chosen under the Rooms resource.
    • "resource is not supported." — This means the resource parameter is invalid; ensure "Rooms" is selected.
    • HTTP errors from the API (e.g., 401 Unauthorized, 404 Not Found) typically relate to authentication issues or invalid resource identifiers.

Resolving these usually involves verifying input parameters and API credentials.

Links and References

Discussion