No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
callers
chat
listener
models
test_suite
util
.gitignore
README.md
docs.html
main.go

README.md

This is a starter project for a proxy to https://dialogflow.com/ To start call:

>>> go run  <path_to_go>/go/src/leo/main.go <flags>

To enable demo chat at http://<base_url>:8080 use flag: -chat

Example:

>>> go run  <path_to_go>/go/src/leo/main.go -chat.

If you run this on your local machine, go to:

http://localhost:8080 to test.

To enable endpoint use flag: -leo

Example:

>>> go run  <path_to_go>/go/src/leo/main.go -leo.

After service initialization, to get a simple text response from leo agent go to:

http://<base_url>:8080/askleo/<text_to_be_processed>

Note: <user_entered_text> will be sent using GET method.

To view documentation:

>>> godoc -http=:6060 -goroot=<path_to_leo_package>

This will display docs at http://localhost:6060/pkg/leo If you need to get a text representation of a particular page just add:

?m=all,text

to the page url.

Dependencies:

  1. UUID package for Go language. To install run:

    go get github.com/satori/go.uuid
    
  2. Go package for DuckDuckGo Instant Answer API. To install run:

    go get -u github.com/ajanicij/goduckgo