ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions113

Overview

This node operation allows you to add a new agent to a specified account in the ChatWoot system. It is useful for automating the management of support agents by programmatically creating agent profiles with their details such as name, email, role, and availability status. Practical scenarios include onboarding new customer support staff or synchronizing user data from an HR system into ChatWoot.

Properties

Name Meaning
Account Id The numeric ID of the account to which the new agent will be added.
Name Full name of the agent being added.
Email Email address of the agent.
Role The role assigned to the agent; can be either "Agent" or "Administrator".
Availability Status The current availability setting of the agent; options are "Available", "Busy", or "Offline".
Auto Offline Boolean flag indicating if the agent's availability should automatically switch to offline when away.

Output

The node outputs JSON data representing the newly created agent object as returned by the ChatWoot API. This typically includes the agent’s ID, name, email, role, availability status, and other metadata related to the agent profile. There is no binary output.

Dependencies

  • Requires an API key credential for authenticating with the ChatWoot API.
  • The base URL for the ChatWoot instance must be configured in the node credentials.
  • The node uses the ChatWoot REST API endpoint to create agents under a given account.

Troubleshooting

  • Invalid Account Id: If the provided account ID does not exist or is incorrect, the API will return an error. Verify the account ID before running the node.
  • Missing Required Fields: The node requires Account Id, Name, Email, and Role. Omitting any of these will cause validation errors.
  • API Authentication Errors: Ensure that the API key credential is valid and has sufficient permissions to add agents.
  • Email Format Issues: Providing an invalid email format may cause the API to reject the request.
  • Role Value Errors: Only "agent" or "administrator" are accepted roles; using other values will result in errors.

Links and References

Discussion