ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

Overview

This node allows you to add a new Help Center portal to a specific account in ChatWoot. It is useful for organizations that want to programmatically create and configure help center portals, such as when onboarding new clients or automating support infrastructure setup. For example, you could use this node to automatically provision a branded help center whenever a new customer signs up.

Properties

The following input properties are supported for the "Add New Portal To Account" operation under the "Help Center" resource:

Display Name Type Description
Account Id Number The numeric ID of the account.
Archived Boolean Status to check if portal is live.
Color String Header color for help-center (HEX string).
Config JSON Configuration about supporting locales.
Custom Domain String Custom domain to display help center.
Header Text String Help center header text.
Homepage Link String Link to main dashboard.
Name String Name for the portal.
Slug String Slug for the portal to display in link.
Page Title String Page title for the portal.

Output

The output will be a json object containing the details of the newly created Help Center portal. The structure typically includes fields such as the portal's ID, name, slug, configuration, and other metadata returned by the ChatWoot API. The exact structure depends on the API response but generally reflects the submitted properties along with system-generated values (like IDs and timestamps).

Example output:

{
  "id": 123,
  "name": "Support Portal",
  "slug": "support-portal",
  "color": "#ffffff",
  "archived": false,
  "config": {
    "allowed_locales": ["en", "es"],
    "default_locale": "en"
  },
  "custom_domain": "https://help.example.com",
  "header_text": "Handbook",
  "homepage_link": "https://www.example.com/",
  "page_title": "Support Home",
  // ...other fields
}

Note: This node does not output binary data.

Dependencies

  • External Service: Requires access to a ChatWoot instance.
  • API Key: You must provide valid ChatWoot API credentials (chatwootApi).
  • n8n Configuration: The base URL for ChatWoot should be set in the credentials as url.

Troubleshooting

  • Missing or Invalid Credentials:
    Error message: "401 Unauthorized" or "Invalid credentials."
    Resolution: Ensure your ChatWoot API key and URL are correct in n8n credentials.

  • Required Fields Missing:
    Error message: "account_id is required" or similar.
    Resolution: Make sure all required fields, especially "Account Id", are provided.

  • Invalid Field Values:
    Error message: "Invalid color format" or "Malformed config JSON".
    Resolution: Double-check that the color is a valid HEX string and the config is valid JSON.

  • Network/Connection Issues:
    Error message: "Could not connect to server" or timeouts.
    Resolution: Verify network connectivity and that the ChatWoot instance is reachable from n8n.

Links and References

Discussion