Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
This node interacts with the SparkBot WhatsApp API to manage WhatsApp chats. Specifically, the Unarchive Chat operation under the Chats resource allows users to unarchive a previously archived chat on a specified WhatsApp number. This is useful in scenarios where archived conversations need to be restored for active communication or follow-up.
Practical examples:
- A customer support team wants to reopen a resolved chat that was archived to continue assisting the customer.
- A sales agent needs to unarchive a group chat to add new participants or update the conversation.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) from which the chat will be unarchived. |
| Chat ID | The unique identifier of the chat to unarchive. Examples include user chats (447362053576@c.us) or group chats (44736205357600000000@g.us). |
Output
The node outputs JSON data representing the result of the unarchive chat operation. This typically includes confirmation details such as the chat ID and status indicating the chat has been successfully unarchived.
If the operation fails, the output JSON may contain an error message describing the issue.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the SparkBot WhatsApp API.
- The node depends on the SparkBot service being accessible and properly configured.
- The "WhatsApp Number" must be registered and active within the SparkBot system.
- The chat ID must correspond to an existing archived chat on the specified WhatsApp number.
Troubleshooting
Common issues:
- Providing an invalid or inactive WhatsApp number ID.
- Using a chat ID that does not exist or is not archived.
- Network or authentication failures with the SparkBot API.
Error messages:
"Chat not found": The provided chat ID does not exist on the device."Chat is not archived": Attempting to unarchive a chat that is already active."Authentication failed": Invalid or missing API key credential.
Resolutions:
- Verify the WhatsApp number ID is correct and active.
- Confirm the chat ID corresponds to an archived chat.
- Ensure the API key credential is valid and has necessary permissions.
- Check network connectivity and SparkBot service status.
Links and References
- SparkBot WhatsApp API Documentation (example placeholder link)
- n8n Documentation on Creating Custom Nodes
- WhatsApp Business API general info: https://www.whatsapp.com/business/api
Note: The above summary is based solely on static analysis of the provided source code and property definitions.