Skip to main content

Posts

Showing posts from August, 2018

Chatbots: What time is it?

Just a short blogpost describing a solution that I needed for the bot that I'm currently developing. This bot has a typical requirement doing different things during office hours and after closing time. As such I need to know when the user is invoking the bot. Here's how I ended up doing this. What time is it? The developer guide has a section on how to use Built-In FreeMarker Date Operations (see resources below). That is a very resource. I started with using the 'now'  variable, combined with date time. That should return me exactly what I want. So in oBotML that looks like: Unfortunately when I use 'now' to get access to the date-time, it will return the date-time of the server that hosts the actual Bot. This means I cannot use that date-time because it is not the correct date/time of the user's location. After doing a bit of research, I found that the profile property enables your bot to recognise a user’s name, local, and local time.  Alt

JET 5.1: How to integrate a chatbot in your JET application.

Recently I have been working on a customer chatbot project. Although it was not a direct requirement, I decided to look into embedding the chatbot in a web application too. You will never know what the future brings. It struck me that is I could not find any blogposts related to this topic. The only thing is a youtube video by Oracle PM (see resources below) describing how to do this. There can be several reasons as why this has not been blogged about: Nobody is doing chatbot integration in a Javascript UI yet. Oracle Documentation is clear enough. It is very simple so why bother blogging. Anyway, despite of any of these reasons, I decide to write a post on this topic, so that at least I can refer to this myself whenever I need it. So here it is: How to integrate a chatbot in your JET application. This post does not go into the details of creating a chatbot, it just explains how to integrate one in you JET application (or any other Javascript application fo that matter). Wha