WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Chats → Assign Chat

AI-generated

Overview

The node integrates with the WaliChat WhatsApp API to manage WhatsApp chats, specifically allowing assignment of chats to agents or departments. This operation is useful in customer support or sales scenarios where incoming WhatsApp conversations need to be routed to the appropriate team member or department for handling.

For example, a support team can automatically assign new chat requests to available agents based on their ID or email, or route chats to specific departments depending on the inquiry type. This helps streamline communication workflows and ensures timely responses.

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 assign (e.g., user chat or group chat ID).
Assignment Type Method of assignment: "Agent ID", "Agent Email", "Department", or "Agent and Department".
Agent ID The ID of the agent to assign the chat to (required if Assignment Type includes agent by ID).
Agent Email The email address of the agent to assign the chat to (required if Assignment Type is "email").
Department ID The ID of the department to assign the chat to (required if Assignment Type includes department).

Output

The node outputs JSON data representing the result of the chat assignment operation. This typically includes confirmation details such as the assigned agent or department information and status of the assignment.

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.
  • Dependent on dynamic loading of options for devices, agents, and departments via internal methods.

Troubleshooting

  • Common Issues:

    • Invalid or missing WhatsApp number (device) ID may cause failures in identifying the source device.
    • Incorrect chat ID format or non-existent chat will prevent assignment.
    • Providing mismatched assignment type and missing required fields (e.g., no agent email when assignment type is "email") will cause errors.
    • Network or authentication issues with the WaliChat API can block operations.
  • Error Messages:

    • Errors related to invalid parameters usually indicate missing or incorrect input properties; verify all required fields are correctly set.
    • Authentication errors suggest problems with the API key credential setup.
    • If the node throws errors about loading options (agents, departments), ensure that the dependent device parameter is correctly selected.

Links and References

Discussion