<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script> | |
<style> | |
html, | |
body { | |
height: 100%; | |
} | |
body { | |
margin: 0; | |
} | |
#webchat { | |
height: 100%; | |
width: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="webchat" role="main"></div> | |
<script> | |
window.WebChat.renderWebChat( | |
{ | |
directLine: window.WebChat.createDirectLine({ | |
token: 'YOUR_DIRECT_LINE_TOKEN' | |
}) | |
}, | |
document.getElementById('webchat') | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment