{"componentChunkName":"component---src-templates-docs-js","path":"/training/tutorials/sample","result":{"data":{"site":{"siteMetadata":{"title":"Dabble Lab","docsLocation":"https://github.com/dabblelab/dabblelab-documentation-site","docsLocationType":"github","editable":true}},"mdx":{"fields":{"id":"b3e4ee83-49b6-5ccf-af91-a6a3b0392d49","title":"Plan My Trip","slug":"/training/tutorials/sample"},"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Plan My Trip\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"section\", null, mdx(\"h1\", {\n    parentName: \"section\"\n  }, \"Plan My Trip\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, \"Focus on building the best voice experience, not error handling. The skill builder\\u2019s new dialog model reduces the amount of handling required in the skill endpoint (backend) to manage slot filling, prompts, and confirmations for a customer intent. All you have to do is respond with a Dialog.Delegate directive if the status in not complete. Alexa will manage the dialogs for you, greatly reducing the amount of handling needed by you to create a great experience.\\nThe \\\"Plan my trip\\\" sample asks the user questions about an upcoming trip they'd like to take. As a part of this Alexa will gather information about when the trip will start as well as where they'd like to leave from and go to. You'll learn how to use the skill builder to create the intents, utterances, and slots for this scenario. This code sample will also show you how to delegate the process of gathering the required slots to Alexa.\")), mdx(\"section\", null, mdx(\"h2\", {\n    parentName: \"section\"\n  }, \"What You Will Need\"), mdx(\"ul\", {\n    parentName: \"section\"\n  }, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"http://developer.amazon.com/alexa\"\n  }), \"Amazon Developer Account\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"http://aws.amazon.com/\"\n  }), \"Amazon Web Services Account\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"The sample code on \", mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"https://github.com/alexa/alexa-cookbook/tree/master/feature-demos/skill-demo-dialog-delegate/\"\n  }), \"GitHub\"), \".\"))), mdx(\"section\", null, mdx(\"h2\", {\n    parentName: \"section\"\n  }, \"Setting Up the Demo\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, \"This folder contains the interaction model and skill code.  It is structured to make it easy to deploy if you have the ASK CLI already setup.  If you would like to use the Developer Portal, you can follow the steps outlined in the \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://github.com/alexa/skill-sample-nodejs-hello-world\"\n  }), \"Hello World\"), \" example, substituting the \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"./models/en-US.json\"\n  }), \"Model\"), \" and the \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"./lambda/custom/index.js\"\n  }), \"skill code\"), \" when called for.\")), mdx(\"section\", null, mdx(\"h2\", {\n    parentName: \"section\"\n  }, \"Exploring Dialog Management\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, \"Once the skill is configured, navigate to the Build tab in the skill builder, and explore the PlanMyTrip Intent, slots, sample utterances and prompts.\")), mdx(\"section\", null, mdx(\"h2\", {\n    parentName: \"section\"\n  }, \"Running the Demo\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, \"To start the demo say \\\"alexa open plan my trip demo\\\".  Alexa will prompt you to provide a US city as a starting point and a US city as a destination.\")), mdx(\"section\", null, mdx(\"h2\", {\n    parentName: \"section\"\n  }, \"Next Steps\"), mdx(\"p\", {\n    parentName: \"section\"\n  }, \"Check out \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://github.com/alexa/skill-sample-nodejs-petmatch\"\n  }), \"Pet Match\"), \" for a skill sample that includes delgation and other features related to dialog management. \")));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#plan-my-trip","title":"Plan My Trip","items":[{"url":"#what-you-will-need","title":"What You Will Need"},{"url":"#setting-up-the-demo","title":"Setting Up the Demo"},{"url":"#exploring-dialog-management","title":"Exploring Dialog Management"},{"url":"#running-the-demo","title":"Running the Demo"},{"url":"#next-steps","title":"Next Steps"}]}]},"timeToRead":1,"parent":{"__typename":"File","relativePath":"training/tutorials/sample.md","fields":{"gitLogLatestAuthorName":"Steven Tingiris","gitLogLatestAuthorEmail":"steve@dabblelab.com","gitLogLatestDate":"a day ago"}},"frontmatter":{"metaTitle":null,"showMetadata":null,"editable":null,"showPreviousNext":null,"showToc":null}},"gitBranch":{"name":"13c9979"},"gitCommit":{"hash":"13c9979ef74a5bc3bfd9b8fc61bafb99ba140d64","date":"2020-11-05 06:24"}},"pageContext":{"id":"b3e4ee83-49b6-5ccf-af91-a6a3b0392d49"}},"staticQueryHashes":["12478684","12478684","2882937274","2882937274","353167761","353167761","3812332637","3812332637"]}