{"__v":2,"_id":"5845a4a99f6fbb1b00430808","category":{"version":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","_id":"5845a4a89f6fbb1b004307bd","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-08T18:48:02.369Z","from_sync":false,"order":5,"slug":"integrations","title":"Integrations"},"parentDoc":null,"project":"54d3007669578e0d002730c9","user":"55a04a395730f40d001104d2","version":{"__v":1,"_id":"5845a4a89f6fbb1b004307b7","project":"54d3007669578e0d002730c9","createdAt":"2016-12-05T17:32:24.708Z","releaseDate":"2016-12-05T17:32:24.708Z","categories":["5845a4a89f6fbb1b004307b8","5845a4a89f6fbb1b004307b9","5845a4a89f6fbb1b004307ba","5845a4a89f6fbb1b004307bb","5845a4a89f6fbb1b004307bc","5845a4a89f6fbb1b004307bd","5845a4a89f6fbb1b004307be","5845a4a89f6fbb1b004307bf","5845a4a89f6fbb1b004307c0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"25.0.0","version":"25"},"updates":["58f24563b46be41900523429","58f3a9b9179dfb1900ddc3ad"],"next":{"pages":[],"description":""},"createdAt":"2015-10-08T17:49:31.816Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":13,"body":"Our Alexa integration feature allows you to export your agent as Amazon(c) Alexa compatible files, which include Intent Schema and Utterances. See [official documentation](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface) for details.\n\nTo export Alexa Compatible files, choose 'Integrations' from the left side menu and click on Amazon Alexa settings. In the settings, click the \"Export for Alexa\" button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/8AixngfeRtC2GHa58SJQ_Alexa-integration.png\",\n        \"Alexa-integration.png\",\n        \"2055\",\n        \"1385\",\n        \"#289bdf\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nYou will get some files in the zip archive: **IntentSchema.json**, **SampleUtterances.baf** and number of **.txt** files according to used entities. The first file contains intent schema according to [The Intent Schema](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface) and looks like the following:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"intents\\\": [\\n    {\\n      \\\"intent\\\": \\\"TimeDeliveryTime\\\",\\n      \\\"slots\\\": [\\n        {\\n          \\\"name\\\": \\\"dateslot\\\",\\n          \\\"type\\\": \\\"AMAZON.DATE\\\"\\n        },\\n        {\\n          \\\"name\\\": \\\"timeslot\\\",\\n          \\\"type\\\": \\\"AMAZON.TIME\\\"\\n        }\\n      ]\\n    },\\n    {\\n      \\\"intent\\\": \\\"SizeSize\\\",\\n      \\\"slots\\\": [\\n        {\\n          \\\"name\\\": \\\"sizeslot\\\",\\n          \\\"type\\\": \\\"SIZE\\\"\\n        }\\n      ]\\n    },\\n...\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nThe second file will contain sample phrases with specially allocated slots, and will look like this:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"Pizza\\tdeliver pizza\\nPizza\\ti love pizza\\nPizza\\ti want to eat pizza\\nPizza\\tpizza\\nPizza\\tpizza delivery\\nCrustPizzaCrust\\t{crustslot} pizza\\nCrustPizzaCrust\\t{crustslot}\\nCrustPizzaCrust\\ti like {crustslot}\\nCrustPizzaCrust\\ti like {crustslot} pizza\\nCrustPizzaCrust\\ti want {crustslot}\\nCrustPizzaCrust\\ti want {crustslot} pizza\\n...\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nAnother files contains Custom Slots according to [Custom Slot Type](https://developer.amazon.com/appsandservices/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface#The%20Speech%20Input%20Data) format.\n\nYou can use this files to create Alexa Skill in the [Amazon Developer Dashboard](https://developer.amazon.com/edw/home.html#/skills).  \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/QMbuDGRoa7WytKJkAVAv_addSkill.png\",\n        \"addSkill.png\",\n        \"1142\",\n        \"343\",\n        \"#816a34\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nPress the **Add a New Skill** button and fill in the description fields on the **Skill Information** step.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/r80yC4OUTpKzSzgwK0fp_skillInformation.png\",\n        \"skillInformation.png\",\n        \"1022\",\n        \"489\",\n        \"#373c9c\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nOn the **Interaction Model** step, fill in the **Intent Schema** from **IntentSchema.json** file.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/ke5DJHrRSGMEzh7gQu9j_intentSchema.png\",\n        \"intentSchema.png\",\n        \"798\",\n        \"280\",\n        \"#3b3bda\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nFor each **.txt** file create appropriate **Custom Slot Type**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/FvUtT86Rz61ImaZFwrog_customSlotTypes.png\",\n        \"customSlotTypes.png\",\n        \"800\",\n        \"354\",\n        \"#4141a5\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nPaste content from **SampleUtterances.baf** file to **Sample Utterances** field and press the **Save** button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/oE3gHCQ0R9aEoE8HCAN1_utterances.png\",\n        \"utterances.png\",\n        \"794\",\n        \"286\",\n        \"#545cfc\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nMake sure the model successfully pass checking and press **Next** button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/2a7leAqSGa4OpSBZiRkc_checked.png\",\n        \"checked.png\",\n        \"544\",\n        \"85\",\n        \"#555555\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nAnswer the question about certificate, make some test calls and fill in publishing information.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/pA9IGfaaRUynKIqmBqwC_end.png\",\n        \"end.png\",\n        \"1016\",\n        \"447\",\n        \"#314d59\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"alexa-integration","type":"basic","title":"Alexa Integration"}
Our Alexa integration feature allows you to export your agent as Amazon(c) Alexa compatible files, which include Intent Schema and Utterances. See [official documentation](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface) for details. To export Alexa Compatible files, choose 'Integrations' from the left side menu and click on Amazon Alexa settings. In the settings, click the "Export for Alexa" button. [block:image] { "images": [ { "image": [ "https://files.readme.io/8AixngfeRtC2GHa58SJQ_Alexa-integration.png", "Alexa-integration.png", "2055", "1385", "#289bdf", "" ] } ] } [/block] You will get some files in the zip archive: **IntentSchema.json**, **SampleUtterances.baf** and number of **.txt** files according to used entities. The first file contains intent schema according to [The Intent Schema](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface) and looks like the following: [block:code] { "codes": [ { "code": "{\n \"intents\": [\n {\n \"intent\": \"TimeDeliveryTime\",\n \"slots\": [\n {\n \"name\": \"dateslot\",\n \"type\": \"AMAZON.DATE\"\n },\n {\n \"name\": \"timeslot\",\n \"type\": \"AMAZON.TIME\"\n }\n ]\n },\n {\n \"intent\": \"SizeSize\",\n \"slots\": [\n {\n \"name\": \"sizeslot\",\n \"type\": \"SIZE\"\n }\n ]\n },\n...", "language": "json" } ] } [/block] The second file will contain sample phrases with specially allocated slots, and will look like this: [block:code] { "codes": [ { "code": "Pizza\tdeliver pizza\nPizza\ti love pizza\nPizza\ti want to eat pizza\nPizza\tpizza\nPizza\tpizza delivery\nCrustPizzaCrust\t{crustslot} pizza\nCrustPizzaCrust\t{crustslot}\nCrustPizzaCrust\ti like {crustslot}\nCrustPizzaCrust\ti like {crustslot} pizza\nCrustPizzaCrust\ti want {crustslot}\nCrustPizzaCrust\ti want {crustslot} pizza\n...", "language": "text" } ] } [/block] Another files contains Custom Slots according to [Custom Slot Type](https://developer.amazon.com/appsandservices/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface#The%20Speech%20Input%20Data) format. You can use this files to create Alexa Skill in the [Amazon Developer Dashboard](https://developer.amazon.com/edw/home.html#/skills). [block:image] { "images": [ { "image": [ "https://files.readme.io/QMbuDGRoa7WytKJkAVAv_addSkill.png", "addSkill.png", "1142", "343", "#816a34", "" ] } ] } [/block] Press the **Add a New Skill** button and fill in the description fields on the **Skill Information** step. [block:image] { "images": [ { "image": [ "https://files.readme.io/r80yC4OUTpKzSzgwK0fp_skillInformation.png", "skillInformation.png", "1022", "489", "#373c9c", "" ] } ] } [/block] On the **Interaction Model** step, fill in the **Intent Schema** from **IntentSchema.json** file. [block:image] { "images": [ { "image": [ "https://files.readme.io/ke5DJHrRSGMEzh7gQu9j_intentSchema.png", "intentSchema.png", "798", "280", "#3b3bda", "" ] } ] } [/block] For each **.txt** file create appropriate **Custom Slot Type**. [block:image] { "images": [ { "image": [ "https://files.readme.io/FvUtT86Rz61ImaZFwrog_customSlotTypes.png", "customSlotTypes.png", "800", "354", "#4141a5", "" ] } ] } [/block] Paste content from **SampleUtterances.baf** file to **Sample Utterances** field and press the **Save** button. [block:image] { "images": [ { "image": [ "https://files.readme.io/oE3gHCQ0R9aEoE8HCAN1_utterances.png", "utterances.png", "794", "286", "#545cfc", "" ] } ] } [/block] Make sure the model successfully pass checking and press **Next** button. [block:image] { "images": [ { "image": [ "https://files.readme.io/2a7leAqSGa4OpSBZiRkc_checked.png", "checked.png", "544", "85", "#555555", "" ] } ] } [/block] Answer the question about certificate, make some test calls and fill in publishing information. [block:image] { "images": [ { "image": [ "https://files.readme.io/pA9IGfaaRUynKIqmBqwC_end.png", "end.png", "1016", "447", "#314d59", "" ] } ] } [/block]