简体   繁体   中英

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..

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM