Disconnect Chatbot

Disconnects the chatbot.

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.

botDisconnect [--transfer(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
Transfer transfer Optional Text Protocol and communication channel of a specific telephony server to transfer an IVR call after disconnecting from an interaction.
Use this parameter for IVR only. The necessary settings for this parameter are made through SIP servers.

Starting from IBM RPA 23.0.3, this parameter is removed.

Example

The following example disconnects from an already established chatbot interaction.

defVar --name language --type Language
defVar --name answerText --type String
createLanguage --culture "en-US" language=value
botConnect --type "Chat" --language ${language} --timedout SubTimeout --timeout "00:00:05"
	botAsk --beep  --language ${language} --text "Hi! I can help you?" --textformat "Markdown" answerText=value
botDisconnect
beginSub --name SubTimeout
	botSay --language ${language} --text "Can i help you?" --textformat "Markdown"
endSub