WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Chats → Unassign Chat

AI-generated

Overview

This node integrates with the WaliChat WhatsApp API, enabling automation and management of WhatsApp-related operations. Specifically, the Unassign Chat operation under the Chats resource allows users to unassign a chat from an agent or team member. This is useful in scenarios where a chat needs to be released back to a queue or reassigned to another agent, such as when an agent finishes handling a customer inquiry or if the chat was assigned incorrectly.

Practical examples include:

  • Automatically unassigning chats after a support ticket is resolved.
  • Managing workload by unassigning chats from unavailable agents.
  • Integrating with CRM systems to update chat assignment status dynamically.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the chat originates.
Chat ID The unique identifier of the chat to unassign. Examples: 447362053576@c.us for a user chat, 44736205357600000000@g.us for a group chat.

Output

The node outputs JSON data representing the result of the unassign chat operation. This typically includes confirmation that the chat has been successfully unassigned or details about the updated chat state. The exact structure depends on the API response but generally contains fields indicating success or failure and any relevant metadata about the chat.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the WaliChat WhatsApp API.
  • Needs an API key credential configured in n8n for authentication.
  • The node relies on the WaliChat API endpoints related to chat management.

Troubleshooting

  • Common Issues:

    • Invalid or missing WhatsApp Number (device) ID can cause failures.
    • Incorrect Chat ID format will prevent the operation from succeeding.
    • Network or authentication errors if the API key is invalid or expired.
  • Error Messages:

    • "Chat not found": Verify the Chat ID is correct and exists on the specified WhatsApp number.
    • "Unauthorized" or "Invalid API key": Check that the API key credential is correctly set up and valid.
    • "Device not found": Ensure the WhatsApp Number (device) ID is accurate and linked to your account.

Resolving these usually involves verifying input parameters and ensuring proper API credentials are configured.

Links and References

Discussion