The Mobile & Digital Assistant Blog covers the latest in mobile and conversational AI development and engagement

TechExchange - Using Apache Freemarker Expression in Oracle Intelligent Bots

Frank Nimphius
Master Principal Product Manager

Article by Frank Nimphius, February 2018

As a bot designer, how do you deal with the problem of users providing a "Yes" where your data logic expects a "yes"? Or, how do you replace a null value with a default string? And do you know how to trim blank space from a user input? What about sorting arrays? Rounding numbers?

Well, as an Oracle Intelligent Bots expert, custom component certainly came to mind. However, there is another solution for this, one that doesn't require a HTTP roundtrip to a remote component service, and it is also easier to implement.

Oracle Intelligent Bots dialog flow uses Apache FreeMarker in BotML to access data values from variables. However, there is a lot more that bot designers can use Apache FreeMarker Template Language (FTL) (http://freemarker.org/docs/ref.html) for.

This article explains how to use ApacheFreeMarker in BotML and shows examples for selected built-in FTL expressions. 

Update note:


Oracle Intelligent Bots has been rebranded Oracle Digital Assistant to better describe its capabilities beyond a standard chatbot. To learn more, visit cloud.oracle.com/digital-assistant

Using Apache Freemarker Expression Language in Oracle Intelligent Bots

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.