cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Launchpad ChatBot Integration

S0019300750
Contributor
0 Kudos

Hello,

I am trying to integrate ChatBot (lets say recast.ai) with Fiori launchpad. We don't want to use tile and rather want to integrate tightly using Fiori launchpad plugins.

We also don't want to build chatbot front-end in SAPUI5 rather want to use already developed UI (if possible). We want to avoid adding custom icon to header and launch chatbot in separate window.

I tried almost all options- footer (see below code line), subheader.

oRenderer.setShellFooter("sap.ui.core.HTML", { content: "<script src='https://****.js'" + "token='******'" + "id='********'" + "></script>" });

But it does not work as expected. Any suggestions on how to integrate it?

Regards,

Vinod Patil

Accepted Solutions (0)

Answers (2)

Answers (2)

MikeDoyle
Active Contributor

Hi Vinod, what do you mean exactly by 'does not work as expected'? I think a launchpad plugin would be a good solution for this, but if you are looking to add a large control to the launchpad I don't think you'll be able to do that using the renderer API. That API is just meant for adding small buttons or links. If you want something like a full screen app (for your chatbot) then you could just add a button using the renderer and then trigger semantic navigation to the app when the user clicks that button.

Off-the-shelf chatbots can often be added by including a JS script, perhaps a single line of code. That chatbot will appear in a dialog, which the user can close. It doesn't appear inside the launchpad.

I know that phil.cooley has done this before, at least as a demo

In the init function of your plugin you could add a single line:

jQuery.sap.includeScript("......");
MikeDoyle
Active Contributor

PS If you are on a late enough UI5 release you can use the includeScript command to avoid jQuery dependency

pjcools
Active Contributor
0 Kudos

mike.doyle4 is spot on here vinod.patil. When I implemented a POC for a chatbot I simply added the jQuery.sap.includeScript("......");

to the init function as Mike suggested above. I'm not a coder as such but ended up doing this pretty easily and used the shell plugin and it did work successfully. I would suggest doing the same thing here as I know it works.