{"id":15757114,"url":"https://github.com/treethought/delivery-assistant","last_synced_at":"2025-03-31T08:26:35.578Z","repository":{"id":78924293,"uuid":"92916328","full_name":"treethought/delivery-assistant","owner":"treethought","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-31T22:59:31.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T12:48:24.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/treethought.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-31T07:12:38.000Z","updated_at":"2018-04-21T19:28:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc7dc903-7110-499a-a7ad-893da3a84a34","html_url":"https://github.com/treethought/delivery-assistant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdelivery-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdelivery-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdelivery-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdelivery-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/treethought","download_url":"https://codeload.github.com/treethought/delivery-assistant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246438655,"owners_count":20777465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T09:04:18.316Z","updated_at":"2025-03-31T08:26:35.556Z","avatar_url":"https://github.com/treethought.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"MealClub Delivery Assistant\n===============================\n\nA Google Asisstant App to help MealCLub Drivers drive hands-free\n\nSetup\n-----\n\nAPI.AI and Server Configuration\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n1. Create a new Agent within the `API.AI Console_`\n2. Click \"Fullfillment\" left side menu and enable webhook\n3. With `ngrok`_ installed:\n\n    .. code-block:: bash\n    \n        ./ngrok http 5000\n\n3. Copy the **Forwarding https** url and paste it as the webhook URL in the \"Fullfillment\" menu\n\nProject Environment\n^^^^^^^^^^^^^^^^^^^\n\n It is recommended to use a virtual environment\n\n\n1. Clone and move into project directory\n\n    .. code-block:: bash\n    \n        git clone https://github.com/treethought/Delivery-Assistant\n        cd MealClub Delivery Assistant\n\n    \n2. Within the `API.AI Console_`, click the \"gear\" icon next to the API.AI agent name.\n3. Locate the Client and Developer access tokens under `API keys`\n\n4. Set the Client and Developer Access token environment variables\n    \n    .. code-block:: bash\n    \n        export CLIENT_ACCESS_TOKEN='YOUR CLIENT ACCESS TOKEN'\n        export DEV_ACCESS_TOKEN='YOUR DEVELOPER ACCESS TOKEN'\n\n    \n5. Set the ``FLASK_APP`` and ``FLASK_DEBUG`` environment variables\n\n    .. code-block:: bash\n    \n        export FLASK_APP=autoapp.py\n        export FLASK_DEBUG=1\n\n\n6. Install requirements\n   \n   .. code-block:: bash\n   \n        pip install -r requirements.txt\n\n\nDevelopment\n-----------\n\nRegister Assistant Schema with API.AI\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nFirst update the `templates/` directory as needed and then run\n\n.. code-block:: bash\n\n    schema assistant/webhook.py\n\nRunning the Flask App\n^^^^^^^^^^^^^^^^^^^^^\n    \n    .. code-block:: bash\n\n        flask run\n\n\n\nTesting the Assistant from the Command Line\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nTo quickly send queries to your agent and view the responses:\n\n    .. code-block:: bash\n    \n        query assistant/webhook.py\n\n\nDeployment\n----------\n\nIn your production environment, make sure the ``FLASK_DEBUG`` environment\nvariable is unset or is set to ``0``, so that ``ProdConfig`` is used.\n\nHeroku\n^^^^^^\n\nCreate Heroku app\n\n    .. code-block:: bash\n    \n        heroku create Delivery-Assistant\n        git remote add stage git@heroku.com:Delivery-Assistant.git\n\nConfigure Heroku app\n\n    .. code-block:: bash\n    \n        heroku config:set CLIENT_ACCESS_TOKEN='YOUR CLIENT ACCESS TOKEN' -r stage\n\nDeploy\n\n    Commit and push changes\n\n    .. code-block:: bash\n\n\n        git push stage master\n\n\n\n\n\n.. _`API.AI Console`: https://console.api.ai/api-client/#/login\n.. _`ngrok`: https://ngrok.com/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreethought%2Fdelivery-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreethought%2Fdelivery-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreethought%2Fdelivery-assistant/lists"}