MG G
MG G

Reputation: 21

Watson Assistant to catch the elements in the webpage

I have a Watson Assistant chatbot embedded in a webpage using the Web Chat embedding integration JavaScript.

I need to make the embedded chatbot catch the login information from the webpage the chatbot is embedded in. Like, making the chatbot starts with "Hi Adam" based on that Adam is already logged into the webpage. Or, even how to make the chatbot catch different elements in the page it's embedded into.

Any advice is appreciated..

Thanks..

Upvotes: 0

Views: 245

Answers (1)

timd
timd

Reputation: 376

You will need to extend the IBM Web Chat client, to capture the login info, and then pass this info back into the Watson Assistant payload. I would suggest adding the info to the context, so that it can easily be used in your answers as you have commented about. This will mean extra JS coding. There is more info in the Watson doc's about extending the Web chat bot or on the IBM Github.

Upvotes: 0

Related Questions