From Bright Pattern Documentation
Jump to: navigation, search
m
 
Line 1: Line 1:
<translate>= Send Message+ =
+
<translate>
The Send Message+ scenario block is used to send messages to customers. Note that the types of messages you can send changes depending on whether you are creating a voice or chat scenario.
+
= 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
 +
:* [[#Voice | Voice]]
  
[[File:Send-Message-Plus-53.PNG|225px|Scenario Builder Send Message+ scenario block]]
+
;Chat scenarios
 +
:* [[#Initial | Initial]]
 +
:* [[#SMS | SMS]]
 +
:* [[#Messenger | Messenger]]
  
 +
==Voice==
  
== Chat Scenarios ==
+
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.
=== Conditional Exits ===
+
{{Image750|2022-12-21_11_43_15-send-message-block-messengers-voice.png|The Send Message+ block for Voice in Scenario Builder.}}
The Send Message+ block for chat scenarios may take the following conditional exits.  
 
  
==== Send error ====
+
===Conditional Exits===  
A ''Send error'' conditional exit occurs if the attempt to send a text message returns an error.
+
 
 +
:; Send error
 +
:: Allows further processing if the attempt to send a text message returns an error.
  
==== Timeout ====
+
===Settings===
The Send Message+ block in chat scenarios may take the ''Timeout'' conditional exit. A Timeout occurs when the amount of time configured in [[#Timeout_after,_sec|Timeout after, sec]] has been exceeded due to no input text being received. Note that if not specified, the default timeout value is 600 seconds.
+
:; Message
 +
:: The text to send via SMS. Variables in the $(varname) format can be used.
  
=== Settings ===
+
:; Send to this number
==== Chat (send) channel ====
+
:: 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 ''Chat (send) channel'' setting, select either ''Initial'' or ''SMS''.
 
  
If the media type is set to SMS, the service on behalf of which the text messages are sent must have the "Outbound chat accounts" property specified.
+
==Initial==
  
If you want to be able to receive and process possible replies to this message, an SMS/MMS access number should be configured in your ''Messaging/Chat'' scenario entry for the given chat scenario.
+
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 your chat scenario uses both the ''Initial'' channel and the ''SMS'' channel in the same scenario, note that the system will ensure the ''Initial'' channel is the default primary. That is, using the ''Send Message+'' block to send an SMS during a web chat interaction will ensure that the ''SMS'' channel is used for that block only.
+
{{Note | If a chat scenario uses the Initial and SMS channel, the system ensures the Initial channel is the default primary.  
  
'''Note''': If the chat originated as an SMS interaction, SMS will be considered the ''Initial'' channel (i.e., all ''Send Message+'' messages will be SMS—both ''Initial'' and ''SMS''). 
 
  
==== Message ====
+
Examples:
''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.
+
* 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.
 +
}}
  
==== Send to this number ====
+
{{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.}}
If sending an SMS message, specify the number to which the text message will be sent. Variables in the ''$(varname)'' format can be used.
 
  
==== Wait for text input ====
+
===Conditional Exits===
When this checkbox is selected, the system waits for an incoming chat or SMS message before sending the configured message.
 
  
==== Result variable name ====
+
:; Send error
If ''Wait for text input'' is selected, when an incoming message is received, the contents of the message (i.e., result) will be passed to the variable name you define here.
+
:: Allows further processing if the attempt to send a text message returns an error.
  
==== Timeout after, sec ====
+
===Settings===
If ''Wait for text input'' is selected, this field allows you to define the number of seconds the system waits for text input before timing out.
+
:; Message
 +
:: The text to send via SMS. Variables in the $(varname) format can be used.
  
 +
:; Send to this number
 +
:: The number to which the SMS message will be sent. Variables in the $(varname) format can be used.
  
 +
==SMS==
  
[[File:Scenario-Send-Message-Chat-5899artemis.PNG|650px|thumbnail|center|Send Message+ settings for 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.
  
== Voice Scenarios ==
+
{{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.}}
In order to be able to send SMS, the access number associated with the given scenario entry point must have the SMS capability.
 
  
If you want to be able to receive and process possible replies to the messages sent via this scenario, you need to:
+
===Conditional Exits===
* Configure a chat service to receive such SMS replies.
 
  
* Add the number that you use to send the messages via this scenario as an SMS/MMS access number for the  Messaging/Chat entry that you will configure for the given chat service.  
+
:; Send error
 +
:: Allows further processing if the attempt to send a text message returns an error.
  
=== Conditional Exits ===
+
:; Timeout
The Send Message+ block for voice scenarios may take the following conditional exits.  
+
:: Available when '''Wait for response''' is selected. Executes when the length of time specified in '''Timeout after, sec''' expires.
  
==== Send error ====
+
:; File Received
The ''Send error'' conditional exit if the attempt to send a text message returned an error.  
+
:: 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 ===
+
===Settings===
The Send Message+ block for voice scenarios sends text messages (i.e., SMS) only.
+
:; Message
 +
:: The text to send. Variables in the $(varname) format can be used.
  
==== Message ====
+
:; Send to this number
''Message'' is the text of the SMS to be sent to the customer. Variables in the ''$(varname)'' format can be used in the message text.
+
:: The number to which the message will be sent. Variables in the $(varname) format can be used.
  
==== Send to this number ====
+
:; Wait for response
When sending an SMS message, specify the number to which the text message will be sent. Variables in the ''$(varname)'' format can be used.
+
:: 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'''.
  
[[File:CCA-Scenario-SendMessage-Voice-5399msg.PNG|650px|thumbnail|center|Send Message+ settings for voice]]
+
:; 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.
 +
 +
:; 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>
  
  
 
</translate>
 
</translate>

Latest revision as of 12:47, 21 September 2023

• 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.
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 via SMS. Variables in the $(varname) format can be used.
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.
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.
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 >