Actions21
- پیامک | Message Actions
- پیام صوتی | Voice Actions
- حساب کاربری | Account Actions
- گزارش و صندوق ورودی | Report & Inbox Actions
- پترن | Pattern Actions
- دفترتلفن | Phonebook Actions
پیامک | Message → ارسال پترن | Send Pattern
AI-generatedSummary
Send a transactional SMS using an approved pattern to a single recipient via the Farazsms service.
Inputs
- Sender Line Name or ID — The sender line number to use for sending. This is required by the API. Leave empty to use the default sender line from credentials. You can choose from the loaded list or specify an ID via expression.
- Pattern Code Name or ID (required) — The code of an active, approved pattern to send the message with. Choose from the list of active patterns or specify an ID via expression.
- Recipient (required) — The recipient's mobile number, which must exactly match the 09xxxxxxxxx format.
- Pattern Parameters (required) — A JSON object specifying the values for pattern variables. Keys must match the variables defined in the pattern.
- Number Format — Specify how numbers in the message are formatted: either English or Persian numerals.
Output shape
The operation returns a single response object per execution item, indicating success and details of the send operation.
If the send is successful, the response contains a 'success: true' JSON object with any returned data from the API. If it fails, the node throws an error unless 'Continue On Fail' is enabled, in which case it returns a JSON object with 'success: false' and an error message.
Examples
Example 1: Send a pattern SMS to a recipient
Specify the sender line (or leave empty to use default), select an active pattern code, provide the single recipient's number, and supply JSON-formatted parameters matching the pattern variables. Optionally choose the number format (English or Persian). The operation sends a transactional pattern-based SMS to the recipient.