iOS 12 Shortcuts App - Creating Advanced Siri Shortcuts!

**Using Siri Shortcuts to Automate Network Connections**

In this tutorial, we'll explore how to use Siri shortcuts to automate network connections on your iOS device. We'll start by creating a new shortcut and assigning it a variable name.

To begin, open the Shortcuts app on your iOS device and tap on the "+" icon in the top-right corner to create a new shortcut. You can also choose an existing shortcut or one of Apple's pre-made shortcuts as a starting point. Next, you'll need to choose a variable for the shortcut. Since we want to store the network details, such as SSID and password, let's call this variable "Network details." Go ahead and rename it if you'd like.

Now that we have our variable set, let's add some text to the shortcut. This is where you'll enter the passcode for your Wi-Fi network. For now, leave this field blank, but don't worry – you can fill it in later when testing the shortcut. Next, we need to assign another variable to the text field, which will hold our password. Choose "Text" as the type of variable and rename it to "password."

The next step is to add some text to the shortcut that contains the actual Wi-Fi settings. This can be a bit tricky, but don't worry – we'll get there soon enough. Type in all caps "Wi-Fi:" followed by SSID at a semicolon, then type in "t1 WPA" (the type of network) followed by a semicolon, then add the password, and finally two semicolons at the end.

Now that we have our text fields set up, let's generate a QR code for the shortcut. Tap on the QR code icon to create one, but don't worry if it looks a bit awkward right now – we'll get to optimizing it in a minute.

Take a look at the QR code image below the shortcut preview screen. It may not be the most visually appealing thing, so let's add a quick look to get rid of the ugly results and see how much better it looks.

With our shortcut now optimized for scanning, let's test it out! Tap on "Quick Look" and search for your network name (SSID). You should see an alert asking you to join the network. Click on that, and you'll be connected in no time!

One of the most useful features of Siri shortcuts is their ability to automate tasks. In this case, we've used a shortcut to connect to our Wi-Fi network without having to manually enter the password. If you have guests coming over to your house for the first time and they ask for the Wi-Fi password, you can simply show them this QR code, and they'll be connected in no time.

**Tips and Variations**

* Make sure to name your shortcuts clearly and concisely so you can easily identify them.

* You can customize your shortcuts by adding a voice to Siri or selecting a new icon with a different glyph.

* If you plan on using a shortcut frequently, consider moving it up to the top of your Library to make it more accessible.

**Device Details and Quick Tips**

* When creating a new shortcut, be sure to choose the correct variable type for each field.

* You can also use Siri shortcuts to automate other tasks, such as opening apps or sending messages.

By following these steps and tips, you'll be able to create your own custom Siri shortcuts that make your life easier. Don't forget to leave a comment below with any questions or concerns you may have!

"WEBVTTKind: captionsLanguage: enwhat's up guys my name is Brennan and today I'm gonna be walking you through shortcuts once again but this time I'm gonna be teaching you about more advanced techniques in the application and how to build shortcuts that are a little bit more complex than I showed in my original video if you didn't see my first video on Siri shortcuts make sure to go back and watch that before moving on to this video I go through all of the basics in that video and we're not going to be going through the beginner basics in this video so make sure you watch that so you're not lost and of course you can't find that video up in the cards and also down in the description below and just to let you know there will also be at least one more video on advanced shortcuts after this one so make sure you are subscribe so you don't miss it when it does get uploaded and if I get a great response from this video and possibly the next video I may just continue and make a full series on serious shortcuts so let me know if that's something you're interested in as well let me know down in a comment below all right so let's not waste any more time let's go ahead and get started let's build something useful so let's go ahead and open up the shortcuts application and today we're going to be building two very useful shortcuts and explaining how everything works together and the two shortcuts are going to be a discount calculator which you can see right there which is extremely useful and the other one is going to be this Wi-Fi via QR code so I'm going to show you exactly how to build each one of these step-by-step and explaining the process behind it and of course these two shortcuts are very useful but what's more useful is going through the process so you understand it all so you understand how serious shortcuts works so we're just gonna go ahead and delete these so you can see me build them from scratch let's go all the way down and click on create shortcut and I actually got like five different requests to make a discount calculator shortcut so that's the whole reason I'm making this I got a lot of requests on it so if you work at a retail store like one of the people who actually requested me cover this or if you're just going to be shopping for the holidays coming up and you want to know how much you're gonna be saving this is a great shortcut for you and this shortcut is going to allow you to calculate the amount saved and give you the new pre-tax total with only a couple of taps on your phone and by the way if you do want tax added into the shortcut let me know down in a comment below and I may add a link to that in the description below alright so now let's go ahead and build the discount calculator alright so first things first we're gonna have to ask for an input we're gonna ask what is the original price and by the way I highly suggest having asked for input as a favor because this is something you're going to be using and a ton of shortcuts in the future so ask for input and this of course is going to be this prompt right here so you can type in whatever you want and that's going to take us to the next step so we're gonna have the question say what the price and then we want the input type to be a number and so once we press play you'll see that the pop up pops up what's the price and then we put in our number right there so $25.99 okay of course there's nothing else in the step but that's just what it looks like you know what the first step here alright so now that we have asked for the price now we need to ask for the discount so let's go back to our favourites ask for input what's the discount and of course the input type is also going to be a number for the discount because it is going to be a percentage all right so now we have two input pop-ups what's the price and what's the discount and what we need to do now is make the discount a variable so we can call on it later get variable is something else you should add to your favorite so if you just click on the I and favorite that's something you will also be using a lot now if we just go back over here favorites get variable and now we're going to choose our variable let's do select magic variable we're gonna click right here for the input from the discount for now so you can see the name of that variable is ask for input if we click on that click rename let's change this to discount discount there we go click done and now we want to calculate so go and click on calculate right there and since we're trying to take off a percentage we're going to divide by a hundred and let's add another calculate because we do need to multiply it by the original price now and this is just how you would do it if you had a calculator in front of you you divide by 100 and then multiply it by the original price but in this case the original price is going to vary from user to user so what we're going to do is click on this little wand right here we're gonna go all the way up to the top for the original price click on that and now what we're telling shortcuts to do is to take the discount which we added the variable there we're telling it to divide the discount by 100 and then multiply that by the original price and once again we do want to change the name of this just so we can keep everything clean and we know what everything is we're just gonna rename this to og price so there you go that's a lot easier to understand when you're just looking at it and now just to make things easier because I am OCD I would like to format the number we're just gonna do two decimal places that way you don't have a result that's like nine decimal places over and just you know it's hard to read and looks bad so now that we have that I hope you are following along we're gonna go ahead and get another variable this time we're gonna actually choose the original price so let's do select magic variable let's go all the way up to the top to the original price go and click on that and now we're going to subtract the original price minus the discount so we're going to make sure to select minus on the operation and the operand it should be the discount so if you go over here you should see the magic right there and we're going to click on the final calculation result which would be right here after it gets formatted so click on that and once again we want to rename that discount and once again we're going to format the number to two decimal places and so just to recap what we did here is we took the original price and we subtracted the final result of the discount which was going through all this dividing by 100 and then multiplying by the original price and then formatting it to two decimal places we were subtracting the discount from the original price here so if we go ahead and run this you can see so what's the price so we'll just say ten dollars then it's gonna ask what's the discounts let's say it's 10% okay and you can see it shows nine dollars here as the result and that result there is going to be the total after taking 10% off of ten dollars obviously 10% of 10 is 1 1 minus 10 is 9 so that's all good but we don't actually have a pop-up that shows us that so now what we want to do is create an alert so if you search for alert you should see show alert and let's make the title let's just say we want to see how much we save so it let's just say you saved let's put the dollar sign and then let's select a variable so let's go to variables right here and we're going to select discount and then in the actual alert body we'll say you save as click variables discount and the total will be and I forget what it is we're just gonna select this and we're gonna go all the way down to here to the final formatted number right here that's what we want to select because that's going to give us our final price right there let's put an exclamation point now let's run this to make sure it works ten dollars ten percent off you'll save one dollar you'll save one dollar and the new total will be $9 so yes it does work but we don't need cancel in okay so let's just go ahead and remove cancel and now let's try this with a more complex number so let's say that the total is or the original price is 162 85 and the discount is 39 percent okay so you can see it says you'll save 63 51 and a new total will be 99 34 now if we didn't have the format number these decimals would be going crazy and it would look super ugly so yeah that is how you build a discount calculator super super useful I use this actually all the time since I built it it's really handy to use from the widgets panel you can just go on your lock screen and do it from over there if you're on your home screen swipe over and you can see it on the widgets panel of course you can just ask Siri or just go into the shortcuts app and click it if you want but I just find it to be very quick from the widgets panel so yeah if you guys have any questions I tried to go as slow as possible and try to you know explain every part as much as possible but I'm sure there's still people out there with questions so if you have any questions at all let me know down in a comment below so now let's move on to the next shortcut which is Wi-Fi via QR code so let's go to create shortcut and what I like about teaching you guys this next shortcut is because we're going to be using a feature we haven't used yet which is getting device details so if we go into the scripting section you can see we get a lot of interesting things to do here but the thing we're going to do first is get Network detail so let's click on that and we're going to make sure it's Wi-Fi network name and then we need to set this as a variable of course so we can call on it later so let's go to favorites get variable and we are going to choose the variable as Network details once again let's rename that we'll just call that SSID so all we've done so far is got the network details of our phone the Wi-Fi that we're connected to currently and we set that as a variable as SSID so we can call on it later now we're gonna add in some text and this is where you're going to enter the passcode for your Wi-Fi network I'm gonna leave this blank for now but I will put it in right before I run the shortcut so you can see that it works and then of course we want to set that as a variable as well we're gonna choose the variable as the text right there once again let's rename that to password since that is the password of our Wi-Fi network now we're going to add another text and this one is tricky so we're gonna type in in all caps Wi-Fi : s : and then we're going to do SSID at a semicolon there no spaces then we're gonna do t1 WPA which is the type of network around do semicolon P : oops and then password then we're gonna add two semicolons at the very end of course I don't expect you guys to know this but this is how the actual iPhone reads the SSID and your password and now we want to generate a QR code so it's going to click on that error correction doesn't really matter and if we run this you can see that it gives us a QR code but of course we don't have our passcode put in and if you were to run this that's a pretty small QR code and you won't really get that result from the widget screen so we're gonna have to add a quick look go and search for a quick look right there and this is just going to show us a quick look of the image that way it doesn't actually have to save it to your camera roll and it doesn't you have to pop up inside of the shortcuts app and just be really small and ugly like that so now if we run it with quick look let's see how much better it looks it's going click play you can see it gives us a full-screen image right there without saving anything or anything like that makes it a lot easier to scan all right so now I'm gonna put it in my passcode for my Wi-Fi network then we're going to test this so now we have the QR code right there and you can see my iPhone 7 plus right here I can't connect to the network without a passcode but we're going to go to our camera we're going to scan that you'll see we get an alert to join the network code and click on that join let's go back to the settings so you can see it does actually connect to it very quickly and there you go we are connected without ever having to touch the passcode settings inside of Wi-Fi so that is super useful if you have people coming over to your house for the first time and they ask for the Wi-Fi password and it's you know something very long you could just have them scan the QR code and it will connect them automatically so super super useful stuff and you guys also learned a little bit about getting device details by creating the shortcut and of course when you go back to your library you do want to name these and customize them as well so for the discount calculator if you go into it click these little dots let's name it discount calculator done you can add you can add a voice to Siri you want to make sure it shows in widget you can select a new icon with a different glyph if you want we're just gonna choose that and we'll do like an orange color that looks good there we go if it's something you're gonna use a lot you can go ahead and move it up to the top I know I'm going to use this a lot so I'm going to move it up to the top notification was in the way there there we go done and you can do that for all of them so anyways guys there you have it that is a little bit more of an advanced tutorial using Siri shortcuts here in iOS 12 I hope this helped you out if it did make sure you give this video a thumbs up and leave any kind of comments any questions concerns anything down in the comment section below and I will try to help you out and also if you guys do want more videos on Siri shortcuts let me know I do plan on making them but I do want to see that people want them as well so let me know down in the comments section also over on Twitter if you are following me over there but anyways guys thanks again for watching and I'll see you soonwhat's up guys my name is Brennan and today I'm gonna be walking you through shortcuts once again but this time I'm gonna be teaching you about more advanced techniques in the application and how to build shortcuts that are a little bit more complex than I showed in my original video if you didn't see my first video on Siri shortcuts make sure to go back and watch that before moving on to this video I go through all of the basics in that video and we're not going to be going through the beginner basics in this video so make sure you watch that so you're not lost and of course you can't find that video up in the cards and also down in the description below and just to let you know there will also be at least one more video on advanced shortcuts after this one so make sure you are subscribe so you don't miss it when it does get uploaded and if I get a great response from this video and possibly the next video I may just continue and make a full series on serious shortcuts so let me know if that's something you're interested in as well let me know down in a comment below all right so let's not waste any more time let's go ahead and get started let's build something useful so let's go ahead and open up the shortcuts application and today we're going to be building two very useful shortcuts and explaining how everything works together and the two shortcuts are going to be a discount calculator which you can see right there which is extremely useful and the other one is going to be this Wi-Fi via QR code so I'm going to show you exactly how to build each one of these step-by-step and explaining the process behind it and of course these two shortcuts are very useful but what's more useful is going through the process so you understand it all so you understand how serious shortcuts works so we're just gonna go ahead and delete these so you can see me build them from scratch let's go all the way down and click on create shortcut and I actually got like five different requests to make a discount calculator shortcut so that's the whole reason I'm making this I got a lot of requests on it so if you work at a retail store like one of the people who actually requested me cover this or if you're just going to be shopping for the holidays coming up and you want to know how much you're gonna be saving this is a great shortcut for you and this shortcut is going to allow you to calculate the amount saved and give you the new pre-tax total with only a couple of taps on your phone and by the way if you do want tax added into the shortcut let me know down in a comment below and I may add a link to that in the description below alright so now let's go ahead and build the discount calculator alright so first things first we're gonna have to ask for an input we're gonna ask what is the original price and by the way I highly suggest having asked for input as a favor because this is something you're going to be using and a ton of shortcuts in the future so ask for input and this of course is going to be this prompt right here so you can type in whatever you want and that's going to take us to the next step so we're gonna have the question say what the price and then we want the input type to be a number and so once we press play you'll see that the pop up pops up what's the price and then we put in our number right there so $25.99 okay of course there's nothing else in the step but that's just what it looks like you know what the first step here alright so now that we have asked for the price now we need to ask for the discount so let's go back to our favourites ask for input what's the discount and of course the input type is also going to be a number for the discount because it is going to be a percentage all right so now we have two input pop-ups what's the price and what's the discount and what we need to do now is make the discount a variable so we can call on it later get variable is something else you should add to your favorite so if you just click on the I and favorite that's something you will also be using a lot now if we just go back over here favorites get variable and now we're going to choose our variable let's do select magic variable we're gonna click right here for the input from the discount for now so you can see the name of that variable is ask for input if we click on that click rename let's change this to discount discount there we go click done and now we want to calculate so go and click on calculate right there and since we're trying to take off a percentage we're going to divide by a hundred and let's add another calculate because we do need to multiply it by the original price now and this is just how you would do it if you had a calculator in front of you you divide by 100 and then multiply it by the original price but in this case the original price is going to vary from user to user so what we're going to do is click on this little wand right here we're gonna go all the way up to the top for the original price click on that and now what we're telling shortcuts to do is to take the discount which we added the variable there we're telling it to divide the discount by 100 and then multiply that by the original price and once again we do want to change the name of this just so we can keep everything clean and we know what everything is we're just gonna rename this to og price so there you go that's a lot easier to understand when you're just looking at it and now just to make things easier because I am OCD I would like to format the number we're just gonna do two decimal places that way you don't have a result that's like nine decimal places over and just you know it's hard to read and looks bad so now that we have that I hope you are following along we're gonna go ahead and get another variable this time we're gonna actually choose the original price so let's do select magic variable let's go all the way up to the top to the original price go and click on that and now we're going to subtract the original price minus the discount so we're going to make sure to select minus on the operation and the operand it should be the discount so if you go over here you should see the magic right there and we're going to click on the final calculation result which would be right here after it gets formatted so click on that and once again we want to rename that discount and once again we're going to format the number to two decimal places and so just to recap what we did here is we took the original price and we subtracted the final result of the discount which was going through all this dividing by 100 and then multiplying by the original price and then formatting it to two decimal places we were subtracting the discount from the original price here so if we go ahead and run this you can see so what's the price so we'll just say ten dollars then it's gonna ask what's the discounts let's say it's 10% okay and you can see it shows nine dollars here as the result and that result there is going to be the total after taking 10% off of ten dollars obviously 10% of 10 is 1 1 minus 10 is 9 so that's all good but we don't actually have a pop-up that shows us that so now what we want to do is create an alert so if you search for alert you should see show alert and let's make the title let's just say we want to see how much we save so it let's just say you saved let's put the dollar sign and then let's select a variable so let's go to variables right here and we're going to select discount and then in the actual alert body we'll say you save as click variables discount and the total will be and I forget what it is we're just gonna select this and we're gonna go all the way down to here to the final formatted number right here that's what we want to select because that's going to give us our final price right there let's put an exclamation point now let's run this to make sure it works ten dollars ten percent off you'll save one dollar you'll save one dollar and the new total will be $9 so yes it does work but we don't need cancel in okay so let's just go ahead and remove cancel and now let's try this with a more complex number so let's say that the total is or the original price is 162 85 and the discount is 39 percent okay so you can see it says you'll save 63 51 and a new total will be 99 34 now if we didn't have the format number these decimals would be going crazy and it would look super ugly so yeah that is how you build a discount calculator super super useful I use this actually all the time since I built it it's really handy to use from the widgets panel you can just go on your lock screen and do it from over there if you're on your home screen swipe over and you can see it on the widgets panel of course you can just ask Siri or just go into the shortcuts app and click it if you want but I just find it to be very quick from the widgets panel so yeah if you guys have any questions I tried to go as slow as possible and try to you know explain every part as much as possible but I'm sure there's still people out there with questions so if you have any questions at all let me know down in a comment below so now let's move on to the next shortcut which is Wi-Fi via QR code so let's go to create shortcut and what I like about teaching you guys this next shortcut is because we're going to be using a feature we haven't used yet which is getting device details so if we go into the scripting section you can see we get a lot of interesting things to do here but the thing we're going to do first is get Network detail so let's click on that and we're going to make sure it's Wi-Fi network name and then we need to set this as a variable of course so we can call on it later so let's go to favorites get variable and we are going to choose the variable as Network details once again let's rename that we'll just call that SSID so all we've done so far is got the network details of our phone the Wi-Fi that we're connected to currently and we set that as a variable as SSID so we can call on it later now we're gonna add in some text and this is where you're going to enter the passcode for your Wi-Fi network I'm gonna leave this blank for now but I will put it in right before I run the shortcut so you can see that it works and then of course we want to set that as a variable as well we're gonna choose the variable as the text right there once again let's rename that to password since that is the password of our Wi-Fi network now we're going to add another text and this one is tricky so we're gonna type in in all caps Wi-Fi : s : and then we're going to do SSID at a semicolon there no spaces then we're gonna do t1 WPA which is the type of network around do semicolon P : oops and then password then we're gonna add two semicolons at the very end of course I don't expect you guys to know this but this is how the actual iPhone reads the SSID and your password and now we want to generate a QR code so it's going to click on that error correction doesn't really matter and if we run this you can see that it gives us a QR code but of course we don't have our passcode put in and if you were to run this that's a pretty small QR code and you won't really get that result from the widget screen so we're gonna have to add a quick look go and search for a quick look right there and this is just going to show us a quick look of the image that way it doesn't actually have to save it to your camera roll and it doesn't you have to pop up inside of the shortcuts app and just be really small and ugly like that so now if we run it with quick look let's see how much better it looks it's going click play you can see it gives us a full-screen image right there without saving anything or anything like that makes it a lot easier to scan all right so now I'm gonna put it in my passcode for my Wi-Fi network then we're going to test this so now we have the QR code right there and you can see my iPhone 7 plus right here I can't connect to the network without a passcode but we're going to go to our camera we're going to scan that you'll see we get an alert to join the network code and click on that join let's go back to the settings so you can see it does actually connect to it very quickly and there you go we are connected without ever having to touch the passcode settings inside of Wi-Fi so that is super useful if you have people coming over to your house for the first time and they ask for the Wi-Fi password and it's you know something very long you could just have them scan the QR code and it will connect them automatically so super super useful stuff and you guys also learned a little bit about getting device details by creating the shortcut and of course when you go back to your library you do want to name these and customize them as well so for the discount calculator if you go into it click these little dots let's name it discount calculator done you can add you can add a voice to Siri you want to make sure it shows in widget you can select a new icon with a different glyph if you want we're just gonna choose that and we'll do like an orange color that looks good there we go if it's something you're gonna use a lot you can go ahead and move it up to the top I know I'm going to use this a lot so I'm going to move it up to the top notification was in the way there there we go done and you can do that for all of them so anyways guys there you have it that is a little bit more of an advanced tutorial using Siri shortcuts here in iOS 12 I hope this helped you out if it did make sure you give this video a thumbs up and leave any kind of comments any questions concerns anything down in the comment section below and I will try to help you out and also if you guys do want more videos on Siri shortcuts let me know I do plan on making them but I do want to see that people want them as well so let me know down in the comments section also over on Twitter if you are following me over there but anyways guys thanks again for watching and I'll see you soon\n"