{"id":15619132,"url":"https://github.com/xavidop/alexa-python-lambda-helloworld","last_synced_at":"2026-05-16T18:04:59.859Z","repository":{"id":44757459,"uuid":"255074618","full_name":"xavidop/alexa-python-lambda-helloworld","owner":"xavidop","description":"Alexa Skill template using Python","archived":false,"fork":false,"pushed_at":"2022-01-26T15:17:18.000Z","size":482,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T15:32:28.488Z","etag":null,"topics":["alexa","alexa-custom-skill","alexa-sdk","alexa-skill","alexa-skills-kit","aws","aws-lambda","pip","python","python3","skill-sample"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xavidop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"xavidop","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-04-12T12:10:27.000Z","updated_at":"2025-03-20T05:34:06.000Z","dependencies_parsed_at":"2022-09-03T03:01:40.255Z","dependency_job_id":null,"html_url":"https://github.com/xavidop/alexa-python-lambda-helloworld","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xavidop/alexa-python-lambda-helloworld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavidop%2Falexa-python-lambda-helloworld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavidop%2Falexa-python-lambda-helloworld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavidop%2Falexa-python-lambda-helloworld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavidop%2Falexa-python-lambda-helloworld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xavidop","download_url":"https://codeload.github.com/xavidop/alexa-python-lambda-helloworld/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavidop%2Falexa-python-lambda-helloworld/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271888273,"owners_count":24839141,"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-24T02:00:11.135Z","response_time":111,"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":["alexa","alexa-custom-skill","alexa-sdk","alexa-skill","alexa-skills-kit","aws","aws-lambda","pip","python","python3","skill-sample"],"created_at":"2024-10-03T08:02:53.008Z","updated_at":"2026-05-16T18:04:59.812Z","avatar_url":"https://github.com/xavidop.png","language":"Python","funding_links":["https://github.com/sponsors/xavidop"],"categories":[],"sub_categories":[],"readme":"# Alexa Skill with Python\n\nAlexa skills can be developed using Alexa Lambda functions or a REST API endpoint. \nLambda function is Amazon's implementation of serverless functions available in AWS. \nAmazon recommends using Lambda functions despite they are not easy to debug. \nWhile you can log to a CloudWatch log, you can't hit a breakpoint and step into the code. \n \nThis makes live debugging of Alexa requests a very hard task.\nIn this post, we will implement a custom skill for Amazon Alexa by using Python, npm and AWS Lambda Functions. This skill is basically a Hello World example. \nWith this post you will be able to create a custom skill for Amazon Alexa, implement functionality by using Python and start your custom skill both from your local computer and from AWS.\nThis post contains materials from different resources that can be seen on Resources section.\n\n## Prerequisites\n\nHere you have the technologies used in this project\n1. Amazon Developer Account - [How to get it](http://developer.amazon.com/)\n2. AWS Account - [Sign up here for free](https://aws.amazon.com/)\n3. ASK CLI - [Install and configure ASK CLI](https://developer.amazon.com/es-ES/docs/alexa/smapi/quick-start-alexa-skills-kit-command-line-interface.html)\n4. Python 3.x\n5. Visual Studio Code\n6. pip Package Manager\n7. Alexa ASK for Python (Version \u003e1.10.2)\n8. ngrok\n\nThe Alexa Skills Kit Command Line Interface (ASK CLI) is a tool for you to manage your Alexa skills and related resources, such as AWS Lambda functions.\nWith ASK CLI, you have access to the Skill Management API, which allows you to manage Alexa skills programmatically from the command line.\nWe will use this powerful tool to create, build, deploy and manage our Hello World Skill. Let's start!\n\n## Creating the Skill with ASK CLI\n\nFor creating the Alexa Skill, we will use de ASK CLI previously configured. First of all, we have to execute this command:\n\n```bash\n\n    ask new\n\n```\nThis command will run and interactive step-by-step creation process:\n\n1. The first thing the ASK CLI is going to ask us is the runtime of our Skill. In our case, `Python3`:\n\n![image](img/runtime.png)\n\n2. The second step is the template of the Skill that our Skill is going to base on. In our case, we will select `Hello World (Using Classes)` template:\n\n![image](img/template.png)\n\n3. Finally, the ASK CLI is going to ask about the name of the Skill. We will setup the name `alexa-python-lambda-helloworld`\n\n\n## Project Files \n\nThese are the main files of the project:\n\n```bash\n\n    ├───.ask\n    │       config\n    │\n    ├───.vscode\n    │       launch.json\n    │       tasks.json\n    ├───hooks\n    ├───lambda\n    │   └───py\n    │         ├───errors\n    │         ├───intents\n    │         ├───interceptors\n    │         ├───locales\n    │         ├─── hello_world.py\n    │         └─── requirements.txt\n    ├───models\n    │       es-ES.json\n    ├───skill.json\n    └───local_debugger.py\n\n\n```\n\n* .ask: folder which contains the ASK CLI's config file. This config files will remain empty until we execute the command `ask deploy`\n* `.vscode/launch.json`: Launch preferences to run locally your Skill for local testing and executes all the tasks in `.vscode/tasks.json`. This setting launch `local_debugger.py`. This script runs a server on http://localhost:3001 for debug the Skill.\n* hooks: A folder that contains the hook scripts. Amazon provides two hooks, post_new_hook and pre_deploy_hook.\n  * `post_new_hook`: executed after the Skill creation. In Python creates a Virtual Environment located at `.venv/skill_env`.\n  * `pre_deploy_hook`: executed before the Skill deployment. In python creates the folder `lambda/py/lambda_upload` where will be stored all the necessary to upload the lambda to AWS..\n* lambda/py: A folder that contains the source code for the skill's AWS Lambda function:\n  * `hello_world.py`: the lambda main entry point.\n  * `locales`: i18n dictionaries used by the library `python-i18n` which allow us to run same in Skill in different configuration languages.\n  * `requirementes.txt`: this file stores the Python dependencies of our project and is a basic part of understanding and working with Python and pip.\n  * `errors`: folder that contains all Error handlers.\n  * `intents`: folder that contains all Intent handlers.\n  * `interceptors`: here you can find all interceptors.\n* models – A folder that contains interaction models for the skill. Each interaction model is defined in a JSON file named according to the locale. For example, es-ES.json.\n* `skill.json` – The skill manifest. One of the most important files in our project.\n* `local_debugger.py`: used for debug our skill locally.\n\n\n\n## Lambda function in Python\n\nThe ASK SDK for Python makes it easier for you to build highly engaging skills by allowing you to spend more time implementing features and less time writing boilerplate code.\n\nYou can find documentation, samples and helpful links in their official [GitHub repository](https://github.com/alexa/alexa-skills-kit-sdk-for-python)\n\nThe main Python file in our lambda project is `hello_world.py` located in `lambda/py` folder. This file contains all handlers, interceptors and exports the Skill handler in `handler` object.\n\nThe `handler` object is executed every time AWS Lambda is initiated for this particular function. \nIn theory, an AWS Lambda function is just a single function. This means that we need to define dispatching logic so a single function request can route to appropriate code, hence the handlers.\n\n```python\n\n  from ask_sdk_core.skill_builder import SkillBuilder\n  from ask_sdk_model import Response\n  from intents import LaunchRequestHandler as launch\n  from intents import HelloWorldIntentHandler as hello\n  from intents import HelpIntentHandler as help\n  from intents import CancelOrStopIntentHandler as cancel\n  from intents import SessionEndedRequestHandler as session\n  from intents import IntentReflectorHandler as reflector\n  from errors import CatchAllExceptionHandler as errors\n  from interceptors import LocalizationInterceptor as locale\n\n  # The SkillBuilder object acts as the entry point for your skill, routing all request and response\n  # payloads to the handlers above. Make sure any new handlers or interceptors you've\n  # defined are included below. The order matters - they're processed top to bottom.\n  sb = SkillBuilder()\n\n  sb.add_request_handler(launch.LaunchRequestHandler())\n  sb.add_request_handler(hello.HelloWorldIntentHandler())\n  sb.add_request_handler(help.HelpIntentHandler())\n  sb.add_request_handler(cancel.CancelOrStopIntentHandler())\n  sb.add_request_handler(session.SessionEndedRequestHandler())\n  # make sure IntentReflectorHandler is last so it doesn't override your custom intent handlers\n  sb.add_request_handler(reflector.IntentReflectorHandler())\n\n  sb.add_global_request_interceptor(locale.LocalizationInterceptor())\n\n  sb.add_exception_handler(errors.CatchAllExceptionHandler())\n\n  handler = sb.lambda_handler()\n\n```\nIt is important to take a look into the `LaunchRequestHandler` as an example of Alexa Skill handler written in Python:\n\n```python\n\n  class LaunchRequestHandler(AbstractRequestHandler):\n      \"\"\"Handler for Skill Launch.\"\"\"\n\n      def can_handle(self, handler_input):\n          # type: (HandlerInput) -\u003e bool\n\n          return ask_utils.is_request_type(\"LaunchRequest\")(handler_input)\n\n      def handle(self, handler_input):\n          # type: (HandlerInput) -\u003e Response\n          speak_output = i18n.t(\"strings.WELCOME_MESSAGE\")\n\n          return (\n              handler_input.response_builder\n              .speak(speak_output)\n              .ask(speak_output)\n              .response\n          )\n\n```\n\n## Building the Skill with Visual Studio Code\n\nThe build of the skill is fully automated with the `launch.json` and `tasks.json` in `.vscode` folder . \nThe first file is used for running the skill locally but before that moment we will execute some tasks defined in the second file which are:\n\n1. `create_env`: this task will execute the `hooks\\post_new_hook`. This scprit will do these tasks:\n   * Will install if it is not installed the `virtualenv` library using `pip`.\n   * After install it, it will create a new Python Virtual Environment if it is not created at `.venv/skill_env`\n2. `install_dependencies`: This task will install all dependencies located in `lambda/py/requirements.txt` using the Python Virtual Environment created above.\n3. `build`: Finally, it will copy all the source code from `lambda\\py` to the Python Virtual environment `site-packages` folder.   \n\nHere you have the `tasks.json` where you can find the tasks explained above and the commands separated per operative system:\n```json\n  {\n      // See https://go.microsoft.com/fwlink/?LinkId=733558\n      // for the documentation about the tasks.json format\n      \"version\": \"2.0.0\",\n      \"tasks\": [\n          {\n              \"label\": \"create_env\",\n              \"type\": \"shell\",\n              \"osx\": {\n                  \"command\": \"${workspaceRoot}/hooks/post_new_hook.sh .\"\n              },\n              \"windows\": {\n                  \"command\": \"${workspaceRoot}/hooks/post_new_hook.ps1 .\"\n              },\n              \"linux\": {\n                  \"command\": \"${workspaceRoot}/hooks/post_new_hook.sh .\"\n              }\n          },{\n              \"label\": \"install_dependencies\",\n              \"type\": \"shell\",\n              \"osx\": {\n                  \"command\": \".venv/skill_env/bin/pip -q install -r ${workspaceRoot}/lambda/py/requirements.txt\",\n              },\n              \"windows\": {\n                  \"command\": \".venv/skill_env/Scripts/pip -q install -r ${workspaceRoot}/lambda/py/requirements.txt\",\n              },\n              \"linux\": {\n                  \"command\": \".venv/skill_env/bin/pip -q install -r ${workspaceRoot}/lambda/py/requirements.txt\",\n              },\n              \"dependsOn\": [\n                  \"create_env\"\n              ]\n          },{\n              \"label\": \"build\",\n              \"type\": \"shell\",\n              \"osx\": {\n                  \"command\": \"cp -r ${workspaceRoot}/lambda/py/ ${workspaceRoot}/.venv/skill_env/lib/python3.8/site-packages/\",\n              },\n              \"windows\": {\n                  \"command\": \"xcopy \\\"${workspaceRoot}\\\\lambda\\\\py\\\" \\\"${workspaceRoot}\\\\.venv\\\\skill_env\\\\Lib\\\\site-packages\\\" /s /e /h /y\",\n              },\n              \"linux\": {\n                  \"command\": \"cp -r ${workspaceRoot}/lambda/py/ ${workspaceRoot}/.venv/skill_env/lib/python3.8/site-packages/\",\n              },            \n              \"dependsOn\": [\n                  \"install_dependencies\"\n              ]\n          }\n      ]\n  }\n\n```\n\nAfter that, the skill is ready to be launched locally!\n\nSo for build your skill the only thing you have to do is run it locally in Visual Studio Code:\n\n![image](img/run.png)\n\n\n**NOTE:** pay attention with folder `${workspaceRoot}/.venv/skill_env/lib/python3.8/site-packages/` in Linux and OSX in the task `build`. You have to replace `python3.8` if you are using another version of Python.\n\n## Running the Skill with Visual Studio Code\n\nThe `launch.json` file in `.vscode` folder has the configuration for Visual Studio Code which allow us to run our lambda locally:\n\n```json\n\n  {\n      \"version\": \"0.2.0\",\n      \"configurations\": [\n          {\n              \"type\": \"python\",\n              \"request\": \"launch\",\n              \"name\": \"Launch Skill\",\n              \"justMyCode\": false,\n              // Specify path to the downloaded local adapter(for python) file\n              \"program\": \"${workspaceRoot}/local_debugger.py\",\n              \"osx\": {\n                  \"preLaunchTask\": \"build\",\n                  \"pythonPath\": \"${workspaceRoot}/.venv/skill_env/bin/python\",\n                  \"args\": [\n                      // port number on your local host where the alexa requests will be routed to\n                      \"--portNumber\", \"3001\",\n                      // name of your python main skill file\n                      \"--skillEntryFile\", \"${workspaceRoot}/.venv/skill_env/lib/python3.8/site-packages/hello_world.py\",\n                      // name of your lambda handler\n                      \"--lambdaHandler\", \"handler\"\n                  ],\n              },\n              \"windows\": {\n                  \"preLaunchTask\": \"build\",\n                  \"pythonPath\": \"${workspaceRoot}/.venv/skill_env/Scripts/python.exe\",\n                  \"args\": [\n                      // port number on your local host where the alexa requests will be routed to\n                      \"--portNumber\", \"3001\",\n                      // name of your python main skill file\n                      \"--skillEntryFile\", \"${workspaceRoot}/.venv/skill_env/Lib/site-packages/hello_world.py\",\n                      // name of your lambda handler\n                      \"--lambdaHandler\", \"handler\"\n                  ],\n              },\n              \"linux\": {\n                  \"preLaunchTask\": \"build\",\n                  \"pythonPath\": \"${workspaceRoot}/.venv/skill_env/bin/python\",\n                  \"args\": [\n                      // port number on your local host where the alexa requests will be routed to\n                      \"--portNumber\", \"3001\",\n                      // name of your python main skill file\n                      \"--skillEntryFile\", \"${workspaceRoot}/.venv/skill_env/lib/python3.8/site-packages/hello_world.py\",\n                      // name of your lambda handler\n                      \"--lambdaHandler\", \"handler\"\n                  ],\n              },\n              \n          }\n      ]\n  }\n\n```\nThis configuration file will execute the steps explained in the previous section and the will run the following command:\n\n```bash\n\n  .venv/skill_env/scripts/python local_debugger.py --portNumber 3001 --skillEntryFile .venv/skill_env/Lib/site-packages/hello_world.py --lambdaHandler handler\n\n```\n\nThis configuration uses the `local_debugger.py` file which runs a [TCP server](https://docs.python.org/3/library/socket.html) listening on http://localhost:3001\n\nFor a new incoming skill request a new socket connection is established.\nFrom the data received on the socket the request body is extracted, parsed into JSON and passed to the skill invoker's lambda handler.\nThe response from the lambda handler is parsed as a HTTP 200 message format as specified [here](https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#http-header-1)\nThe response is written onto the socket connection and returned.\n\nAfter configuring our launch.json file and understanding how the local debugger works, it is time to click on the play button:\n\n![image](img/run.png)\n\nAfter executing it, you can send Alexa POST requests to http://localhost:3001.\n\n**NOTE:** pay attention with folder `${workspaceRoot}/.venv/skill_env/lib/python3.8/site-packages/hello_world.py` in Linux and OSX in the task `build`. You have to replace `python3.8` if you are using another version of Python.\n\n## Debugging the Skill with Visual Studio Code\n\nFollowing the steps before, now you can set up breakpoints wherever you want inside all Python files in the `site-package` folder of the Python Virtual Environment in order to debug your skill:\n\n![image](img/debug.png)\n\n## Testing requests locally\n\nI'm sure you already know the famous tool call [Postman](https://www.postman.com/). REST APIs have become the new standard in providing a public and secure interface for your service. Though REST has become ubiquitous, it's not always easy to test. Postman, makes it easier to test and manage HTTP REST APIs. Postman gives us multiple features to import, test and share APIs, which will help you and your team be more productive in the long run.\n\nAfter run your application you will have an endpoint available at http://localhost:3001. With Postman you can emulate any Alexa Request. \n\nFor example, you can test a `LaunchRequest`:\n\n```json\n\n  {\n    \"version\": \"1.0\",\n    \"session\": {\n      \"new\": true,\n      \"sessionId\": \"amzn1.echo-api.session.[unique-value-here]\",\n      \"application\": {\n        \"applicationId\": \"amzn1.ask.skill.[unique-value-here]\"\n      },\n      \"user\": {\n        \"userId\": \"amzn1.ask.account.[unique-value-here]\"\n      },\n      \"attributes\": {}\n    },\n    \"context\": {\n      \"AudioPlayer\": {\n        \"playerActivity\": \"IDLE\"\n      },\n      \"System\": {\n        \"application\": {\n          \"applicationId\": \"amzn1.ask.skill.[unique-value-here]\"\n        },\n        \"user\": {\n          \"userId\": \"amzn1.ask.account.[unique-value-here]\"\n        },\n        \"device\": {\n          \"supportedInterfaces\": {\n            \"AudioPlayer\": {}\n          }\n        }\n      }\n    },\n    \"request\": {\n      \"type\": \"LaunchRequest\",\n      \"requestId\": \"amzn1.echo-api.request.[unique-value-here]\",\n      \"timestamp\": \"2020-03-22T17:24:44Z\",\n      \"locale\": \"en-US\"\n    }\n  }\n\n```\n\n## Deploying your Alexa Skill\n\nWith the code ready to go, we need to deploy it on AWS Lambda so it can be connected to Alexa.\n\nBefore deploy the Alexa Skill, we can show the `config` file in `.ask` folder it is empty:\n\n```json\n    {\n      \"deploy_settings\": {\n        \"default\": {\n          \"skill_id\": \"\",\n          \"was_cloned\": false,\n          \"merge\": {}\n        }\n      }\n    }\n\n```\n\nDeploy Alexa Skill with ASK CLI:\n\n```bash\n    ask deploy\n```\n\nAs the official documentation says:\n\nWhen the local skill project has never been deployed, ASK CLI creates a new skill in the development stage for your account, then deploys the skill project. If applicable, ASK CLI creates one or more new AWS Lambda functions in your AWS account and uploads the Lambda function code. Specifically, ASK CLI does the following:\n\n1. Looks in your skill project's config file (in the .ask folder, which is in the skill project folder) for an existing skill ID. If the config file does not contain a skill ID, ASK CLI creates a new skill using the skill manifest in the skill project's skill.json file, then adds the skill ID to the skill project's config file.\n2. Looks in your skill project's manifest (skill.json file) for the skill's published locales. These are listed in the manifest.publishingInformation.locales object. For each locale, ASK CLI looks in the skill project's models folder for a corresponding model file (for example, es-ES.json), then uploads the model to your skill. ASK CLI waits for the uploaded models to build, then adds each model's eTag to the skill project's config file.\n3. Looks in your skill project's manifest (skill.json file) for AWS Lambda endpoints. These are listed in the manifest.apis.\u003cskill type\u003e.endpoint or manifest.apis.\u003cskill type\u003e.regions.\u003cregion code\u003e.endpoint objects (for example, manifest.apis.custom.endpoint or manifest.apis.smartHome.regions.NA.endpoint). Each endpoint object contains a sourceDir value, and optionally a uri value. ASK CLI upload the contents of the sourceDir folder to the corresponding AWS Lambda function and names the Lambda function the same as the uri value. For more details about how ASK CLI performs uploads to Lambda, see AWS Lambda deployment details.\n4. Looks in your skill project folder for in-skill products, and if it finds any, uploads them to your skill. For more information about in-skill products, see the In-Skill Purchasing Overview.\n\nIn Python there are some more steps. Before deploy your Alexa Skill, the script `pre_deploy_hook` in `hooks` folder will be executed. This script will be run the following tasks:\n1. It will copy all the files of your `site-packages` of your Python Virtual Environment in a new folder called `lambda_upload` located in `lambda/py` folder.\n2. Then will copy the source code of your skill written in Python located in `lambda/py` in `lambda/py/lambda_puload`.\n3. Finally, this new folder as a `.zip` will be deployed to AWS.\n\nAfter the execution of the above command, we will have the `config` file properly filled:\n\n```json\n\n  {\n    \"deploy_settings\": {\n      \"default\": {\n        \"skill_id\": \"amzn1.ask.skill.53ad2510-5758-48db-9c43-e4263a2055db\",\n        \"resources\": {\n          \"lambda\": [\n            {\n              \"alexaUsage\": [\n                \"custom/default\"\n              ],\n              \"arn\": \"arn:aws:lambda:us-east-1:141568529918:function:ask-custom-alexa-python-lambda-helloworld-default\",\n              \"awsRegion\": \"us-east-1\",\n              \"codeUri\": \"lambda/py/lambda_upload\",\n              \"functionName\": \"ask-custom-alexa-python-lambda-helloworld-default\",\n              \"handler\": \"hello_world.handler\",\n              \"revisionId\": \"b95879d0-d039-4fa2-b7e5-96746f36689f\",\n              \"runtime\": \"python3.6\"\n            }\n          ],\n          \"manifest\": {\n            \"eTag\": \"3809be2d04cfb7f90dd0fa023920e0bd\"\n          },\n          \"interactionModel\": {\n            \"es-ES\": {\n              \"eTag\": \"235f49ae9fa329de1b7e2489ec7e4622\"\n            }\n          }\n        },\n        \"was_cloned\": false,\n        \"merge\": {}\n      }\n    }\n  }\n\n```\n\n## Test requests directly from Alexa\n\nngrok is a very cool, lightweight tool that creates a secure tunnel on your local machine along with a public URL you can use for browsing your local site or APIs.\n\nWhen ngrok is running, it listens on the same port that you’re local web server is running on and proxies external requests to your local machine\n\nFrom there, it’s a simple step to get it to listen to your web server. Say you’re running your local web server on port 3001. In terminal, you’d type in: `ngrok http 3001`. This starts ngrok listening on port 3001 and creates the secure tunnel:\n\n![image](img/tunnel.png)\n\nSo now you have to go to [Alexa Developer console](https://developer.amazon.com/alexa/console/ask), go to your skill \u003e endpoints \u003e https, add the https url generated above . Eg: https://20dac120.ngrok.io.\n\nSelect the My development endpoint is a sub-domain.... option from the dropdown and click save endpoint at the top of the page.\n\nGo to Test tab in the Alexa Developer Console and launch your skill.\n\nThe Alexa Developer Console will send a HTTPS request to the ngrok endpoint (https://20dac120.ngrok.io) which will route it to your skill running on Web API server at http://localhost:3001.\n\n\n## Resources\n-  [Official Alexa Skills Kit Python SDK](https://pypi.org/project/ask-sdk/)\n-  [Official Alexa Skills Kit Python SDK Docs](https://alexa-skills-kit-python-sdk.readthedocs.io/en/latest/)\n-  [Official Alexa Skills Kit Docs](https://developer.amazon.com/docs/ask-overviews/build-skills-with-the-alexa-skills-kit.html)\n\n\n## Conclusion \n\nThis was a basic tutorial to learn Alexa Skills using Python.\nAs you have seen in this example, the Alexa Skill Kit for Python and the Alexa Tools like ASK CLI can help us a lot and also they give us the possibility to create skills in an easy way. \nI hope this example project is useful to you.\n\nThat's all folks!\n\nHappy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavidop%2Falexa-python-lambda-helloworld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxavidop%2Falexa-python-lambda-helloworld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavidop%2Falexa-python-lambda-helloworld/lists"}