Rasa rasa-webchat

2020-09-04  本文已影响0人  晓飞1111

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>

上一篇 下一篇

猜你喜欢

热点阅读