BotUI

A JavaScript framework for building conversational UIs

README

logo
Join the community on Spectrum npm npm Twitter Follow

A JavaScript framework to create conversational UIs.





Showcase 🎇✨


We are listing all the cool projects that people are building with BotUI, here. See others' and add yours!

Heads Up! The upcoming version will have some major breaking changes. I suggest you use a specific version instead of using the latest tag.

Quick look


preview

  1. ``` html
  2. <div class="botui-app-container" id="botui-app">
  3.   <bot-ui></bot-ui>
  4. </div>
  5. ```

  1. ``` js
  2. var botui = new BotUI('botui-app') // id of container

  3. botui.message.bot({ // show first message
  4.   delay: 200,
  5.   content: 'hello'
  6. }).then(() => {
  7.   return botui.message.bot({ // second one
  8.     delay: 1000, // wait 1 sec.
  9.     content: 'how are you?'
  10.   })
  11. }).then(() => {
  12.   return botui.action.button({ // let the user perform an action
  13.     delay: 1000,
  14.     action: [
  15.       {
  16.         text: 'Good',
  17.         value: 'good'
  18.       },
  19.       {
  20.         text: 'Really Good',
  21.         value: 'really_good'
  22.       }
  23.     ]
  24.   })
  25. }).then(res => {
  26.   return botui.message.bot({
  27.     delay: 1000,
  28.     content: `You are feeling ${res.text}!`
  29.   })
  30. })
  31. ```

📦 Parcel users: Take a look at this

Contributors


This project exists thanks to all the people who contribute. [Contribute].


License


MIT License - Copyrights (c) 2017-20 - Moin Uddin