Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
Departments → Update Department
AI-generatedOverview
This node interacts with the WaliChat WhatsApp API to update an existing department associated with a specific WhatsApp number. It allows users to modify various attributes of a department such as its name, color, icon, description, and the list of agents assigned to it.
Typical use cases include organizational management within a WhatsApp-based customer support or sales team, where departments represent different teams or functional groups. For example, you might update a "Sales" department to add new agents or change its identifying color and icon for better visual distinction in the system.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) under which the department exists. |
| Department ID | The unique identifier of the department to update. |
| Name | New department name (2-25 characters). |
| Color | New department color for quick identification. Options include Ruby, Tomato, Orange, Sunflower, Bubble, Rose, Poppy, Rouge, Raspberry, Purple, Lavender, Violet, Pool, Emerald, Kelly, Apple, Turquoise, Aqua, Gold, Latte, Cocoa, Iron. |
| Icon | New department icon identifier. Options include Briefcase, Users, User Tie, Chart Bar, Clipboard List, Comments, Headset, User Cog, User Edit, User Friends, Laptop Code, Network Wired, Building, Handshake, Address Book, Layer Group, Project Diagram, Calendar Check, Clipboard Check, Tasks, Chart Pie, Hands Helping, Shield Alt, User Lock, User Shield, Bullhorn, Comments Dollar, Comment Dots, Fingerprint, Check Circle, Chalkboard Teacher, Cogs, Rocket, Drafting Compass, Lightbulb, Envelope, Inbox, People Carry, Code Branch, Globe, Hand Holding USD, Money Bill Wave, Phone, Wrench, Balance Scale, Thumbs Up, User Secret, User Graduate, Landmark, Archive. |
| Description | New department description (max 300 characters). |
| Agents | New list of agent IDs to include in the department (1-30 agents required). Multiple values allowed. |
Output
The node outputs JSON data representing the updated department details as returned by the WaliChat API. This typically includes confirmation of the updated fields and possibly metadata about the department after the update.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the WaliChat WhatsApp API.
- Requires an API key credential configured in n8n for authentication.
- The node depends on dynamic loading of options for devices, departments, and agents via internal methods to populate dropdowns.
Troubleshooting
Common issues:
- Invalid or missing WhatsApp number ID or department ID will cause errors.
- Providing invalid values for properties like name length, description length, or exceeding agent limits may result in API validation errors.
- Network or authentication failures can prevent successful updates.
Error messages:
- Errors related to missing required parameters ("WhatsApp Number", "Department ID") indicate that these must be provided.
- API errors about invalid colors or icons suggest selecting from the predefined options.
- Authentication errors imply checking the API key credential configuration.
Resolving these usually involves verifying input parameters, ensuring correct API credentials, and confirming network connectivity.
Links and References
- WaliChat WhatsApp API Documentation (hypothetical link)
- n8n documentation on Creating Custom Nodes
- General WhatsApp Business API guidelines for department/team management