Chatwoot icon

Chatwoot

Interact with Chatwoot API

Overview

This node interacts with the Chatwoot API to manage various resources such as accounts, contacts, conversations, messages, inboxes, canned responses, webhooks, teams, and labels. Specifically, for the Canned Response - Get operation, it retrieves a single canned response by its numeric ID from a Chatwoot account.

Typical use cases include:

  • Fetching predefined canned responses to display or use in automated messaging workflows.
  • Integrating Chatwoot canned responses into other systems or automations.
  • Retrieving details of a specific canned response for editing or auditing purposes.

Example: You want to get the content and metadata of a canned response with ID 5 to use it in a customer support automation flow.

Properties

Name Meaning
Canned Response ID The numeric ID of the canned response to retrieve. This identifies which canned response to fetch.
Continue on Fail Whether the node should continue processing subsequent items if this operation fails.
Debug Logging Whether to output detailed request and response information to the console for debugging.

Output

The node outputs the JSON data returned by the Chatwoot API for the requested canned response. This typically includes fields such as the canned response's ID, short code, content, creation date, and other metadata.

The output is structured as an array of items, each containing a json property with the canned response data.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Chatwoot API.
  • Needs the Chatwoot account ID and base URL configured in the credentials.
  • The node makes HTTP GET requests to the Chatwoot API endpoint /api/v1/accounts/{accountId}/canned_responses/{cannedResponseId}.

Troubleshooting

  • Invalid or missing Canned Response ID: Ensure the provided ID is a valid number and corresponds to an existing canned response in your Chatwoot account.
  • Authentication errors: Verify that the API key credential is correctly set up and has access to the specified Chatwoot account.
  • Network or URL issues: Check that the base URL is correct and reachable from n8n.
  • Debug Logging: Enable debug logging to see detailed request URLs, headers, and error messages in the console, which can help diagnose issues.
  • Continue on Fail: If enabled, the node will not stop the workflow on errors but instead output error details in the JSON, allowing the workflow to proceed.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion