Actions16
- Rooms Actions
- Create a new group chat
- Leave/Delete a group chat
- Get detail
- Update info
- Get members
- Change associated members
- Get messages
- Send message
- Get message detail
- Update the specified message
- Delete message
- Get tasks
- Get task detail
- Add a new task to the chat
- Get the list of files
- Get information about the specified file
Overview
This node integrates with the Chatwork API to manage chatrooms and their messages. Specifically, for the "Rooms" resource and the "Delete message" operation, it allows users to delete a specific message from a given chatroom by providing the chatroom ID and the message ID.
Common scenarios where this node is useful include:
- Automating cleanup of outdated or incorrect messages in team chatrooms.
- Moderation workflows where certain messages need to be programmatically removed.
- Integrations that synchronize external systems with Chatwork by removing messages based on external triggers.
Example: Automatically deleting a notification message after a task is completed or a time period has elapsed.
Properties
| Name | Meaning |
|---|---|
| Chatroom ID | The unique numeric identifier of the chatroom from which the message will be deleted. |
| Message ID | The unique numeric identifier of the message to delete within the specified chatroom. |
Output
The output JSON contains the response from the Chatwork API after attempting to delete the message. Typically, this will be an object indicating success or failure of the deletion request. The exact structure depends on the Chatwork API's response but generally confirms whether the message was successfully deleted.
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 as credentials in n8n).
- Network access to Chatwork's API endpoints.
- Proper permissions on the API key to delete messages in the specified chatroom.
Troubleshooting
Common issues:
- Providing invalid or non-existent Chatroom ID or Message ID will result in errors.
- Insufficient permissions on the API token to delete messages may cause authorization errors.
- Network connectivity problems can prevent successful API calls.
Error messages:
"deleteMessage operation is not supported."— This would occur if the operation parameter is incorrectly set; ensure "Delete message" is selected.- Errors returned from the Chatwork API such as 404 Not Found (message or room does not exist) or 403 Forbidden (insufficient permissions).
Resolutions:
- Verify that the Chatroom ID and Message ID are correct and correspond to existing entities.
- Confirm that the API token used has the necessary rights to delete messages.
- Check network connectivity and retry if transient errors occur.
