Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
I am developing a microsoft bot, (currently using bot composer, which is linked to QnA maker). The bot will need to be visible on the main website (which is predominantly a store-front type website, showing various products, with each product having its own URL).

The various questions in QnA maker relate to ANSWERS which need to point to specific product pages on the hosting web site.

The typical scenario will be , user will ask a bot a question, and this will result in an ANSWER which has a URL to the relevant page on the main website. When the user clicks the link in the bot, the main website will navigate to the relevant product page, but the bot should still be visible, and should still be in a state which shows the conversation so far (rather than being re-started).

How can this be achieved?

(I have experimented with embedding the bot in an iframe, as per the Azure bot instructions, but of course, as soon as the parent web page changes, this is effectively a new page so the bot becomes invisible).

NOTE - as a secondary issue, It appears that the QnA maker sets all links to use target="_blank" and I suspect I really need to be using a link which follows this technique: " target="_top"> Link or " target="_parent"> Link

Does anyone has any advice regarding this secondary issue?

What I have tried:

I have tried having multiple pages all with an iframe which has the bot code embedded, but when each page is clicked on, the bot behaves as if it's the start of the conversation
Posted
Updated 19-Oct-21 1:52am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900