Package Information
Released: 9/18/2025
Downloads: 0 weekly / 17 monthly
Latest Version: 0.1.0
Author: Reza Mahdi Hadi
Documentation
n8n-nodes-kavenegar
A comprehensive n8n community node package for integrating with Kavenegar SMS services. This package provides both action nodes and trigger nodes to send SMS, handle OTP verification, TTS calls, and receive SMS messages in your n8n workflows.
Features
📤 Kavenegar SMS Node
- Send SMS: Send text messages to single or multiple recipients
- OTP Verification: Send OTP codes using predefined templates with up to 3 tokens
- Text-to-Speech (TTS): Make TTS calls to phone numbers
📥 Kavenegar SMS Trigger Node
- Receive SMS: Trigger workflows when SMS messages are received
- Flexible Filtering: Filter by sender phone number and message content
- Polling Support: Configurable polling intervals for checking new messages
Installation
Install from npm
npm install n8n-nodes-kavenegar
Install in n8n
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-kavenegar - Agree to the risks of using community nodes
- Select Install
After installation restart n8n to see the new nodes.
Configuration
Credentials Setup
- In n8n, go to Credentials > Add Credential
- Search for "Kavenegar API"
- Enter your Kavenegar API key
- Get your API key from Kavenegar Panel
- Save the credentials
Node Configuration
Kavenegar SMS Node
Send SMS Operation:
- Receptor: Phone number(s) to send SMS to (e.g., "09123456789" or "09123456789,09123456788")
- Sender: Your Kavenegar sender number or sender ID
- Message: Text message content
OTP Verification Operation:
- Receptor: Phone number to send OTP to
- Token: Primary OTP token/code
- Token 2 (Optional): Secondary token for multi-parameter templates
- Token 3 (Optional): Third token for complex templates
- Template: Name of your predefined OTP template in Kavenegar panel
TTS Operation:
- Receptor: Phone number to call
- TTS Message: Text message to be converted to speech
Kavenegar SMS Trigger Node
- Line Number: Your Kavenegar line number for receiving SMS
- Poll Interval: How often to check for new messages (in seconds, default: 30)
- Sender Filter (Optional): Only trigger for SMS from specific phone number
- Message Contains (Optional): Only trigger when message contains specific text
Usage Examples
Example 1: Send Welcome SMS
{
"operation": "sendSms",
"receptor": "09123456789",
"sender": "10008663",
"message": "Welcome to our service! Your account has been created successfully."
}
Example 2: Send OTP Code
{
"operation": "otpVerification",
"receptor": "09123456789",
"token": "123456",
"template": "verify-code"
}
Example 3: Multi-Token OTP
{
"operation": "otpVerification",
"receptor": "09123456789",
"token": "John",
"token2": "123456",
"token3": "5",
"template": "user-verification"
}
Example 4: TTS Call
{
"operation": "tts",
"receptor": "09123456789",
"ttsMessage": "Hello, this is an automated call from our system."
}
API Response Format
All operations return structured data including:
{
"response": {
"return": {
"status": 200,
"message": "تایید شد"
},
"entries": [...]
},
"sent": true,
"receptor": "09123456789",
"sender": "10008663",
"message": "Your message content"
}
Error Handling
The nodes include comprehensive error handling:
- Invalid credentials
- Network connectivity issues
- API rate limiting
- Invalid phone numbers
- Template not found errors
Enable "Continue on Fail" in node settings to handle errors gracefully in your workflows.
Requirements
- n8n version 0.174.0 or later
- Node.js 20.15 or later
- Valid Kavenegar account and API key
Development
Prerequisites
- Node.js 20.15+
- npm
- n8n installed globally
Setup
git clone https://github.com/rezamh/n8n-nodes-kavenegar.git
cd n8n-nodes-kavenegar
npm install
Build
npm run build
Lint
npm run lint
npm run lintfix # Auto-fix issues
Local Testing
# Link the package locally
npm link
# In your n8n installation directory
npm link n8n-nodes-kavenegar
# Restart n8n
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Author
Reza Mahdi Hadi
- Email: reza.mh67@gmail.com
- GitHub: @rezamh
Made with ❤️ for the n8n community