Actions6
- Message Actions
- Chat Actions
Overview
This node allows users to interact with the Max messenger platform, specifically focusing on managing messages and chats. For the Delete Message operation under the Message resource, it deletes an existing message identified by its unique message ID.
Typical use cases include:
- Automatically removing outdated or incorrect messages from a chat.
- Moderation workflows where certain messages need to be deleted based on triggers or conditions.
- Cleanup tasks in chatbots or messaging automation to maintain relevant conversation history.
Example: You have a chatbot that sends temporary notifications to users. After a certain event or timeout, you want to delete those notification messages automatically using this node.
Properties
| Name | Meaning |
|---|---|
| Message ID | The unique identifier of the message to delete. This is required and must not be empty. |
Output
The output JSON contains the response from the Max messenger API after attempting to delete the specified message. It typically confirms whether the deletion was successful or provides error details if it failed.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Max messenger service.
- The node internally creates an instance of the Max bot client to perform API calls.
- No additional environment variables are explicitly required beyond the API authentication setup.
Troubleshooting
- Missing or empty Message ID: The node will throw an error if the Message ID parameter is missing or empty. Ensure you provide a valid message ID string.
- Invalid Message ID format: Although the code does not explicitly validate the format beyond non-empty, ensure the ID matches what the Max messenger API expects.
- API errors: If the message cannot be deleted (e.g., message does not exist, insufficient permissions), the API response will indicate the failure. Check your API credentials and permissions.
- Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error details in the output JSON.
Links and References
- Max Messenger API Documentation (Replace with actual URL if available)
- n8n documentation on Creating Custom Nodes