You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to randomize bot response in small talk?

Received Response
22
Views
1
Comments

I was following this blog to create a randomized bot response

TechExchange Quick-Tip: How To Create Randomized Bot Responses Using Resource Bundles in Oracle Digital Assistant

So I created messages in my resource bundle (yes I realize the _00 is not really useful .. I also noticed you cannot remove keys from the resource bundle once you've created them :-( )


Create a flow that handles a specific intent to respond on personality (000 to 003)


But I get this error


Now to show you it should work I've changed the PersonalizeMsg to this ..

Testing

Personality_00${.now?long % 4}


Demo

0: ${rb('Personality_000')}

1: ${rb('Personality_001')}

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!