{"id":15654788,"url":"https://github.com/vkosuri/django-dialogflow","last_synced_at":"2025-11-08T22:02:47.384Z","repository":{"id":57419764,"uuid":"104872916","full_name":"vkosuri/django-dialogflow","owner":"vkosuri","description":"[Maintainer Required] Dialogflow Django is a web client to chat :sparkling_heart:","archived":false,"fork":false,"pushed_at":"2019-05-26T17:50:40.000Z","size":150,"stargazers_count":26,"open_issues_count":5,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T12:19:49.786Z","etag":null,"topics":["apiai","chat-application","chatbot","dialogflow","django","heroku","heroku-notes"],"latest_commit_sha":null,"homepage":"https://dialogflow.com/docs/getting-started/basics","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vkosuri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-26T10:51:02.000Z","updated_at":"2023-03-10T11:58:56.000Z","dependencies_parsed_at":"2022-09-01T02:31:52.607Z","dependency_job_id":null,"html_url":"https://github.com/vkosuri/django-dialogflow","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vkosuri/django-dialogflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkosuri%2Fdjango-dialogflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkosuri%2Fdjango-dialogflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkosuri%2Fdjango-dialogflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkosuri%2Fdjango-dialogflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vkosuri","download_url":"https://codeload.github.com/vkosuri/django-dialogflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkosuri%2Fdjango-dialogflow/sbom","scorecard":{"id":925016,"data":{"date":"2025-08-11","repo":{"name":"github.com/vkosuri/django-dialogflow","commit":"4a532b2489d058be51521b46c1b296abaf5a9ad9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"42 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2014-5 / GHSA-296w-6qhq-gf92","Warn: Project is vulnerable to: PYSEC-2011-2 / GHSA-3jqw-crqj-w8qw","Warn: Project is vulnerable to: PYSEC-2012-3 / GHSA-59w8-4wm2-4xw8","Warn: Project is vulnerable to: PYSEC-2012-4 / GHSA-5h2q-4hrp-v9rr","Warn: Project is vulnerable to: PYSEC-2014-6 / GHSA-625g-gx8c-xcmg","Warn: Project is vulnerable to: PYSEC-2015-8 / GHSA-6565-fg86-6jcx","Warn: Project is vulnerable to: PYSEC-2021-98 / GHSA-68w8-qjq3-2gfm","Warn: Project is vulnerable to: PYSEC-2012-2 / GHSA-78vx-ggch-wghm","Warn: Project is vulnerable to: PYSEC-2015-9 / GHSA-7fq8-4pv5-5w5c","Warn: Project is vulnerable to: PYSEC-2015-4 / GHSA-7qfw-j7hp-v45g","Warn: Project is vulnerable to: PYSEC-2011-9 / GHSA-7wph-fc4w-wqp2","Warn: Project is vulnerable to: GHSA-7xr5-9hcq-chf9","Warn: Project is vulnerable to: PYSEC-2014-2 / GHSA-89hj-xfx5-7q66","Warn: Project is vulnerable to: GHSA-8x94-hmjh-97hq","Warn: Project is vulnerable to: PYSEC-2016-2 / GHSA-c8c8-9472-w52h","Warn: Project is vulnerable to: PYSEC-2016-3 / GHSA-crhm-qpjc-cm64","Warn: Project is vulnerable to: PYSEC-2014-4 / GHSA-f7cm-ccfp-3q4r","Warn: Project is vulnerable to: PYSEC-2016-16 / GHSA-fp6p-5xvw-m74f","Warn: Project is vulnerable to: PYSEC-2011-8 / GHSA-fwr5-q9rx-294f","Warn: Project is vulnerable to: PYSEC-2015-5 / GHSA-gv98-g628-m9x5","Warn: Project is vulnerable to: PYSEC-2015-20 / GHSA-h582-2pch-3xv3","Warn: Project is vulnerable to: PYSEC-2011-5 / GHSA-h95j-h2rv-qrg4","Warn: Project is vulnerable to: GHSA-hmr4-m2h5-33qx","Warn: Project is vulnerable to: PYSEC-2015-6 / GHSA-jhjg-w2cp-5j44","Warn: Project is vulnerable to: PYSEC-2016-15 / GHSA-pw27-w7w4-9qc7","Warn: Project is vulnerable to: PYSEC-2015-10 / GHSA-q5qw-4364-5hhm","Warn: Project is vulnerable to: PYSEC-2011-4 / GHSA-rm2j-x595-q9cj","Warn: Project is vulnerable to: GHSA-rrqc-c2jx-6jgv","Warn: Project is vulnerable to: PYSEC-2014-1 / GHSA-rvq6-mrpv-m6rm","Warn: Project is vulnerable to: PYSEC-2014-7 / GHSA-rw75-m7gp-92m3","Warn: Project is vulnerable to: PYSEC-2019-16 / GHSA-vfq6-hq5r-27r6","Warn: Project is vulnerable to: PYSEC-2014-3 / GHSA-wqjj-hx84-v449","Warn: Project is vulnerable to: PYSEC-2011-3 / GHSA-wxg3-mfph-qg9w","Warn: Project is vulnerable to: PYSEC-2011-1 / GHSA-x88j-93vc-wpmp","Warn: Project is vulnerable to: PYSEC-2007-1","Warn: Project is vulnerable to: PYSEC-2008-1","Warn: Project is vulnerable to: PYSEC-2008-2","Warn: Project is vulnerable to: PYSEC-2009-3","Warn: Project is vulnerable to: PYSEC-2015-11","Warn: Project is vulnerable to: PYSEC-2015-7","Warn: Project is vulnerable to: PYSEC-2016-18","Warn: Project is vulnerable to: PYSEC-2022-304"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-25T10:38:49.340Z","repository_id":57419764,"created_at":"2025-08-25T10:38:49.340Z","updated_at":"2025-08-25T10:38:49.340Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278972664,"owners_count":26078086,"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-08T02:00:06.501Z","response_time":56,"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":["apiai","chat-application","chatbot","dialogflow","django","heroku","heroku-notes"],"created_at":"2024-10-03T12:54:11.654Z","updated_at":"2025-10-08T16:07:51.211Z","avatar_url":"https://github.com/vkosuri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Dialogflow\n\n[![Package Version](https://img.shields.io/pypi/v/django-dialogflow.svg)](https://pypi.python.org/pypi/django-dialogflow/)\n[![Build Status](https://travis-ci.org/vkosuri/django-dialogflow.svg?branch=master)](https://travis-ci.org/vkosuri/django-dialogflow)\n\nDjango [Dialogflow](https://dialogflow.com) is a web client to chat.\n\n## Table of contents\n\n1. [API View](#api-view)\n2. [Sync your database](#sync-your-database)\n3. [Production your BOT](#production-your-bot)\n4. [Installation](#installation)\n5. [Configuring Webservice](#configuring-webservice)\n6. [Deploying on Heroku](#deploying-on-heroku)\n7. [Examples](#examples)\n8. [Motivation](#motivation)\n9. [License](#license)\n10. [Contributing](#contributing)\n\n## API View\n\nIf you need a django_dialogflow as a API endpoint, then you will need to add below steps to your [urls.py](./django_dialogflow/urls.py)\n\n``` Python\nurlpatterns = [\n    url(r'chat/$', chat_view, name='chat'),\n    url(r'^$', index_view, name='index'),\n    url(r'^admin/', admin.site.urls),\n]\n\n```\n\nThe endpoint expects a JSON request with the following data:\n\n``` Python\n{\"text\": \"My input statement\"}\n```\n\nSee detailed example how retrieve end point translated information [app.html](.django_dialogflow/django_dialogflow/templates/app.html)\n\n\n## Sync your database\n\nIn order to persists your data you need to create the necessary ``django_dialogflow`` tables. \n\nFor generating schema migrations, you have to run these steps.\n\n``` Bash\n$ python manage.py migrate django_dialogflow\n```\n\n## Production your Bot\n\n### Configuring Dialogflow\n\nTo comunicate with Dialogflow you need get a [client access token](https://dialogflow.com/docs/reference/agent/#using_access_tokens), \n\nThen go to [settings.py](./django_dialogflow/settings.py) update your ``client_access_token`` in ``settings.py``\n\n``` Python\n# Dialogflow settings\nDIALOGFLOW = {\n    'client_access_token': 'e5dc21cab6df451c866bf5efacb40178',\n}\n```\n\n### ALLOWD_HOSTS\n\nModify Django Allowed hosts to access your application everywhere, to do this modify [settings.py](./django_dialogflow/settings.py) as suggested below\n\n``` Python\nALLOWED_HOSTS = ['A.B.C.D', 'localhost']\n```\n\n### CORS_ORIGIN_WHITELIST\n\nCross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served.\n\nTo do this modify [settings.py](./django_dialogflow/settings.py) as suggested below\n\n``` Python\nCORS_ORIGIN_WHITELIST = (\n    'A.B.C.D:9000',\n)\n```\n\n### Deploy\n\n``` Bash\npython manage.py runserver 0.0.0.0:8000\n```\n\nFurther documentation on Dialogflow can be found here https://dialogflow.com/\n\n## Installation\n\nIf you are trying use ``django_dialogflow`` as app,\n\nThen you could install ``django-dialogflow`` either via the Python Package Index (PyPI) or from GitHub source.\n\nTo install using pip :\n\n``` Bash\n$ pip install django-dialogflow\n```\n\nand then add it to your installed apps in your settings.py:\n\n``` Bash\nINSTALLED_APPS = (\n    ...\n    'django_dialogflow',\n    ...\n)\n```\n\n\n## Configuring Webservice\n\nIf you want to host your Django app, then you need to choose a method through which it will be hosted. There are a few free services that you can use to do this such as [Heroku](https://dashboard.heroku.com/) and [PythonAnyWhere](https://www.pythonanywhere.com/details/django_hosting).\n\nSome basic Heroku deployment instrction are found below.\n\n### WSGI\n\nA common method for serving Python web applications involves using a Web Server Gateway Interface (WSGI) package.\n\nGunicorn is a great choice for a WSGI server. They have detailed documentation and installation instructions on their website.\n\n### Hosting static files\n\nThere are numerous ways to host static files for your Django application. One extreemly easy way to do this is by using WhiteNoise, a python package designed to make it possible to serve static files from just about any web application.\n\n## Deploying on Heroku\n\nHere are some of the steps to lauch your Django app with Heroku\n\n### Build your app and run it locally\n\n``` bash\npip install -r requirements.txt\nDownloading/unpacking ...\n...\nSuccessfully installed Django dj-database-url dj-static django-toolbelt gunicorn psycopg2 static3\nCleaning up...\n```\n\n### To run your application locally,\n\n``` bash\nheroku local web\n11:48:19 web.1  | started with pid 36084\n11:48:19 web.1  | 2014-07-17 11:48:19 [36084] [INFO] Starting gunicorn 19.0.0\n11:48:19 web.1  | 2014-07-17 11:48:19 [36084] [INFO] Listening at: http://0.0.0.0:5000 (36084)\n11:48:19 web.1  | 2014-07-17 11:48:19 [36084] [INFO] Using worker: sync\n11:48:19 web.1  | 2014-07-17 11:48:19 [36087] [INFO] Booting worker with pid: 36087\n```\nYour app should now be avaliable and running on http://localhost:5000/.\n\n### Deploy your application on Heroku\n\n``` Bash\ngit add .\n\ngit commit -m \"Added a Procfile.\"\n\nheroku login\nEnter your Heroku credentials.\n...\n\nheroku create\nCreating intense-falls-9163... done, stack is cedar\nhttp://intense-falls-9163.herokuapp.com/ | git@heroku.com:intense-falls-9163.git\nGit remote heroku added\n\ngit push heroku master\n...\n-----\u003e Python app detected\n...\n-----\u003e Launching... done, v7\n       https://intense-falls-9163.herokuapp.com/ deployed to Heroku\n```\n\nMuch more detailed information can be found here https://devcenter.heroku.com/articles/deploying-python\n\n## Using the development version\n\nYou can clone the git repository by doing the following:\n\n``` Bash\n$ git clone git://github.com/vkosuri/django-dialogflow.git\n```\n\n## Examples\n\nAll [examples](./examples) are located here Github repo\n\n## Motivation\n\nhttps://github.com/gunthercox/django_chatterbot\n\n## LICENSE\nLicensed under [MIT](./LICENSE.md)\n\n## Contributing\n\nDevelopment of django_dialogflow happens at Github: http://github.com/vkosuri/django-dialogflow\n\nYou are highly encouraged to participate in the development. If you don't like Github (for some reason) you're welcome to send regular patches.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvkosuri%2Fdjango-dialogflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvkosuri%2Fdjango-dialogflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvkosuri%2Fdjango-dialogflow/lists"}