cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori launchpad becomes unresponsive after chatbot plugin deployment

karanbahl
Active Participant
0 Kudos
509

Hi experts,

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?

Regards,

Karan

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");
		}
	});
});

Accepted Solutions (1)

Accepted Solutions (1)

karanbahl
Active Participant
0 Kudos

The webchat has been updated at recast.ai end and the chatbot loads fine now on Fiori Launchpad.


Regards,

Karan

Answers (1)

Answers (1)

karanbahl
Active Participant
0 Kudos

Any clue on this one?

Regards,

Karan