{"repo":"theopenconversationkit/tock-react-kit","free":true,"listed":false,"github":"https://github.com/theopenconversationkit/tock-react-kit","clone":"git clone https://github.com/theopenconversationkit/tock-react-kit.git","description":"React component to embed Tock chatbots into Web interfaces.","language":"TypeScript","stars":23,"topics":["react","opensource","ai","chatbot","web","widget","tock","bot"],"license":"MIT","category":"ai-agents","readme_excerpt":"Tock React Kit A toolkit to easily embed Tock chatbots into Web pages. The toolkit provides: - simple integration, as a script or React module - connection/dialog with a Tock bot using Bot API (using SSE if available) - user interface for conversations, including default widgets and animations - customizable styles The toolkit is currently used in production by various conversational assistants from SNCF, Enedis and more (see Tock showcase). 🏠 Home: https://doc.tock.ai ▶️ Live demo: Web frontend / bot backend 💬 Contact: https://gitter.im/tockchat/Lobby Prerequisites - Run a Tock Bot in API mode (NodeJS alternative) Quick Start If you do not use a package manager, you can include the standalone bundle for the tock-react-kit in an HTML page. Note that this bundle includes its own copy of React - if you have an existing React application, please refer to the module instructions below. Render your app in an element: Use as a module You can install this package alongside its peer dependencies using the package manager of your choice, and then bundle it with the rest of your web application. For example with NPM: Your bundler must support ESM modules, which is the case for Webpack, Rollup and Vite among others. Use in a React app Note that unmounting TockContext at any point may cause bugs in the chat due to live data being lost. Therefore, in apps where the Chat component is susceptible to being unmounted and remounted (e.g. Single Page Applications), TockContext should go at th","default_branch":null,"files":null,"tree":[],"storefront":"/r/theopenconversationkit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/theopenconversationkit/tock-react-kit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}