MeliPayamak icon

MeliPayamak

Send SMS using MeliPayamak service

Overview

This node integrates with the MeliPayamak SMS service to send SMS messages. It supports sending regular text messages to one or multiple recipients and sending pattern-based messages using predefined templates with variable substitution. This node is useful for automating SMS notifications, alerts, marketing messages, or any scenario requiring programmatic SMS sending.

Use Case Examples

  1. Sending a regular SMS to multiple phone numbers with a custom message.
  2. Sending a pattern-based SMS using a predefined template code and dynamic variables for personalized messages.

Properties

Name Meaning
Send Type Determines whether to send a regular text message or a pattern-based message using a template.
From Number The phone number from which the SMS will be sent (required for regular messages).
To Recipient phone number(s) for regular messages, multiple numbers separated by commas.
Message The text content of the SMS message to send (required for regular messages).
To (Pattern) Recipient phone number for pattern-based messages.
Pattern Code The pattern code defined in the MeliPayamak panel for template-based messages.
Pattern Variables Key-value pairs for variables to substitute in the pattern-based message template.
Additional Fields Additional optional fields for regular messages, such as whether to send the SMS as a flash message.

Output

JSON

  • success - Indicates if the SMS sending operation was successful.
  • response - The raw response data returned from the MeliPayamak API.
  • from - The sender phone number used for the SMS (for regular messages).
  • to - The recipient phone number(s) for the SMS.
  • message - The text message sent (for regular messages).
  • type - The type of SMS sent, either 'regular' or 'pattern'.
  • patternCode - The pattern code used for pattern-based messages.
  • variables - The list of key-value pairs used as variables in the pattern-based message.

Dependencies

  • MeliPayamak API service
  • Requires API credentials (username and password) for authentication

Troubleshooting

  • Common issues include invalid credentials, incorrect phone number formats, or network connectivity problems.
  • Error messages from the MeliPayamak API are surfaced with details; ensure the API credentials are correct and the pattern code exists in the MeliPayamak panel.
  • If sending to multiple recipients, ensure phone numbers are comma-separated and properly formatted.

Links

Discussion