Actions36
- Account Actions
- Canned Response Actions
- Contact Actions
- Conversation Actions
- Inbox Actions
- Label Actions
- Message Actions
- Team Actions
- Webhook Actions
Overview
This node interacts with the Chatwoot API to manage "Canned Responses" among other resources. Specifically, the Update operation for the Canned Response resource allows users to modify an existing canned response by updating its short code and/or content.
Use cases include:
- Updating predefined message templates (canned responses) used in customer support conversations.
- Modifying quick reply messages without manually changing them in the Chatwoot dashboard.
- Automating updates to canned responses as part of a workflow, e.g., changing greetings or instructions based on time or context.
Example: You have a canned response with ID 5 that says "Hello! How can I assist you today?" and a short code "greeting". You want to update the content to "Hi there! How may I help you?" and optionally change the short code.
Properties
| Name | Meaning |
|---|---|
| Canned Response ID | The numeric ID of the canned response to update (required). |
| Short Code | The short code identifier for the canned response (optional; if provided, updates it). |
| Content | The text content of the canned response (optional; if provided, updates it). |
| Continue on Fail | Whether to continue processing subsequent items if this update operation fails (boolean). |
| Debug Logging | Whether to output detailed request and debug information to the console (boolean). |
Output
The node outputs the JSON response from the Chatwoot API after updating the canned response. This typically includes the updated canned response object with fields such as its ID, short code, content, timestamps, and other metadata.
If the update is successful, the output will contain the updated canned response data. If the operation fails and "Continue on Fail" is enabled, the output will contain an error message in JSON format.
No binary data is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the Chatwoot API.
- Needs the account ID and base URL configured in the credentials.
- The node makes HTTP PUT requests to the Chatwoot API endpoint
/api/v1/accounts/{accountId}/canned_responses/{cannedResponseId}.
Troubleshooting
- Invalid JSON or malformed input: Since this operation only updates simple string fields, ensure that the "Short Code" and "Content" inputs are valid strings.
- Authentication errors: Verify that the API key credential is correctly set up and has permissions to update canned responses.
- Resource not found: If the canned response ID does not exist, the API will return an error. Confirm the ID is correct.
- Empty update payload: If neither "Short Code" nor "Content" is provided, the update request body will be empty, which might cause the API to reject the request.
- Debug logging: Enable "Debug Logging" to see detailed request URLs, headers, and responses in the console for troubleshooting.