Coder Social home page Coder Social logo

andrewgy8 / apprentice Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 73 KB

Built for streamlining development of Google Assistant Actions

License: GNU General Public License v3.0

Python 100.00%
dialogflow dialogflow-action google-actions google-cloud-functions google-voice python serverless

apprentice's People

Contributors

andrewgy8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

surister

apprentice's Issues

Show additional content to the user

We should be able to allow the api to accept a hyperlink or text with photos to display to the google assistant. That way a user can click on the link and find more information about whatever the api received.

Ex. This would be the link information in the today in history api

How-to video

A how-to video embedded in the projects readme would be a nice way to break the entry barrier

Multiple language support

We should be able to support more than one language.

The approach could use gettext or some other il8n solution.

.env with the Flask App path

For the local server to work as plug-and-play, it would be nice to have .env file that is read as a default to the installed main.py flask app. That way a user could execute:

  1. apprentice init
  2. apprentice run

And have the local server running immediately.

BasicCard response

Dialogflow supports rich text responses for users on a device. We could add a nice interface for apprentice to construct this type of response.

Increase the usability of the Apprentice API

This is what I could imagine the API for Apprentice looking like:

from apprentice import Apprentice

apr = Apprentice(__name__)

ENTITIES = {
    "name": "History",
    "entries": [
        {
            "value": "history",
            "synonyms": [
                "history",
                "past event",
                "the past",
                "past"
            ]
        }, {
            "value": "birth",
            "synonyms": [
                "birth",
                "births",
                "born"
            ]
        }
    ]
}


@apr.action(entities=['name'])
def cool_fact_generator(*args, **kwargs):
    reply = _fact_response(apr.entity)
    return apr.make_repsonse(reply)

Add suggestions

When creating a response a user should be able to configure the view of suggestions.

The resulting payload would look like:

'payload': {
                'google': {
                    'expect_user_response': False,
                    'is_ssml': True,
                    'permissions_request': None,
                    "richResponse": {
                        "items": [],
                        "suggestions": [],
                        "linkOutSuggestion": {}
                    }
                }
            }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.