catogonzalez / universal-chat-widget Goto Github PK
View Code? Open in Web Editor NEWAn open source web chat widget that connects to any backend.
An open source web chat widget that connects to any backend.
I would like to use this chat widget and connect it to a bot creator that a friend worked on called Botify. The app can be accessed here botify-demo-9615.herokuapp.com. This is the github repo https://github.com/enaiho/botify
Hello :).
here,
just because it took me hours to find out the correct config params for the rocket chat adapter I give you an example for it that you can provide on the <>Code page of git hub.
config= {
"adapter": "RocketChat", // one of ActionCable or RocketChat (required)
"element": "#chat-widget",// css selector of element to replace in DOM when the chat widget renders (required)
"position": "bottom-right", // or embedded
"showAvatars": true,
"allowUploads": true,
"poweredByText": "121 Services", // yes, you can change this :)
"poweredByHost": "http://localhost:3000", // and this!
"adapterConfig": {
"backendUrl": "http://localhost:3000",
"deviceId": "c683b9da-c908-4407-97dd-91e6bf2552d1",
"initData": {
"username": "testbot",
"password": "123",
"data": {
"roomId": "GENERAL"
}
},
"mode":"private"
}
}
hope this help others to set up faster the uwc with rocket chat :).
You should also describe (for the beginners like me) that we have to build the adapter by our own and include it by copying it into node_modules folder. This path was not clear for a beginner like me.
Anyway, thank you for creating this universal chat client and building the adapter :) ๐
Hi, thanks for this work, it's awesome ! I have a question , i want to have a form before having the chat widget where user can enter his username (and the password will be automatically generated) and then send data to my rocket chat backend to create this user. And finally display your vue.js widget.
i don't know if it's clear enough ..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.