From Bright Pattern Documentation
Jump to: navigation, search
(→‎Settings: adds info that 'message' text can be formatted with HTML)
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<translate>= Send Message=
 
The Send Message scenario block is used to send a text message to a chat customer or to a mobile customer via SMS.
 
  
 +
= Send Message+ =
 +
The Send Message+ scenario block sends messages in voice or chat scenarios. Messages are sent over chat channels like SMS and messenger. Each channel provides similar options with variations explained in each channel's section.
  
[[File:Send-Message-Block.png|225px|Scenario Builder Send Message scenario block]]
+
;Voice scenarios
 +
:* [[#Voice | Voice]]  
  
 +
;Chat scenarios
 +
:* [[#Initial | Initial]]
 +
:* [[#SMS | SMS]]
 +
:* [[#Messenger | Messenger]]
  
== Conditional Exits ==
+
==Voice==
The Send Message block may take the ''Send Error'' conditional exit if the attempt to send a text message returned an error. This conditional exit may be used for SMS messages only.
 
  
 +
The Send Message+ block for voice scenarios sends an SMS message to a phone number if the access number associated with the scenario is SMS capable.
 +
{{Image750|2022-12-21_11_43_15-send-message-block-messengers-voice.png|The Send Message+ block for Voice in Scenario Builder.}}
  
[[File:Send-Message-Send-Error.png|300px|thumbnail|center|Scenario Builder Send Message conditional exit]]
+
===Conditional Exits===
 +
 
 +
:; Send error
 +
:: Allows further processing if the attempt to send a text message returns an error.
  
 +
===Settings===
 +
:; Message
 +
:: The text to send via SMS. Variables in the $(varname) format can be used. HTML tags in the ''Message'' text will not be interpreted as markup and will appear as plain text to the recipient.
  
== Settings ==
+
:; Send to this number
=== Media type ===
+
:: The number to which the SMS message will be sent. Variables in the $(varname) format can be used.
When used in a chat scenario, the Send Message block can be used to send either a chat or an SMS message. For the ''Media type'' setting, select either CHAT or SMS.
 
  
=== Message ===
+
==Initial==
''Message'' is the text of the message to be sent to the customer. Variables in the ''$(varname)'' format can be used in the message text.
 
  
=== Send to this number ===
+
When channel type Initial is selected, the Send Message+ scenario block for chat scenarios sends a message using the channel type over which the interaction originated. The block can be configured to wait for a file and to time out. The conditional exits, '''Timeout''' and '''File Received''' can be used for further processing, like setting up a loop to receive multiple files.
If sending an SMS message, specify the number to which the text message will be sent. Variables in the ''$(varname)'' format can be used. Note that in order for this option to work in voice scenarios, an [[Contact-center-administrator-guide/Messaging#SMS.2FMMS_access_numbers|SMS/MMS access number]] should be configured in your [[Contact-center-administrator-guide/Messaging|Messaging/Chat]] entry.
 
  
 +
{{Note | If a chat scenario uses the Initial and SMS channel, the system ensures the Initial channel is the default primary.
  
[[File:Send-Message-Settings.png|350px|thumbnail|center|Scenario Builder Send Message scenario block settings]]
 
  
 +
Examples:
 +
* Using the Send Message+ block to send an SMS during a web chat interaction ensures the SMS channel is used for that block only.
 +
* If the chat originated as an SMS interaction, SMS is considered the Initial channel and all Send Message+ messages will be SMS.
 +
}}
  
<center>[[scenario-builder-reference-guide/SearchDirectory|< Previous]]  | [[scenario-builder-reference-guide/SetAgentState|Next >]]</center>
+
{{Image750|2022-12-21_11_43_04-send-message-block-messengers-initial.png|The Send Message+ block in Scenario Builder for Chat set to the '''Initial''' chat channel, with '''Wait for Response''' and '''Expect a File''' checked, showing the '''Send Error''', '''Timeout''' and '''File Received''' conditional exits.}}
</translate>
+
 
 +
===Conditional Exits===
 +
 
 +
:; Send error
 +
:: Allows further processing if the attempt to send a text message returns an error.
 +
 
 +
===Settings===
 +
:; Message
 +
:: The text to send. Variables in the $(varname) format can be used.
 +
 
 +
:: How HTML tags in the ''Message'' text are rendered depends on the initial channel:
 +
::* HTML tags will be rendered as markup if the initial messaging channel is [[Chat-widget-configuration-guide/UserInterfaceOverview| Chat Widget]].
 +
::* HTML tags will be rendered as plain text if the initial messaging channel is SMS.
 +
::* Other messaging channels may or may not support the rendering of HTML tags as markup.
 +
 
 +
:; Send to this number
 +
:: The number to which the SMS message will be sent. Variables in the $(varname) format can be used.
 +
 
 +
==SMS==
 +
 
 +
 
 +
When '''channel type''' SMS is selected, the Send Message+ scenario block for chat scenarios sends a message to a number specified in the '''Send to this number''' field. The block can be configured to wait for a file and to time out. The conditional exits, '''Timeout''' and '''File Received''' can be used for further processing, like setting up a loop to receive multiple files.
 +
 
 +
{{Image750|2022-12-21_11_43_15-send-message-block-messengers-sms.png|The Send Message+ block in Scenario Builder for Chat set to the '''SMS''' chat channel, with '''Wait for Response''' and '''Expect a File''' checked, showing the '''Send Error''', '''Timeout''' and '''File Received''' conditional exits.}}
 +
 
 +
===Conditional Exits===
 +
 
 +
:; Send error
 +
:: Allows further processing if the attempt to send a text message returns an error.
 +
 
 +
:; Timeout
 +
:: Available when '''Wait for response''' is selected. Executes when the length of time specified in '''Timeout after, sec''' expires.
 +
 
 +
:; File Received
 +
:: Available when '''Expect a file''' is selected. Executes when a file is received from the user. Populates the result variable value with the file and any text message received with the file.
 +
 
 +
===Settings===
 +
:; Message
 +
:: The text to send. Variables in the $(varname) format can be used. HTML tags in the ''Message'' text will not be interpreted as markup and will appear as plain text to the recipient.
 +
 
 +
:; Send to this number
 +
:: The number to which the message will be sent. Variables in the $(varname) format can be used.
 +
 
 +
:; Wait for response
 +
:: Select to wait for an incoming chat or SMS message before sending the configured message.
 +
 
 +
:; Expect a file
 +
:: Available when '''Wait for response''' is selected. Select to wait for a file for the length of time specified in '''Timeout after, sec'''.
 +
 
 +
:; Result variable name
 +
:: Select to pass the incoming message content to the variable name defined here.
 +
 
 +
:; Timeout after, sec
 +
:: Select to set the number of seconds to wait for input before timing out.
 +
 
 +
==Messenger==
 +
 
 +
When '''channel type''' Messenger is selected, the Send Message+ scenario block for chat scenarios sends a message to the messenger address specified in the '''Messenger <nowiki>"type: address"</nowiki>''' field. The block can be configured to wait for a file and to time out.
 +
 
 +
{{LightBulb | The conditional exits, '''Timeout''' and '''File Received''' can be used to set up a loop when receiving multiple files.}}
 +
 
 +
{{Image750|2022-12-21_11_43_04-send-message-block-messengers-messenger.png|The Send Message+ block in Scenario Builder for Chat set to the '''SMS''' chat channel, with '''Wait for Response''' and '''Expect a File''' checked, showing the '''Send Error''', '''Timeout''' and '''File Received''' conditional exits.}}
 +
===Conditional Exits===
 +
   
 +
:; Send error
 +
:: Allows further processing if the attempt to send a text message returns an error.
 +
 
 +
{{Note | Messenger errors are delivered asynchronously, so the '''Send Message+''' block might not exit to the '''Send Error''' conditional exit on error, but the error details propagate to the variables ''$(sendMesageResultCode)'' and ''$(sendMesageResultBody)''. }}
 +
 
 +
:; Timeout
 +
:: Available when '''Wait for response''' is selected. Executes when the length of time specified in '''Timeout after, sec''' expires.
 +
 
 +
:; File Received
 +
:: Available when '''Expect a file''' is selected. Executes when a file is received from the user. Populates the result variable value with the file and any text message received with the file.
 +
 
 +
===Settings===
 +
:; Message
 +
:: The text to send. Variables in the $(varname) format can be used. HTML tags will be rendered as markup in [[Chat-widget-configuration-guide/UserInterfaceOverview| Chat Widget]] messages, but may be rendered as plain text in other messaging channels.
 +
 
 +
:; Messenger <nowiki>"type: address"</nowiki>
 +
:: The messenger address to which the message will be sent. Variables in the $(varname) format can be used.
 +
 
 +
:; Wait for response
 +
:: Select to wait for an incoming chat or SMS message before sending the configured message.
 +
 
 +
:; Expect a file
 +
:: Available when '''Wait for response''' is selected. Select to wait for a file for the length of time specified in '''Timeout after, sec'''.
 +
 
 +
{{Note |
 +
Telegram, Facebook Messenger, and WeChat change the names of image files to auto-generated strings when they're sent. The original file names aren't propagated, although the file extension remains.
 +
}}
 +
 
 +
:; Result variable name
 +
:: Select to pass the incoming message content to the variable name defined here.
 +
 
 +
:; Timeout after, sec
 +
:: Select to set the number of seconds to wait for input before timing out.
 +
<br>

Latest revision as of 07:44, 6 September 2024

• 5.19 • 5.3 • 5.8


Send Message+

The Send Message+ scenario block sends messages in voice or chat scenarios. Messages are sent over chat channels like SMS and messenger. Each channel provides similar options with variations explained in each channel's section.

Voice scenarios
Chat scenarios

Voice

The Send Message+ block for voice scenarios sends an SMS message to a phone number if the access number associated with the scenario is SMS capable.

The Send Message+ block for Voice in Scenario Builder.

Conditional Exits

Send error
Allows further processing if the attempt to send a text message returns an error.

Settings

Message
The text to send via SMS. Variables in the $(varname) format can be used. HTML tags in the Message text will not be interpreted as markup and will appear as plain text to the recipient.
Send to this number
The number to which the SMS message will be sent. Variables in the $(varname) format can be used.

Initial

When channel type Initial is selected, the Send Message+ scenario block for chat scenarios sends a message using the channel type over which the interaction originated. The block can be configured to wait for a file and to time out. The conditional exits, Timeout and File Received can be used for further processing, like setting up a loop to receive multiple files.


Info.40x40.png If a chat scenario uses the Initial and SMS channel, the system ensures the Initial channel is the default primary.


Examples:

  • Using the Send Message+ block to send an SMS during a web chat interaction ensures the SMS channel is used for that block only.
  • If the chat originated as an SMS interaction, SMS is considered the Initial channel and all Send Message+ messages will be SMS.


The Send Message+ block in Scenario Builder for Chat set to the Initial chat channel, with Wait for Response and Expect a File checked, showing the Send Error, Timeout and File Received conditional exits.

Conditional Exits

Send error
Allows further processing if the attempt to send a text message returns an error.

Settings

Message
The text to send. Variables in the $(varname) format can be used.
How HTML tags in the Message text are rendered depends on the initial channel:
  • HTML tags will be rendered as markup if the initial messaging channel is Chat Widget.
  • HTML tags will be rendered as plain text if the initial messaging channel is SMS.
  • Other messaging channels may or may not support the rendering of HTML tags as markup.
Send to this number
The number to which the SMS message will be sent. Variables in the $(varname) format can be used.

SMS

When channel type SMS is selected, the Send Message+ scenario block for chat scenarios sends a message to a number specified in the Send to this number field. The block can be configured to wait for a file and to time out. The conditional exits, Timeout and File Received can be used for further processing, like setting up a loop to receive multiple files.

The Send Message+ block in Scenario Builder for Chat set to the SMS chat channel, with Wait for Response and Expect a File checked, showing the Send Error, Timeout and File Received conditional exits.

Conditional Exits

Send error
Allows further processing if the attempt to send a text message returns an error.
Timeout
Available when Wait for response is selected. Executes when the length of time specified in Timeout after, sec expires.
File Received
Available when Expect a file is selected. Executes when a file is received from the user. Populates the result variable value with the file and any text message received with the file.

Settings

Message
The text to send. Variables in the $(varname) format can be used. HTML tags in the Message text will not be interpreted as markup and will appear as plain text to the recipient.
Send to this number
The number to which the message will be sent. Variables in the $(varname) format can be used.
Wait for response
Select to wait for an incoming chat or SMS message before sending the configured message.
Expect a file
Available when Wait for response is selected. Select to wait for a file for the length of time specified in Timeout after, sec.
Result variable name
Select to pass the incoming message content to the variable name defined here.
Timeout after, sec
Select to set the number of seconds to wait for input before timing out.

Messenger

When channel type Messenger is selected, the Send Message+ scenario block for chat scenarios sends a message to the messenger address specified in the Messenger "type: address" field. The block can be configured to wait for a file and to time out.


Bulb-on.50x50.png The conditional exits, Timeout and File Received can be used to set up a loop when receiving multiple files.


The Send Message+ block in Scenario Builder for Chat set to the SMS chat channel, with Wait for Response and Expect a File checked, showing the Send Error, Timeout and File Received conditional exits.

Conditional Exits

Send error
Allows further processing if the attempt to send a text message returns an error.


Info.40x40.png Messenger errors are delivered asynchronously, so the Send Message+ block might not exit to the Send Error conditional exit on error, but the error details propagate to the variables $(sendMesageResultCode) and $(sendMesageResultBody).


Timeout
Available when Wait for response is selected. Executes when the length of time specified in Timeout after, sec expires.
File Received
Available when Expect a file is selected. Executes when a file is received from the user. Populates the result variable value with the file and any text message received with the file.

Settings

Message
The text to send. Variables in the $(varname) format can be used. HTML tags will be rendered as markup in Chat Widget messages, but may be rendered as plain text in other messaging channels.
Messenger "type: address"
The messenger address to which the message will be sent. Variables in the $(varname) format can be used.
Wait for response
Select to wait for an incoming chat or SMS message before sending the configured message.
Expect a file
Available when Wait for response is selected. Select to wait for a file for the length of time specified in Timeout after, sec.


Info.40x40.png

Telegram, Facebook Messenger, and WeChat change the names of image files to auto-generated strings when they're sent. The original file names aren't propagated, although the file extension remains.


Result variable name
Select to pass the incoming message content to the variable name defined here.
Timeout after, sec
Select to set the number of seconds to wait for input before timing out.


< Previous | Next >