Using custom parameters in IBM RPA on premises
You can deploy a chatbot on IBM RPA on premises. Learn how to send custom parameters to the chatbot using the application programming interface (API). This procedure refers to the IBM RPA on premises offering.
About this task
You have the syntax below to send customized parameters:
https://<BOTAPIADDRESS>/integration/<BOTHANDLE>?sampleparam=<SAMPLEPARAM>&?username=<USERNAME>&?userid=<USERID>
where:
sampleparam=<SAMPLEPARAM>
The customized parameters can be more than one. Custom parameters can be every parameter you send by the syntax, except username
and userid
. You can get the parameter
data in your chatbot script using the ${varName.From.Properties}
variable.
username=<USERNAME>
The user name. You can get the username data in your chatbot script using the ${varName.From.Name}
variable.
userid=<USERID>
The user identifier. You can get the user identifier data in your chatbot script using the ${varName.From.Id}
variable.
The varName
variable has the Chat Data
type and can be getting from the output parameter of the Connect to Chatbot command.
Before you begin
Take the following actions:
- Create a chatbot instance. See Creating a chatbot instance for instructions.
- Create a chat mapping for your IBM RPA chatbot script. See Creating a chat mapping for instructions.
Procedure
Follow the procedures to set the customized parameters. Replace the labels with the data you want to send.
-
Paste the following syntax in your browser address bar:
https://<BOTAPIADDRESS>/integration/<BOTHANDLE>?sampleparam=<SAMPLEPARAM>&?username=<USERNAME>&?userid=<USERID>
-
Enter the Bot API address where is
<BOTAPIADDRESS>
. -
Enter the bot handle where is
<BOTHANDLE>
. Use the same bot handle you use to create your chatbot instance. -
Optional: Change the
sampleparam
parameter to the name you want to call it. -
Optional: Enter the value of the customized parameter where is
<SAMPLEPARAM>
. -
Optional: Enter the user name where is
<USERNAME>
. -
Optional: Enter the user identification where is
<USERID>
.