Actions37
- Instance Actions
- Message Actions
- Group Actions
- Contact Actions
- Chat Actions
- Campaign Actions
- Chatbot Actions
Overview
This node integrates with the UazAPI service to manage WhatsApp automation, specifically enabling the creation and configuration of AI chatbot agents. The Create Agent operation under the Chatbot resource allows users to create a new AI agent by specifying its name, AI provider, model, and system prompt instructions.
Typical use cases include:
- Automating customer support or engagement on WhatsApp using AI-powered chatbots.
- Creating customized AI agents tailored to specific conversational needs by selecting different AI providers and models.
- Setting system-level instructions to guide the chatbot’s behavior and responses.
For example, a user can create an AI agent named "SupportBot" using OpenAI's GPT model "gpt-4o-mini" with a system prompt that instructs the bot to answer FAQs about their product.
Properties
| Name | Meaning |
|---|---|
| Agent Name | The name assigned to the AI agent being created. |
| AI Provider | The AI service provider powering the agent. Options: OpenAI (GPT), Anthropic (Claude), Google (Gemini), DeepSeek. |
| Model | The specific AI model to use from the selected provider (e.g., "gpt-4o-mini", "claude-3-5-sonnet", "gemini-pro"). |
| System Prompt | Instructions or context given to the AI agent to guide its behavior during conversations. |
Output
The node outputs a JSON object representing the response from the UazAPI after attempting to create the AI agent. This typically includes details about the newly created agent such as its ID, name, provider, model, and any status or confirmation messages returned by the API.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the UazAPI service.
- Needs valid credentials for the UazAPI, including a base URL and authentication tokens configured in n8n.
- The node uses HTTP requests authenticated via these credentials to communicate with the UazAPI endpoints.
Troubleshooting
Common Issues:
- Invalid or missing API credentials will cause authentication failures.
- Incorrect or unsupported AI model names may result in API errors.
- Network connectivity issues can prevent successful communication with the UazAPI.
Error Messages:
- Authentication errors typically indicate invalid or expired API keys; verify and update credentials.
- Validation errors from the API may indicate missing required parameters like agent name or model.
- Timeout or network errors suggest checking internet connectivity or UazAPI service status.
Resolution Tips:
- Ensure all required properties are correctly filled before execution.
- Confirm the AI provider and model names are supported by the UazAPI.
- Check the UazAPI service health and your network connection if requests fail repeatedly.
Links and References
- UazAPI Documentation (Replace with actual URL if available)
- OpenAI Models: https://platform.openai.com/docs/models
- Anthropic Claude: https://www.anthropic.com/index/claude
- Google Gemini: https://developers.google.com/ai/gemini
- DeepSeek AI: https://deepseek.ai/
(Note: External links are illustrative; please refer to official documentation for each AI provider.)