ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

Overview

This node allows you to retrieve detailed information about a specific conversation from the ChatWoot platform. It is useful in scenarios where you need to fetch and process conversation data for reporting, automation, or integration with other systems. For example, you might use this node to display conversation details in a dashboard, trigger workflows based on conversation status, or synchronize conversation data with external CRMs.

Properties

Display Name Type Description
Account Id Number The numeric ID of the account. This identifies which ChatWoot account the conversation belongs to. Required.
Conversation Id Number The numeric ID of the conversation whose details you want to retrieve. Required.

Output

The output will be a JSON object containing the details of the specified conversation. The structure typically includes fields such as:

{
  "id": 12345,
  "account_id": 1,
  "inbox_id": 2,
  "contact_id": 3,
  "status": "open",
  "assignee_id": 4,
  "messages": [
    {
      "id": 67890,
      "content": "Hello!",
      "created_at": "2024-06-01T12:00:00Z"
    }
  ],
  ...
}

Note: The actual fields may vary depending on the ChatWoot API response.

Dependencies

  • External Service: Requires access to a ChatWoot instance.
  • API Credentials: You must configure the chatwootApi credential in n8n, including the base URL (url) and authentication details.
  • n8n Configuration: Ensure that the credentials are set up in your n8n instance under the name chatwootApi.

Troubleshooting

  • Missing or Invalid Credentials:
    If the node fails with an authentication error, ensure that the chatwootApi credentials are correctly configured and have sufficient permissions.
  • Invalid Account or Conversation ID:
    If you receive a "Not Found" or similar error, double-check that both the Account Id and Conversation Id are correct and exist in your ChatWoot instance.
  • Connection Issues:
    Network errors may occur if the ChatWoot server is unreachable. Verify the base URL and network connectivity.

Links and References

Discussion