We are working on building a chatbot where users have different personas and would be authenticated basis grouping done on the website. We have cleared this step however the issue is arising putting that code back to chatbot to call the user in PVA as the website is not a regular ipython frame or css website but it is something built on all together a different product Vanilla OSS, for reference here is the wiki link for details.
https://en.wikipedia.org/wiki/Vanilla_Forums
<title>Name of the website</title>
<!-- This styling is for the canvas demonstration purposes. It is recommended
that style is moved to separate file for organization in larger projects -->
background-color: desired color;
height: calc(required height);
<!-- Change the h1 text to change the bot name -->
<div id="webchat" role="main"></div>
<script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script>
// Add styleOptions to customize web chat canvas
var BOT_ID = "<ENTER YOUR BOT ID>";
const store = window.WebChat.createStore(
({ dispatch }) => next => action => {
if (action.type === "DIRECT_LINE/CONNECT_FULFILLED") {
//Web Chat will show the 'Greeting' System Topic message which has a trigger-phrase 'hello'
type: "DIRECT_LINE/POST_ACTIVITY",
.then(response => response.json())
directLine: window.WebChat.createDirectLine({
token: conversationInfo.token,
document.getElementById('webchat')