Skip to content
English
  • There are no suggestions because the search field is empty.

Using Interpolations and Curly Braces in Communication Channels

Curly braces `{}` are used in programming to group certain parts of code together. For example, they are used to denote the beginning and end of a function, or to encapsulate statements within a loop. This helps the program understand which code is meant to be executed together. Curly braces can be used in different communication channels throughout Pisano.

SMS Channel

In the SMS channel, the primary interpolations used for message sending are:

  • {{flow_url}}: Adding this interpolation to a message template prevents other interpolations from working. If not added, the system automatically appends it at the end of the template.
  • {{message}}: The content of the message to be sent.
  • {{phone}}: The customer's phone number.
  • {{external_id}}: An external identifier unique to the customer.
  • {{uuid}}: A unique identifier generated instantly by the system.

For masked display of name and surname information, the following formats can be used:

  • {{name | mask}}: Masks all but the first letter of each word with asterisks (e.g., H***** S* M******).
  • {{name | mask: 2}}: Leaves the first two letters of each word visible, masking the rest with asterisks (e.g., Ha**** S* Ma*****).

Email Channel

Interpolations available in the email channel:

  • {{survey_url}}: The original link required for completing a survey.
  • {{dispatch_url}}: Used to track log changes of a created dispatch.
  • {{unsubscribe_link}}: Used when a customer wishes to opt out of the system.
  • {{customer}}: Information about the customer to whom the email is sent.
  • {{question}}: The first question presented in the survey.
  • {{question_options}}: The options for the question.
  • {{short_survey_url}}: A shortened link for the survey (active when the mail provider's short URL option is enabled).
  • {{uuid}}, {{external_id}}, {{dispatch_id}}: Unique identifiers generated by the system, and external identifiers.
  • {{body}}, {{html_body}}, {{text_body}}: Content of the mail, varying according to the format.
  • {{access_token}}: A verification method used for survey access.
  • {{custom_attrs}}: Custom attribute fields of the customer.
  • {{subject}}: The subject of the email.

FTP and HTTP Clients

  • Basic fields for FTP SMS Worker and FTP SMS/Client include: "message", "phone", "external_id", and "flow_url".
  • Basic fields for Generic HTTP Mail Client and SOAP Client include system-generated identifiers like uuid, dispatch_id, external_id, along with customer information.

Example Usages and Template Language Options

  • QNB SMS Example: Uses "{{time}}" and "{{date}}" for time and date information.
  • Generic HTTP Mail Client: Depending on the mail content format, uses variables like body, html_body, or text_body.
  • Template Language Options: Templates typically use the Liquid Template, which can be checked through the Liquid template language link.