Bot Says

Sends a written text during the interaction with the user.

Starting from IBM RPA 23.0.3, support for Interactive Voice Response (IVR) is removed from this command due to the removal of IVR. For more information, see Removed.

Command availability: IBM RPA SaaS and IBM RPA on premises

Script syntax

IBM RPA's proprietary script language has a syntax similar to other programming languages. The script syntax defines the command's syntax in the script file. You can work with this syntax in IBM RPA Studio's Script mode.

botSay [--language(Language)] --text(String)

Input parameters

The following table displays the list of input parameters available in this command. In the table, you can see the parameter name when working in IBM RPA Studio's Script mode and its Designer mode equivalent label.

Designer mode label Script mode name Required Accepted variable types Description
Language language Optional Language Language used for chat communication. You can use the Create a Language command to create the Language variable required for this parameter.
Text text Required Text Text to send.

Example

The Bot Says command writes the phrase "Welcome to IBM!" at the beginning of the interaction with the user, using the "Chat" type of communication. The Delay command is used so that it is possible to see what the bot says.

defVar --name language --type Language
createLanguage --culture "en-US" language=value
botConnect --type "Chat" --language ${language} --autoanswer  --timeout "00:01:00"
	botSay --language ${language} --text "Welcome to IBM!" --textformat "Markdown"
	delay --timeout "00:00:03"
botDisconnect