Actions37
- Instance Actions
- Message Actions
- Group Actions
- Contact Actions
- Chat Actions
- Campaign Actions
- Chatbot Actions
Overview
This node integrates with the UazAPI service, providing automation capabilities for WhatsApp through over 90 endpoints. Specifically, the Chatbot - Update Settings operation allows users to enable or disable the chatbot feature and update its OpenAI API key settings on the connected WhatsApp instance.
Typical use cases include:
- Enabling or disabling an AI-powered chatbot that interacts with WhatsApp messages.
- Updating the OpenAI API key used by the chatbot to connect to OpenAI services.
- Managing chatbot behavior dynamically within automated workflows.
For example, a user might toggle the chatbot on or off based on business hours or update the API key when rotating credentials for security compliance.
Properties
| Name | Meaning |
|---|---|
| OpenAI API Key | The secret API key string for authenticating requests to OpenAI's API (used by chatbot). |
| Chatbot Enabled | Boolean flag to enable (true) or disable (false) the chatbot functionality. |
Output
The node outputs JSON data representing the response from the UazAPI endpoint /instance/updatechatbotsettings. This typically includes confirmation of the updated settings or error details if the update failed.
The output structure is dynamic but generally contains fields indicating success status and any relevant messages from the API.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the UazAPI service with valid credentials including a base URL and authentication tokens.
- Needs an API key credential for UazAPI configured in n8n.
- For updating chatbot settings, optionally requires a valid OpenAI API key to be provided as input.
- Network access to the UazAPI endpoints must be available.
Troubleshooting
Common issues:
- Invalid or missing UazAPI credentials will cause authentication failures.
- Providing an invalid or expired OpenAI API key may result in errors from the chatbot service.
- Network connectivity problems can prevent successful API calls.
Error messages:
- Authentication errors usually indicate incorrect or missing API tokens; verify credentials in n8n.
- Validation errors from the API may occur if required parameters are missing or malformed.
- If the API returns an error about the OpenAI key, ensure the key is correct and has proper permissions.
Resolution tips:
- Double-check all input parameters and credentials.
- Test connectivity to the UazAPI base URL outside n8n to confirm network access.
- Rotate or regenerate API keys if authentication repeatedly fails.
Links and References
- UazAPI Documentation (hypothetical link for reference)
- OpenAI API Documentation
- n8n HTTP Request Node documentation for understanding API call mechanics: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/