 Okay, good So welcome to my talk about how to connect an Alexa Amazon device to open stack Bear with me. I'm by far no programmer This is about a hundred lines of Python code that I wrote up because I saw VM We're doing that and that just caught my interest that if VM They can do it we can do it with VM with open stack as well So that's how I started and that's why I wanted to see if I can connect Such a Alexa thing to open stack We will talk a bit about the pre-rex the interaction with Alexa How the application looks like and then hopefully if the demo gods are Are cool with us, then we will do a short demo So what do we need we we need one of those so a Alexa dot will do show whatever just any device we need a server where our application is running Of course, we need a cloud We need some Python to do a bit of coding and of course AWS because there the Alexa skill kit is running To explain what are we doing how all these things are working together So we need a user somebody who is saying something and a echo device Which is recording what what I'm saying. So status report for example This is going to the skill kit and from the skill kit then it's going it's being processed So the first thing that you need to know is something that is called utterance So something that you say so you define a string like status report That is being noticed by Amazon That utterance if it is noticed gets translated to an intent and the intent is actually Something that is being called and will trigger an action So this calls the status intent EN because it's an English and I also did it in German This is going to my OTC control center app. So it's running on our lovely open telecom cloud That's why everything is in magenta From there it's going further to the back end function and the back end function is actually talking to the cloud So it's doing a list servers on the cloud Returning that server list back to the back end function the back end function is talking to the control center app Delivering it back to the skill kit But this time translated in what I actually want to return back So from the pure list of servers that I got from the cloud Translated into a number of total active and stopped and then into a sentence like the total number of VMs in your virtual In your tenant is this and this and that and then this gets delivered back to the echo device and told to the user that Initially asked the question How does the application look like? So what do we need we need a bit of python? So of course we need something to talk to the cloud Python shade is the the weapon of choice that you would take here and then you would need not something to interact with the Alexa device and There's flask which is a very ballistic framework and then there's flask ask for the Alexa skill kit So this brings all the functions that you need to interact with Alexa Then the next thing you need is you need to authenticate to the cloud if you have worked with a python shade before There's a a simple yaml file where you need to put your your username your password your domain All the things that you need to interact with the cloud So that gives you the basic interaction between python and the cloud Then you need an application back end so the thing that is Querying the cloud and delivering something back. So ask for a list of servers and translate the list of servers into Total running stopped. So this is happening here. So I'm just initializing the shade getting a number of servers backed Doing some regular expression scrapping for active and shut off and that gives me the total the active and the Stopped number of virtual machines. So no magic. Just very simple operations. We are doing here And on the other hand the application so how to talk to Alexa So you need to initialize the flask and you need to initialize the Alexa skill kit. So I named it control center It needs to have a name and then a welcome message. So that is the the first part And the second part is how to interact. So there is this VM count intent Which will then return this message the total number of machines is this and this and that or Also a message to to shut down. So we have something to say welcome We have something to to answer and then also something to say goodbye and that's it That's all you need it in total. It's more or less a hundred lines of code And then you are good to go to interact between a cloud and Alexa Talking about the Amazon side, of course, you need to to do something also on on the Alexa side So you need a developer account on on Amazon developer.com You need a a application and There you see you have an invocation name. So it's OTC control center You need an intent that is what I said earlier what is triggering the function So here I gave several examples so you can have one intent and it will have the the utterances here So I can say report total VMs count VMs How many VMs are running inside my tenant and to all these sentences? It will respond with that one intent that is then being called to to actually do it I need an endpoint and if you're doing it seriously, you are hosting it on your own You have a certificate and an SSL and all configured if you just want to test it There's a very cool handy tool, which is called and rock It will forward a local port on your machine And give you an HTTP and HTTPS endpoint Completely with certificates and everything being accepted by Amazon So you can just use that have your Python run on a local port and use n croc to forward it to the internet And be compliant with all the requirements that Amazon would have and That's it now. Let's see if the demo gods are happy So two things we need one is a set the the Alexa skill the other is the n croc So One is this and One is this So and and very important. I need support here No, that was the wrong one. I need an animal sacrifice without animal sacrifice The demo gods are usually not not happy with me Um, so Let's do this Alexa start OTC control center Control center is online How many VMs are running inside my tenant the total number of virtual machines in your tenant is 52 at the moment 39 our running of 13 are stopped shut down See control center shutting down Well, that's it If there are any questions just come over Here is also a link so you can find open telecom cloud there the qr code will take you to the github repository There you can find some further information and also my email if you want to to mail me Just contact me there Thanks for your time