Oracle Magazine, July/August 2019
Mobile APPLICATION DEVELOPER What youve seen In this section youve seen part of the solution for implementing alternating bot responses in Oracle Digital Assistant For each message label or prompt to be displayed in a conversation you create multiple resource bundle entries The resource bundle keys defined for a dialog flow state differ by a consecutive number The other part of the solution is the generation of a random number that determines the prompt label or message to display at runtime IMPLEMENTING YOUR FIRST ALTERNATING BOT MESSAGE In this section you are going to implement an alternating bot message for the welcome message Ensure that you have the dialog flow builder open by selecting the Flows icon as instructed in step 30 31 Place the cursor into line 14 32 Ensure that the cursor is vertically aligned with the returnDate variable in line 13 If needed use blank spaces to align the cursor 33 Create a resource bundle variable rb of type resourcebundle To do this type rb ORACLE MAGAZINE JULY AUGUST 2019 46 resourcebundle 34 Go to line 20 and change the value of the text property from Hi profile firstName I am Up n Away your travel booking assistant Lets get your booking rolling to rb welcome_ prompt now long 4 1 profile firstName
You must have JavaScript enabled to view digital editions.