![]() ![]() It’s important to know that “Actions” just executed when all requirements are met.įill with URL for your XSJS file, as follow:įor this case, we use “Basic Authentication” (That’s must to be configured in your database) In “Actions” Tab click on “Add new message group” In the next screen, select “Send Message”, after select “Text” and input a message asking for a location, and click “Save”: Otherwise we must set up an action if location is missing.Ĭlick on arrow on right side of location and click on “+ New Replies” in the same line that is write “if #location is missing”. It means that when user speaks some “location”, bot will save this information in memory, as “location”.Īnd just start actions for this skill if requirements are complete. In “Requirements” tab, input fill as follow: In “Triggers” tab, fill field “If” with (It means that all times that the intent “ask-customer” happens, skill “ask-customers” will be triggered. “ask-customers”).Ĭlick in you new skill and after, goes to tab “Triggers” Put the maximum expressions that you could (SAP recommends about 30-40 expressions)Ĭlick on “+ Create Skill” and input a name for your skill (e.g. In tab “Train” you have to create or search for intents…įor this case, choose existent intents “Greetings” and “Goodbye”.Ĭlick on “+ Create” and input Intent name as bellow: Choose your options for “Data Policy” and “Bot visibility”.hanabot), fill the description and Topics if you want (e.g. But here I´ll show step-by-step how to create a simple Bot to consume data in SAP Hana database using a XSJS service.Īccess your account in SAP CAI and Create a new Botįor this sample we will use just “Greetings” skill. ![]() If you did the tutorial available in CAI (How to create your first bot) you know how many simple is to create a Bot using CAI. ![]() How to create a Bot in SAP Conversational AI? Important, the response must be a json format, with the following format (this format is in SAP CAI Documentation: You have to return a JSON exactly as described in documentation Resp = "In " + locl + " we have " + tot + " customers" Pstmt = conn.prepareStatement('SELECT COUNT(*) FROM "alexa"."alexa.data::customer_data.Customers" WHERE "COUNTRY" = \'' + locl + '\' ') get_customers.xsjs), this service will be responsible to get data in your table e send data back to your Bot, in a Webhook that we will create soon. Start you Hana database, open SAP HANA Web-Based Development Workbench, or connect with Eclipse if you prefer.Ĭreate a new Schema and a new table in Hana as follow: namespace 'alexa'Ĭreate a new XSJS file (e.g. In “SAP HANA/ SAP ASE > Databases & Schemas”, create your Hana MDC database and setup all passwords for your accounts. Step-by-step Create a new Hana database, tables and XSJSĪccess your SAP Cloud Platform trial, select your region and follow this steps: Echo Dot, Echo Spot, etc.) don’t worry, you can do these tests in a simulator available in Alexa Developer cockpit. Create an Amazon Alexa Developer account ( Link here) – If you don’t have an Alexa device (e.g.Do this first tutorial in SAP CAI (It’s important to understand how to create a bot, and it’s very simple and fast) (link).Create a free account in SAP Conversational AI.( link here) – We used Neo Region, but you´re free to use anyone. Create a free trial account in SAP Cloud Platform.In the end of this blog I’ll show a video with this same bot working in Telegram and Webchat in Fiori Launchpad.įor this development you will need to do the steps above: This video is about this POC working in a presentation in SAP Inside Track São Paulo, Brazil, realized in March 23, 2019. ![]() ( GitHub link). Special thanks to Danilo Jacinto that developed this app. Our focus here is not in Fiori development, but if you would like to see how this app works or use it for test, it’s available here. In this bog you will learn how to create a Bot in SAP Conversational AI integrated with Alexa (using an Echo Dot 3 rd gen) to get data in SAP Hana database.įiori application that was used here, is just to show all information that we are asking to Bot and give a visual feedback to user. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |