ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions113

Overview

This node integrates with the ChatWoot API to update the agent bot assigned to a specific inbox within an account. It is useful for automating the management of inbox configurations, particularly when you need to change or assign different agent bots dynamically based on workflow conditions. For example, you might use this node to switch the bot handling customer queries in a support inbox depending on the time of day or workload.

Properties

Name Meaning
Account Id The numeric ID of the ChatWoot account that owns the inbox.
Id The numeric ID of the inbox whose agent bot you want to update.
Agent Bot The numeric ID of the agent bot to assign to the specified inbox.

Output

The node outputs JSON data representing the response from the ChatWoot API after updating the inbox's agent bot. This typically includes confirmation details such as the updated inbox information and the assigned agent bot ID. The output does not include binary data.

Dependencies

  • Requires an active ChatWoot API key credential configured in n8n.
  • Needs the base URL of the ChatWoot instance set in the credentials.
  • Depends on the ChatWoot REST API being accessible and the user having permissions to update inbox settings.

Troubleshooting

  • Common issues:
    • Invalid or missing API credentials will cause authentication errors.
    • Providing incorrect account or inbox IDs will result in "not found" or similar API errors.
    • Assigning an invalid or non-existent agent bot ID may cause the update to fail.
  • Error messages:
    • Authentication failures: Check that the API key and base URL are correctly configured.
    • Resource not found: Verify that the account ID and inbox ID exist and are correct.
    • Validation errors: Ensure the agent bot ID is valid and belongs to the same account.

Links and References

Discussion