Chatbot Integration with SAP Fiori On-Premise Launchpad

Discussion Forum SAP Fiori Design Chatbot Integration with SAP Fiori On-Premise Launchpad
Viewing 3 posts - 1 through 3 (of 3 total)
KPIT

Hi,

We have developed chatbot functionality for our on-premise ERP using Recast.AI.

Basically, we have deployed a plugin on the On-Premise Fiori launchpad using the following code; However the Fiori launchpad freezes after the chatbot launches and we cannot execute anything on the Fiori Launchpad. The options in SAP Note 2544600 haven’t helped us. Any idea, what could be the issue?

Is this the correct way of integrating Chatbot with an on-premise Fiori launchpad or are there any specific Fiori Design guidelines which need to be followed?

sap.ui.define([
"sap/ui/core/UIComponent",

], function (UIComponent) {
"use strict";


return UIComponent.extend("com.abc.chatbot.Component", {

    /**
     * The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
     * @public
     * @override
     */
    init: function () {
        // call the base component's init function
        UIComponent.prototype.init.apply(this, arguments);
        var renderer = sap.ushell.Container.getRenderer("fiori2");
        if (!document.getElementById("recast-webchat")) {


            var s = document.createElement("script");
            s.setAttribute("id", "recast-webchat");
            s.setAttribute("src", "https://cdn.recast.ai/webchat/webchat.js");
            //document.body.appendChild(s);
            if (document.body != null) {
                document.body.appendChild(s);
            }
        }
        s.setAttribute("channelId", "abc");
        s.setAttribute("token", "xyz");
    }
});
Admin
SAP SE

Hi Karan,

The SAP User Experience Community is more of a design-focused forum. Your question looks more technical. Have you tried posting your question here: https://answers.sap.com?

https://www.sap.com/community/topic/fiori.html

Although there is a chance someone might still be able to answer your question here in this forum, I think you might have more luck there.

Regards Sebastian

Developer
SAP SE

Hi Karan,

in the latest release of SAP CoPilot it is now possible to connect your SAP Conversational AI / Recast.AI bots to SAP CoPilot and therewith use them directly in the SAP Fiori Launchpad (On-Premise). As far as I understand, that’s the correct way of integrating chat bots in SAP Fiori Launchpad, as only that way you can ensure a consistent user experience – following the SAP Fiori design guidelines.

Information about SAP CoPilot
Documentation regarding the integration with SAP Conversational AI / Recast.AI

Regards
Jonas

Viewing 3 posts - 1 through 3 (of 3 total)
 

You must be logged in to reply to this topic.