Coder Social home page Coder Social logo

alexahelloworld.net's Introduction

Alexa skill using C# and AWS Lambda

Slides

Slides for my talk: Build an Alexa skill with .NET Core and AWS Lambda

Try it yourself

This project contains a simple Hello World skill for Alexa. It's written in C# using the Alexa.NET library and intended to be deployed as a Lambda function.

Follow these steps to try it out yourself:

Create an Alexa skill

Sign in to developer.amazon.com and click on Alexa. Create a new skill using the Alexa Skills Kit.

The skill name and invocation phrase can be anything you want. Use the intent schema and sample utterances from this repo for the interaction model.

Create the Lambda function

First, clone and build the project:

git clone [email protected]:nbarbettini/AlexaHelloWorld.git
cd AlexaHelloWorld
dotnet restore
dotnet build

Then, use dotnet lambda to deploy the function:

cd src
dotnet lambda deploy-function -pcfg true

The script will prompt you to select an IAM role (pick New Role) and a policy (pick the BasicExecutionRole policy). When it's done propagating, you should see New Lambda function created.

Connect Alexa to Lambda

Log into the Lambda console and open the new function you deployed. Add a trigger from Alexa Skills kit, and copy the function ARN from the top right of the page.

Switch back to the Alexa Developer console and select the option to use Lambda as the service endpoint for the skill. Paste the ARN of your Lambda function.

Test it out

Send the say hello world utterance with the Service Simulator. You should see a response from your Lambda function:

Service Simulator screenshot

If you used the same email address for the developer console as you did when you logged into Alexa on your device, you can test the skill live on your device, too!

alexahelloworld.net's People

Contributors

nbarbettini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.