kavenegar

Kavenegar integration for n8n workflow automation

Package Information

Released: 9/18/2025
Downloads: 0 weekly / 17 monthly
Latest Version: 0.1.0
Author: Reza Mahdi Hadi

Documentation

n8n-nodes-kavenegar

npm version
License: MIT

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

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-kavenegar
  4. Agree to the risks of using community nodes
  5. Select Install

After installation restart n8n to see the new nodes.

Configuration

Credentials Setup

  1. In n8n, go to Credentials > Add Credential
  2. Search for "Kavenegar API"
  3. Enter your Kavenegar API key
  4. 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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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


Made with ❤️ for the n8n community

Discussion