Actions113
- Accounts Actions
- Account Users Actions
- Agent Bots Actions
- Users Actions
- Inbox API Actions
- Contacts API Actions
- Conversations API Actions
- Messages API Actions
- CSAT Survey Page Actions
- Account Agent Bots Actions
- Agents Actions
- Canned Responses Actions
- Canned Response Actions
- Custom Attributes Actions
- Contacts Actions
- Contact Actions
- Automation Rule Actions
- Help Center Actions
- Conversations Actions
- Conversation Assignment Actions
- Conversation Labels Actions
- Inboxes Actions
- Messages Actions
- Integrations Actions
- Teams Actions
- Custom Filters Actions
- Webhooks Actions
- Reports Actions
Agent Bots → Update An Agent Bot
AI-generatedOverview
This node operation updates an existing Agent Bot in the ChatWoot system. It allows users to modify properties such as the bot's name, description, and webhook URL by specifying the bot's unique identifier. This is useful for maintaining or improving automated agents that interact with customers, ensuring their information and behavior remain current.
Practical examples include:
- Changing the display name of a bot to reflect a new campaign.
- Updating the description to provide more context about the bot’s purpose.
- Modifying the outgoing webhook URL to point to a new endpoint handling bot interactions.
Properties
| Name | Meaning |
|---|---|
| Id | The unique numeric identifier of the agent bot to be updated (required). |
| Name | The new name to assign to the agent bot. |
| Description | A textual description providing details about the agent bot. |
| Outgoing Url | The webhook URL where the bot sends outgoing messages or events. |
Output
The node outputs JSON data representing the updated state of the Agent Bot after the update operation. This typically includes the bot's ID, name, description, outgoing URL, and possibly other metadata returned by the ChatWoot API confirming the successful update.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the ChatWoot API.
- Needs an API authentication token configured in n8n credentials to authorize requests.
- The base URL for the ChatWoot instance must be set in the credentials configuration.
Troubleshooting
- Invalid or missing Id: If the provided bot ID does not exist or is omitted, the API will return an error indicating the bot cannot be found. Ensure the correct numeric ID is supplied.
- Authentication errors: Failure to provide valid API credentials will result in authorization errors. Verify that the API key/token is correctly configured.
- Invalid URL format: Providing an improperly formatted webhook URL may cause the update to fail. Confirm the URL is valid and reachable.
- Empty required fields: Although only the ID is strictly required, sending empty strings for other fields might overwrite existing values unintentionally. Double-check input values before updating.
Links and References
- ChatWoot API Documentation – For detailed API endpoints and payload structures.
- n8n Documentation – For guidance on setting up credentials and using HTTP request nodes.