Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

SendTextMessageStepConfigDto

Configuration for Send Text Message workflow steps: who to text on their mobile, on which channel, and what
(docs/features/WorkflowTextMessages/PLAN.md). SMS sends a practice text template or the step's own text, exactly
one. WhatsApp sends an approved WhatsApp template, with each of its variables mapped to a token expression.

Properties

Name Type Description
channelenum

Sms WhatsApp

Sms WhatsApp

isPracticeRoutedboolean

The practice's default: the practice's text routing (SMS only, WhatsApp for known numbers, or try WhatsApp first)
chooses the channel for each number when the step runs. The step then needs both an SMS text (templateCode or
body) and a WhatsApp template with its variables; a number that can't have the WhatsApp message gets the SMS.

The practice's default: the practice's text routing (SMS only, WhatsApp for known numbers, or try WhatsApp first)
chooses the channel for each number when the step runs. The step then needs both an SMS text (templateCode or
body) and a WhatsApp template with its variables; a number that can't have the WhatsApp message gets the SMS.

recipientContactTypesarray of enum

The client contact types to text, on each contact's mobile; at least one. One number under two types gets one
text.

Main Billing Payroll Accounts Director Psc Secretary Trustee

The client contact types to text, on each contact's mobile; at least one. One number under two types gets one
text.

Main Billing Payroll Accounts Director Psc Secretary Trustee

templateCodestring

SMS: the practice text template to send. Exactly one of this and body.

SMS: the practice text template to send. Exactly one of this and body.

bodystring

SMS: the text, at most 1,600 characters, with the step emails' tokens ({{ Client.* }}, {{ Task.* }},
{{ Contact.* }} for the person receiving it, {{ Url }} for the practice's portal). Exactly one of this and
templateCode.

SMS: the text, at most 1,600 characters, with the step emails' tokens ({{ Client.* }}, {{ Task.* }},
{{ Contact.* }} for the person receiving it, {{ Url }} for the practice's portal). Exactly one of this and
templateCode.

whatsAppTemplateIdstring

WhatsApp: the WhatsApp template to send, by its id from the WhatsApp templates list. Its live version is sent, so
it must be approved and the step must map exactly its variables; a change waiting for Meta is ignored. Required on
WhatsApp and on the practice's default, not allowed on SMS.

WhatsApp: the WhatsApp template to send, by its id from the WhatsApp templates list. Its live version is sent, so
it must be approved and the step must map exactly its variables; a change waiting for Meta is ignored. Required on
WhatsApp and on the practice's default, not allowed on SMS.

contentVariablesobject

WhatsApp: each of the template's variables ("1", "2"…) to the text rendered into it for each recipient, with the
same tokens as body. Every variable of the template must be mapped.

WhatsApp: each of the template's variables ("1", "2"…) to the text rendered into it for each recipient, with the
same tokens as body. Every variable of the template must be mapped.

JSON Example

{
  "channel": "Sms",
  "isPracticeRouted": false,
  "recipientContactTypes": [
    "Main"
  ],
  "templateCode": "string",
  "body": "string"
}

Contained in Schemas