{"id":22612454,"url":"https://github.com/miso-develop/dialogflow2alexa-skill-json","last_synced_at":"2025-08-13T05:16:52.221Z","repository":{"id":135826298,"uuid":"125342415","full_name":"miso-develop/dialogflow2alexa-skill-json","owner":"miso-develop","description":"DialogflowからエクスポートしたzipをもとにAlexa SkillのJSONを生成します(2018/3/10時点の仕様に対応)","archived":false,"fork":false,"pushed_at":"2018-04-15T06:05:06.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T10:14:04.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/miso-develop.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null}},"created_at":"2018-03-15T09:23:37.000Z","updated_at":"2019-07-30T04:40:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e918c738-6866-4d6e-a035-842c5a4e4c61","html_url":"https://github.com/miso-develop/dialogflow2alexa-skill-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miso-develop/dialogflow2alexa-skill-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miso-develop%2Fdialogflow2alexa-skill-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miso-develop%2Fdialogflow2alexa-skill-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miso-develop%2Fdialogflow2alexa-skill-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miso-develop%2Fdialogflow2alexa-skill-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miso-develop","download_url":"https://codeload.github.com/miso-develop/dialogflow2alexa-skill-json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miso-develop%2Fdialogflow2alexa-skill-json/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270183606,"owners_count":24541341,"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-08-13T02:00:09.904Z","response_time":66,"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-12-08T17:12:58.852Z","updated_at":"2025-08-13T05:16:52.156Z","avatar_url":"https://github.com/miso-develop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dialogflow2AlexaSkillJson\r\nDialogflowからエクスポートしたzipをもとにAlexa SkillのJSONを生成します。  \r\n生成されたJSONをAlexa Skillコンソールにドラッグ\u0026ドロップするだけで簡単に移行できます。  \r\n※2018/3/10時点の仕様に対応。  \r\n\r\n## できること\r\n* DialogflowのIntentからAlexa SkillのIntent生成\r\n    * Training phrasesからSample Utterancesへ変換\r\n    * Action and parametersからIntent Slotsへ変換\r\n* DialogflowのEntityからAlexa SkillのSlot Type生成\r\n    * Synonymもおっけー\r\n\r\n## できないこと（誰か機能追加して…）\r\n* DialogflowのContexts対応\r\n* ParameterのRequired対応\r\n\r\n# Usage\r\n\r\n## Install\r\n以下のコマンドを実行。  \r\n\r\n```\r\ngit clone https://github.com/miso-develop/dialogflow2alexa-skill-json\r\ncd dialogflow2alexa-skill-json\r\nnpm i\r\n```\r\n\r\n## Dialogflowのエクスポート\r\n* Dialogflowの[コンソール](https://console.dialogflow.com/api-client/)にてAgent名横の歯車をポチ\r\n* 「Export and Import」タブをポチ\r\n* 「EXPORT AS ZIP」ボタンをポチ\r\n* zipファイルを保存\r\n\r\n## Alexa Skill Jsonの生成\r\n以下のコマンドを実行。  \r\n\r\n```\r\nnode index.js dialogflow.zip\r\n```\r\n\r\n同ディレクトリに`alexa-skill.json`が生成されます。  \r\n\r\n## Alexa Skillへ反映\r\n* Alexaの[コンソール](https://developer.amazon.com/alexa/console/ask/build/)にて「Build」タブをポチ\r\n* 「JSON Editor」をポチ\r\n* `alexa-skill.json`を「Drag and drop a .json file」にドラッグ\u0026ドロップ\r\n* Skill Invocation Nameを手入力して下さい\r\n\r\n## コピペ時の注意事項\r\nAlexa SkillはDialogflowに比べて色々制約がきつく、ちょこちょこ調整する必要があります。  \r\n\r\n* Intent名とSlot名が同じだと怒られます\r\n* サンプル発話（AlexaのSample Utterances）に同じSlotを繰り返し使えません\r\n* Slotの値は基本的に日本語じゃないといけません（頭文字、イニシャリズム、アクロニムを除く）\r\n    * 「a flat」みたいのはエラーは出ませんが申請時にリジェクト食らいます\r\n    * 数字もダメです。カタカナか漢数字にしましょう\r\n\r\n# Contribution\r\n1. Fork it\r\n1. Create your feature branch\r\n1. Commit your changes\r\n1. Push to the branch\r\n1. Create new Pull Request\r\n\r\n# License\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiso-develop%2Fdialogflow2alexa-skill-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiso-develop%2Fdialogflow2alexa-skill-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiso-develop%2Fdialogflow2alexa-skill-json/lists"}