Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajagopal28/donna
A smart personal assistant application with an intent to address the indoor navigation problem and to make the work hours interesting. powered by MazeMap and Api.ai
https://github.com/rajagopal28/donna
angular2 apiai bootstrap chatbot donna es6 gh-pages indoor-navigation mazemap nativescript office-assistant personal-assistant routes services typescript
Last synced: 4 days ago
JSON representation
A smart personal assistant application with an intent to address the indoor navigation problem and to make the work hours interesting. powered by MazeMap and Api.ai
- Host: GitHub
- URL: https://github.com/rajagopal28/donna
- Owner: rajagopal28
- License: mit
- Created: 2017-07-12T11:16:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T18:24:43.000Z (over 1 year ago)
- Last Synced: 2024-04-14T10:56:16.970Z (7 months ago)
- Topics: angular2, apiai, bootstrap, chatbot, donna, es6, gh-pages, indoor-navigation, mazemap, nativescript, office-assistant, personal-assistant, routes, services, typescript
- Language: TypeScript
- Homepage: https://rajagopal28.github.io/Donna/
- Size: 30.5 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Donna - The Smart Office Assistant
## Introduction:
Being in a huge corporate world, we often get lost literally. Yeah, most of the tech giants own huge blocks of buildings and they operate in a seamless way, but being humans we often tend to remember all details of what is where in the real world. On a specific note, being at work which involves lots of floors, partitions, and wings, we often wind up moving across various parts of the mazes that we live across. With smart personal assistants, this can very well be addressed by making our workplace a lot easy to move and comfy to work.Detailed proposal documentation can be found [Here](./statics/Donna-TheSmartOfficeAssistant.pdf).
Detailed Documentation on Android Mobile App can be found [Here](https://github.com/rajagopal28/TheDonna).
Detailed Documentation on The contextual data backed can be found [Here](https://github.com/rajagopal28/donna-backend).
Download the mobile application executable [Here](./statics/com.nativescript.donna.ai.apk)
## Web Application Architecture:
![Architecture](./statics/image00.png)## Technical challenges:
**Angular2** - While starting this project I wanted this to be a mobile app as it involves navigation and chat type feature after knowing that native script supported angular2 framwork I felt it would be more fun to learn two techs for a single project. Angular2 was more roubust and structured when compared with it's predecessors.Working with MVC was so smooth but I had issues as these framwork are on top of Javascript and I didnot want to host a server just to serve the static files. So I chose gh-pages. Eventhough ng build and deploy commands are out of the box, integrating with gh-pages for a peculiar URL format was tricky. However with npm build tricks based baseref attribute saved the day.
**Bootstrap UI** - As I am not a CSS guy I wanted someone to help me with CSS. Initially I was planning to keep the UI light with no sassy components, however I was impressed by ng-bootstrap for angular 2 which had satisfactiorily less number of components as it is still in development.
**MazeMap** - I chose MazeMap initially as it was the recommended library in the hackathon guidlines. However I had a small tryout with google's indoor navigation and MazeMap was too simple and easy for a native javascript framework. However problems were rooting when trying to use this in nativescript as a simple javascript library.
**ChatBot** - Initially I have started this project by keeping Microsoft's Bot framework and Bot as services but on trying out I found that their QnA bot have no capabilities of maintaining context and ability to extract intent's from the user message. After looking at options like wit.ai and api.ai I found API.ai to be developer friendly in defining intents, actions and training the bot over context with varying actions and contexts.
## Up and Running:
This static site is being deployed to gh-pages powered by git hub. You can visit the site in [Here](https://rajagopal28.github.io/Donna/).
To run in local follow the steps given in this [Link](LocalSetup.md)## Major User Flows:
There are 3 major flows in this app
**Admin and Session:** where we can login or add users, locations, campus, events and announcements. These views are generally used to feed data in to the system and manage them. The contextual backend is just an API backend and these views lets us manage all the data.
**Chatbot:** Essential crux of this app is the chat bot where the authenticated user interacts with the api.ai server and it gets fulfilled for some of the intents by the contextual backend we have created.
**Maps:** Indoor navigation is the essential concept behind this project. It is deeply tied between the contextual backend as it holds the relevant data. The Mazemap library is used for indoor maps and navigation.### Home and Login
![Home](./statics/image01.png)
![User Login](./statics/image02.png)### Events and Announcements
![Announcements](./statics/image03.png)
![Announcements](./statics/image04.png)
![Events](./statics/image05.png)
![Events](./statics/image06.png)### ChatBot:
![ChatBot](./statics/image07.png)
![ChatBot](./statics/image08.png)
![ChatBot](./statics/image09.png)
![ChatBot](./statics/image10.png)### Maps:
![Maps](./statics/image10.png)
![Maps](./statics/image11.png)
![Maps](./statics/image12.png)
![Maps](./statics/image13.png)
![Maps](./statics/image14.png)
![Maps](./statics/image15.png)
![Maps](./statics/image16.png)
![Maps](./statics/image17.png)### Admin:
There are set of views that are created to manage the contextual data. Please Click [Here](admin.md) to View about those Screens.## References:
- https://github.com/ng-bootstrap/ng-bootstrap#demo
- https://angular.io/guide/quickstart
- https://appendto.com/2016/09/building-nested-components-using-angular-2/
- http://developer.telerik.com/featured/quick-angular-2-hosting-angular-cli-github-pages/
- https://www.mazemap.com/indoor-maps
- https://blog.mazemap.com/introducing-mazemap-indoor-map-javascript-api-v1-0/