TEXTMSG (Digital Scripts)

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

Icon of TextmsgDigital: magenta speech bubble with three dots

向联系人发送基于文本的消息。 数字 Textmsg 操作支持 富媒介Closed 数字消息传递中的元素,如按钮、图片、菜单和选项选取器。 内容。 如果您使用的数字频道支持富媒体内容,则可以在发送的消息中使用这些内容。 富媒体内容包括按钮、轮播和列表选取器等。

依赖关系

支持的脚本类型

Icon of purple computer monitor with a mobile device overlapping its lower right corner

Digital

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

消息 The text of the message you want to send. You can use a variablefor this field.
消息格式

选择您要发送的消息格式。 选项包括:

  • PromptSequence:如果要以在代码片段中构建的 JSON 形式发送富媒体,请选择此选项。 有关详细信息,请参阅“依赖关系”部分。
  • 文本:如果该消息是纯文本,请选择此选项。 这是默认设置。
  • JSON:如果通过 GetRichMessage操作发送富媒体,请选择此选项。 有关详细信息,请参阅“依赖关系”部分。
消息发送者

内部使用。

消息状态

消息的状态。从下拉列表中选择一个选项。选项包括待定、升级、已解决和打开。默认值为待定。

消息作者

消息的发送者。从下拉列表中选择一个选项。选项为系统和所有可以发送数字消息的坐席。默认值为系统。

消息状态

消息的状态。从下拉列表中选择一个选项。选项包括待定、升级、已解决和打开。默认值为待定。

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认

Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined.

Error

Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem.

脚本示例

这是一个示例,说明如何在脚本中使用此操作。 它并不是一个完整的脚本。 可能还需要编写其他脚本。

在此示例中,TEXTMSG 的说明文字为 newWelcomeMsg。该脚本展示了如何从聊前调查中捕获值,设置 TEXTMSG 所使用的变量值,然后将联系人Closed 与联络中心的坐席、IVR 或机器人交互的人员。发送给坐席。

Sample script showing a digital live chat using the TEXTMSG action.

下载此脚本。