ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

Overview

This node allows you to create a new Inbox in ChatWoot via its API. Inboxes are channels through which your team can communicate with customers (e.g., email, chat, social media). This node is useful for automating the setup of communication channels when onboarding new teams or accounts, or when programmatically managing multiple customer support channels.

Example scenarios:

  • Automatically creating a new inbox when a new client account is registered.
  • Setting up different inboxes for various departments (sales, support, etc.) as part of an onboarding workflow.

Properties

Display Name Type Description
Account Id Number The numeric ID of the account. Required.
Name String The name of the inbox.
Avatar String File for avatar image.
Channel JSON Channel configuration details.

Output

The output will be a json object containing the details of the newly created inbox as returned by the ChatWoot API. Typical fields may include:

  • id: Numeric identifier of the inbox.
  • name: Name of the inbox.
  • channel_id: Identifier for the associated channel.
  • avatar_url: URL to the avatar image (if provided).
  • Other metadata as defined by the ChatWoot API.

Note: The exact structure depends 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 the node has network access to your ChatWoot server.

Troubleshooting

  • Missing or Invalid Credentials:
    Error message: "No credentials found" or authentication errors from the API.
    Resolution: Make sure the chatwootApi credential is set up correctly in n8n.

  • Invalid Account Id:
    Error message: "Account not found" or similar from the API.
    Resolution: Double-check that the Account Id exists in your ChatWoot instance.

  • Malformed Channel JSON:
    Error message: "Invalid JSON" or parsing errors.
    Resolution: Ensure the Channel property contains valid JSON.

  • Avatar Upload Issues:
    Error message: Related to file format or size.
    Resolution: Verify the avatar string points to a valid file and meets ChatWoot's requirements.

Links and References

Discussion