{"id":15757100,"url":"https://github.com/treethought/data-analyst","last_synced_at":"2025-10-03T12:52:57.613Z","repository":{"id":78924294,"uuid":"92917972","full_name":"treethought/data-analyst","owner":"treethought","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-01T16:22:26.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T08:30:49.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://robo-analyst.herokuapp.com/","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:31:08.000Z","updated_at":"2021-11-07T15:34:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"3eb1a689-0a98-4afc-9a1a-2678411d0131","html_url":"https://github.com/treethought/data-analyst","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/treethought/data-analyst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdata-analyst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdata-analyst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdata-analyst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdata-analyst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/treethought","download_url":"https://codeload.github.com/treethought/data-analyst/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treethought%2Fdata-analyst/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278165677,"owners_count":25940956,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:15.603Z","updated_at":"2025-10-03T12:52:57.565Z","avatar_url":"https://github.com/treethought.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Data Analyst bot\n===============================\n\nA Virtual Assistant created with flask and flask-assistant\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/robo-analyst\n        cd Data Analyst bot\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 robo-analyst\n        git remote add stage git@heroku.com:robo-analyst.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%2Fdata-analyst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreethought%2Fdata-analyst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreethought%2Fdata-analyst/lists"}