{"id":15547724,"url":"https://github.com/ryu1kn/sandbox--dialogflow","last_synced_at":"2026-02-08T13:31:07.085Z","repository":{"id":38115016,"uuid":"249892627","full_name":"ryu1kn/sandbox--dialogflow","owner":"ryu1kn","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-30T11:04:45.000Z","size":158,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-19T21:10:00.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryu1kn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2020-03-25T05:14:52.000Z","updated_at":"2024-06-20T11:14:06.000Z","dependencies_parsed_at":"2024-06-01T06:39:12.836Z","dependency_job_id":"cf97345f-b4e0-4b66-b0fd-0448760e2926","html_url":"https://github.com/ryu1kn/sandbox--dialogflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryu1kn/sandbox--dialogflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fsandbox--dialogflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fsandbox--dialogflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fsandbox--dialogflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fsandbox--dialogflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryu1kn","download_url":"https://codeload.github.com/ryu1kn/sandbox--dialogflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fsandbox--dialogflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29231509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T13:10:22.947Z","status":"ssl_error","status_checked_at":"2026-02-08T13:08:18.779Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-02T13:10:12.227Z","updated_at":"2026-02-08T13:31:07.071Z","avatar_url":"https://github.com/ryu1kn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dialogflow Sandbox\n\nSetup Dialogflow chatbot that asks a webhook to provide response.\n\nThe webhook runs as a Cloud Function.\n\n## Contents\n\nThis repository has following directory:\n\n* **agent**: Spins up a new Dialogflow agent with intents already imported\n* **app**: Webhook code that Dialogflow consults how it should respond to end users\n* **infra**: Infra code (except Dialogflow agent, that is looked after by the contents under **agent** directory)\n* **conversation-history**: Code to parse conversation history for later analysis\n\n## Prerequisites\n\n* terraform\n* Environment variable `GCP_BILLING_ACCOUNT_ID` is set\n* `gcloud` is authenticated: `gcloud auth login`\n* `gcloud` is configured to the correct project: `gcloud config set project \u003cyour-project\u003e`\n* `jq`\n* `yarn`\n* Node.js v10+\n\n## Setup\n\n1. Create a google sheet and create people data like follows:\n\n    | Name | Hobby  |\n    | ---- | ------ |\n    | Mike | Skiing |\n    | Emma | Coding |\n    | John | Biking |\n\n   Take a memo of sheet id (in the URL) and range (probably `Sheet1!A2:B`),\n   and put them in the [config](./config.json) as `people_sheet_id` and `people_sheet_range`, respectively.\n\n1. Deploy foundational GCP resources\n\n    ```sh\n    make tf-foundation/apply\n    ```\n\n1. Update config with the encrypted webhook auth key (with key `encrypted_webhook_auth_key`)\n\n    ```sh\n    $ make encrypt PLAINTEXT_AUTH_KEY='plaintext-auth-key'\n    ```\n\n1. Deploy webhook\n\n    ```sh\n    make tf-system/apply\n    ```\n\n1. Deploy Dialogflow agent. You need a service account key that has Dialogflow Admin \u0026 KMS Decrypter role.\n\n    ```sh\n    make agent/deploy\n    ```\n\n1. Now use Dialogflow, see your bot knows whose hobby is what!\n\nFor more information, start from [Makefile](./Makefile).\n\n## TODOs\n\n* Reduce manual setup steps\n* Convert config to YAML to allow comments in config\n* Give config file path to terraform to avoid [this upcoming change][2],\n  or introduce [Terragrunt][3].\n\n[1]: https://github.com/terraform-providers/terraform-provider-google/issues/4276\n[2]: https://github.com/hashicorp/terraform/issues/22004\n[3]: https://terragrunt.gruntwork.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryu1kn%2Fsandbox--dialogflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryu1kn%2Fsandbox--dialogflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryu1kn%2Fsandbox--dialogflow/lists"}