galatea-associates / fuse-starter-java

Starter project for Galatea java projects
17 stars 73 forks source link

Feature/issue 189 wit ai nlp integration #367

Open GalateaEbbs opened 2 years ago

GalateaEbbs commented 2 years ago

This branch adds integration with a new wit.ai NLP app that has been trained to recognize the existing /hal functionality coinFlip and derp (reference). It also adds new functionality timeAtLocation, which integrates with both our wit.ai app and a free World Time API to determine what the current time is for a location.

For each of these tasks, a simple text query is received by the /hal endpoint, which then triggers a query to our wit.ai app. If our wit.ai app is able to determine an intent from the sentence, then we process that intent (intent being coinFlip, derp, or timeAtLocation) with the optional entities that wit.ai determines (no entities for coinFlip or derp, location data for timeAtLocation) - wit.ai docs for reference.

Next step after this is https://github.com/galatea-associates/fuse-starter-java/issues/191, which will involve creating several new issues to handle integration and support additional functionality.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.2% 97.2% Coverage
0.0% 0.0% Duplication