https://github.com/botfront/rasa-webchat
In a <script> tag
In your <body/>:
<divid="webchat"></div><scriptsrc="https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.min.js"></script>// you can add a version tag if you need, e.g for version 0.11.5 https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.5/lib/index.min.js<script>WebChat.default.init({selector:"#webchat",initPayload:"/get_started",customData:{"language":"en"},// arbitrary custom data. Stay minimal as this will be added to the socketsocketUrl:"http://localhost:5500",socketPath:"/socket.io/",title:"Title",subtitle:"Subtitle",params:{"storage":"session"}// can be set to "local" or "session". details in storage section.})</script>
网友评论