question

Stefan Negritoiu avatar image
Stefan Negritoiu asked

Introducing AlexaAppKit.NET

Hi folks, encouraged by the conversations on this forum about code sharing we're releasing and open sourcing our .NET implementation of Amazon's AlexaAppKit for Java: https://github.com/AreYouFreeBusy/AlexaAppKit.NET This is an implementation from scratch that maintains the "Speechlet" object model/interface introduced by AlexaAppKit for Java. More specifically: public interface ISpeechlet { SpeechletResponse OnIntent(IntentRequest intentRequest, Session session); SpeechletResponse OnLaunch(LaunchRequest launchRequest, Session session); void OnSessionStarted(SessionStartedRequest sessionStartedRequest, Session session); void OnSessionEnded(SessionEndedRequest sessionEndedRequest, Session session); } together with an async version (which we recommend): public interface ISpeechletAsync { Task OnIntentAsync(IntentRequest intentRequest, Session session); Task OnLaunchAsync(LaunchRequest launchRequest, Session session); Task OnSessionStartedAsync(SessionStartedRequest sessionStartedRequest, Session session); Task OnSessionEndedAsync(SessionEndedRequest sessionEndedRequest, Session session); } The library handles the (de)serialization of Alexa requests & responses into easy-to-use object models (using Json.NET library) and verifies request signatures to authenticate the request is a genuine Alexa request (using BouncyCastle library). "We" is this case are the team behind https://freebusy.io who are building a calendar & contacts app for Alexa. Feel free to use, fork, submit pulls requests and give us feedback. Enjoy, Stefan
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jiggybyte avatar image
Jiggybyte answered
This is awesome, thanks guys! Using some of your code to verify the signatures and whatnot already (which was my last missing piece). Going to write my next application using your library and will see how it goes!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

James Chivers avatar image
James Chivers answered
Hey Stefan & Team, congrats on releasing AlexaAppKit.NET ! Hopefully it'll help kickstart .NET developers with Alexa apps; awesome work :)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

justin avatar image
justin answered
Awesome work, freebusy! This is looking very cool, thanks for sharing!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeremy B. avatar image
Jeremy B. answered
Thank you. I'm interested in using this, and wondering how much I need to setup in order to do my first raw test Can I run this locally and submit a direct POST to it (similar to how you could use curl to test other apps)? If so, what would that POST look like? If not, do I need to host it (like on Azure) and register it with my account before I can test?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Stefan Negritoiu avatar image
Stefan Negritoiu answered
Yes, you can run it locally. You can even attach a debugger and see the raw request/response in the debugger output. I'm writing a blog post how to set up your development environment and it will be available shortly at https://freebusy.io/blog Stefan
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Stefan Negritoiu avatar image
Stefan Negritoiu answered
If you're using this library please note it's now renamed (project, assembly, and namespace) to match the "Alexa Skills Kit" theme. New URLs are: Github: https://github.com/AreYouFreeBusy/AlexaSkillsKit.NET Nuget: https://www.nuget.org/packages/AlexaSkillsKit.NET/ Regards, Stefan
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.