npm package: @shahabadi/n8n-nodes-zender-modified
Description: Modified n8n node for Zender WhatsApp API with independent Account ID parameter and proper multipart/form-data support
Author: sadegh
Latest version: 1.0.8

# Modified Zender WhatsApp API Node for n8n

This is a modified version of the original `@umairabubakkar/n8n-nodes-zender` package. The main enhancement is making the Account ID configurable as an independent parameter instead of being tied to credentials.

## Changes Made

- **Independent Account ID**: Account ID is now a separate input parameter that can be configured for operations that require it
- **Smart Display**: Account ID field only appears for operations that actually need it (not for general operations like "Get All Accounts")
- **Flexible Configuration**: You can now use different Account IDs for different operations within the same workflow
- **Simplified Credentials**: Credentials now only contain API Secret and Base URL
- **Improved UI**: Optional parameters are now grouped in "Additional Fields" sections for cleaner forms
- **Contact Management**: Full CRUD operations for contacts and contact groups
- **OTP Operations**: Send OTP via SMS or WhatsApp with configurable parameters
- **SMS Operations**: Send SMS and bulk SMS with device/credit modes
- **Proper File Upload**: Binary file support with multipart/form-data for documents and media

## Operations That Require Account ID

- **Message Operations**: Send and Send Bulk
- **Account Operations**: Relink and Delete (but NOT Get All, Link, Get QR Info, Get QR Image)
- **Group Operations**: Get All Groups and Get Contacts
- **Validation**: Validate Phone Number

## Operations That DON'T Require Account ID

- **Chat Operations**: All chat operations (Get Received, Sent, Pending, Single, Delete)
- **Campaign Operations**: All campaign operations
- **Server Operations**: Get All Servers
- **Account Operations**: Get All, Link, Get QR Info, Get QR Image

## Installation

```bash
npm install @shahabadi/n8n-nodes-zender-modified
```

Or install via n8n community nodes:
1. Go to Settings > Community Nodes in your n8n instance
2. Enter the package name: `@shahabadi/n8n-nodes-zender-modified`
3. Click Install

## Usage

1. **Set up Zender API Credentials**: Configure your Zender API credentials (Base URL and API Secret)
2. **Configure Account ID**: For each node, you can now specify the Account ID directly as a parameter
3. **Use in Workflows**: Use the modified node just like the original, but with more flexibility

## Supported Operations

All original operations are supported plus new Contact management, OTP, and SMS:
- **Message**: Send single and bulk WhatsApp messages
- **Chat**: Manage received, sent, and pending chats
- **Account**: Manage WhatsApp accounts, linking, and QR codes
- **Campaign**: Control WhatsApp campaigns
- **Contact**: ✨ Manage contacts and contact groups
  - Create Contact: Add new contacts with optional group assignment
  - Create Group: Create new contact groups
  - Get Contacts: Retrieve all contacts with pagination
  - Get Groups: Retrieve all contact groups with pagination
  - Get Unsubscribed: Retrieve unsubscribed contacts
  - Delete Contact: Remove a contact
  - Delete Group: Remove a contact group
  - Delete Unsubscribed: Remove an unsubscribed contact
- **OTP**: ✨ NEW! One-Time Password operations
  - Send OTP: Send OTP via SMS or WhatsApp with customizable expiration
  - Verify OTP: Verify user-provided OTP codes
- **SMS**: ✨ NEW! Complete SMS management
  - Send SMS: Send single SMS messages via devices or credits
  - Send Bulk SMS: Send bulk SMS campaigns
  - Get Received: Retrieve received SMS messages
  - Get Sent: Retrieve sent SMS messages
  - Get Pending: Retrieve pending SMS messages
  - Get Single: Retrieve specific SMS message by ID
  - Get Campaigns: Retrieve SMS campaigns
  - Start/Stop Campaign: Control SMS campaigns
  - Delete Messages: Remove received/sent SMS messages
  - Delete Campaign: Remove SMS campaigns
- **Group**: Manage WhatsApp groups and contacts
- **Server**: Get server information
- **Validation**: Validate phone numbers

## Requirements

- n8n instance (self-hosted or cloud)
- Valid Zender WhatsApp API account and credentials

## License

MIT

## Credits

Based on the original work by [Umair Abu Bakkar](https://github.com/umairabubakkar/n8n-nodes-zender)