Welcome to our WXSD DEMO Repo!
Chat Based Routing bot helps in connecting the user to a group of experts instantly.
This demo shows how we can use Webex JS SDK and APIs to route users to a space with experts. This demo connects users with experts in various fields to help them resolve issues they may be facing. The app has a user-friendly interface, making it easy for users to find the right expert to solve their problems.
- User sends a message to the bot [email protected]
- Fills in required details the bot asks for.
- Once the user submits the request, the bot creates a room and adds the default members required in that space along with the user who has requested assistance.
- Once you are done, any moderator of that space can delete the room by mentioning the bot and using the kill command ex:@Chat Based Rouring Bot kill
- Valid bot access token. Please refer Webex Developer Site to see how to create a bot and access token.
- Developed on Windows 11
- MongoDb (i.e Atlas)
- Node >18.15.0 (recommended)
- Other OS and node versions may work but not tested
You will need to create a file called .env that includes the following lines:
PORT=
WEBEX_LOG_LEVEL=debug
WEBEX_ACCESS_TOKEN=
MONGO_URI=
MONGO_DB=cbroutingBot
ERROR_ROOM_ID=
Note:
- You will need to provide a port for this to run locally
- You will need to provide an access_token of a test bot for testing
- You will need to provide a roomId for error messages to be sent. This can be any Webex Space roomId that your bot is a member of.
- You can use the Mongo credentials shown above in the .example.env file
The typical npm install flow, after cloning this repo
npm install
npm start
Check out our live demo, available here!
*For more demos & PoCs like this, check out our Webex Labs site.
All contents are licensed under the MIT license. Please see license for details.
Everything included is for demo and Proof of Concept purposes only. Use of the site is solely at your own risk. This site may contain links to third party content, which we do not warrant, endorse, or assume liability for. These demos are for Cisco Webex usecases, but are not Official Cisco Webex Branded demos.
Please contact the WXSD team at [email protected] for questions. Or, if you're a Cisco internal employee, reach out to us on the Webex App via our bot ([email protected]). In the "Engagement Type" field, choose the "API/SDK Proof of Concept Integration Development" option to make sure you reach our team.