cancel
Showing results for 
Search instead for 
Did you mean: 

Use CAI's Webchat connector in a react application

0 Kudos

I am trying to implement a chatbot in a react application. Although I have already done multiple chatbots applications (html5), none of them were using react, so I decided to follow the documentation found here.

It says that you can simply

import CaiWebchat from 'webchat';

But it does not explain how to get the 'webchat' package (it's not in NPM), and cloning / trying to import from source does not seem to work.

This is all the documentation available. How could I do this implementation so I can get access to the webchat component from within my react app?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member765314
Discoverer

Hi Nicolas! You can directly install the package using its git url. Running 'npm install https://github.com/SAPConversationalAI/Webchat' directly in your project folder should give you access to the CaiWebchat component