How can I transfer messages between a chatbot and a web application?

340 Views Asked by At

Hi stackoverflow community,

for my master thesis I am currently looking for a suitable messaging protocol or a message broker or middleware that can be used to exchange messages instantly between a chatbot, created using the SAP Conversational AI Framework and intended to serve as a fallback channel, and a specially developed SAPUI5 web application. The whole thing could be imagined as a live chat between a customer and a customer service employee.

The SAP Conversational AI Framework supports Webhooks, so I can connect a Node.js application, for example. The only limitation is that the Webhook URL must start with "https", so that a WebSocket server is virtually eliminated.

Would I have to develop such an interface myself or are there already libraries/frameworks that meet my expectations?

I am looking forward to your feedback.

Many greetings

1

There are 1 best solutions below

1
On

Hmm I have never used the framework but I have made research and that is what I have found:

https://github.com/SAPConversationalAI/webchat

It enables you to deploy your bot directly to your website.

SAP Docs here:

https://cai.tools.sap/docs/concepts/webchat

I suggest you to use React to develop the frontend. You can use webchat in that way:

https://github.com/SAPConversationalAI/webchat#react-component

so if you want to use it you don't need a backend. You need only serve js files to your browser. For more details you can ask me in the comments.