Is it possible to have a Siri shortcut with a variable parameter?












1















There are a dozen related actions that users of my app can perform, and I'd like to let them do it with Siri, but I'm unsure how to effectively do that. I know I can donate a INIntent when a user performs an action, but is it possible to donate an action with a customizable parameter? The user could, for example say "Perform action 1", 1 being the parameter. Would the user have to perform each of the 12 actions before they could do that with Siri? I also know it's possible to use NSUserActivity and INInteractions to make it easier for users to use Siri with an app, but I can't find any resources that will let me know if what I want to do is at all possible...










share|improve this question



























    1















    There are a dozen related actions that users of my app can perform, and I'd like to let them do it with Siri, but I'm unsure how to effectively do that. I know I can donate a INIntent when a user performs an action, but is it possible to donate an action with a customizable parameter? The user could, for example say "Perform action 1", 1 being the parameter. Would the user have to perform each of the 12 actions before they could do that with Siri? I also know it's possible to use NSUserActivity and INInteractions to make it easier for users to use Siri with an app, but I can't find any resources that will let me know if what I want to do is at all possible...










    share|improve this question

























      1












      1








      1


      2






      There are a dozen related actions that users of my app can perform, and I'd like to let them do it with Siri, but I'm unsure how to effectively do that. I know I can donate a INIntent when a user performs an action, but is it possible to donate an action with a customizable parameter? The user could, for example say "Perform action 1", 1 being the parameter. Would the user have to perform each of the 12 actions before they could do that with Siri? I also know it's possible to use NSUserActivity and INInteractions to make it easier for users to use Siri with an app, but I can't find any resources that will let me know if what I want to do is at all possible...










      share|improve this question














      There are a dozen related actions that users of my app can perform, and I'd like to let them do it with Siri, but I'm unsure how to effectively do that. I know I can donate a INIntent when a user performs an action, but is it possible to donate an action with a customizable parameter? The user could, for example say "Perform action 1", 1 being the parameter. Would the user have to perform each of the 12 actions before they could do that with Siri? I also know it's possible to use NSUserActivity and INInteractions to make it easier for users to use Siri with an app, but I can't find any resources that will let me know if what I want to do is at all possible...







      ios siri sirikit sirishortcuts






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 21:14









      se_puede_devse_puede_dev

      144212




      144212
























          1 Answer
          1






          active

          oldest

          votes


















          0














          It is not possible to have a variable parameter. Siri shortcuts are for actions, which are executed by the user, so all needed information should be available when donated.
          If you want to perform actions with different parameters, you have to donate for each of these actions.



          You can also check this post in the apple developer forum about the same problem:
          https://forums.developer.apple.com/message/326487#326487






          share|improve this answer
























          • But how do apps like f.e. Things 3 have that?

            – Georg
            Dec 3 '18 at 12:41











          • Please provide me a concrete example what Things 3 can do regarding to your problem. I do not have the app. But from their description, they do not have variable parameters from Siri.

            – Phil_G
            Dec 3 '18 at 14:09











          • It's basically the same as if you f.e. take a reminder shortcut. You get a card with fields where you can define f.e. that the user has to input something. So Things 3 is a 3rd party app and it can do something a first party app can do. But I haven't found out how...

            – Georg
            Dec 3 '18 at 14:36











          • I have looked a little bit at an online article about Things. What I have understood from there, is that through the Siri Shortcut, a task is created inside the app. The view, which is presented to add information, should be in the application itself, and not in the "Siri view". The shortcut does not take any of these parameters from the spoken phrase. The spoken phrase just triggers the creation of a task. So basically, Things 3 is opened by a shortcut and recognizes that it was opened by a shortcut, so it can present you the necessary view to input the information.

            – Phil_G
            Dec 4 '18 at 12:03











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53289585%2fis-it-possible-to-have-a-siri-shortcut-with-a-variable-parameter%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          It is not possible to have a variable parameter. Siri shortcuts are for actions, which are executed by the user, so all needed information should be available when donated.
          If you want to perform actions with different parameters, you have to donate for each of these actions.



          You can also check this post in the apple developer forum about the same problem:
          https://forums.developer.apple.com/message/326487#326487






          share|improve this answer
























          • But how do apps like f.e. Things 3 have that?

            – Georg
            Dec 3 '18 at 12:41











          • Please provide me a concrete example what Things 3 can do regarding to your problem. I do not have the app. But from their description, they do not have variable parameters from Siri.

            – Phil_G
            Dec 3 '18 at 14:09











          • It's basically the same as if you f.e. take a reminder shortcut. You get a card with fields where you can define f.e. that the user has to input something. So Things 3 is a 3rd party app and it can do something a first party app can do. But I haven't found out how...

            – Georg
            Dec 3 '18 at 14:36











          • I have looked a little bit at an online article about Things. What I have understood from there, is that through the Siri Shortcut, a task is created inside the app. The view, which is presented to add information, should be in the application itself, and not in the "Siri view". The shortcut does not take any of these parameters from the spoken phrase. The spoken phrase just triggers the creation of a task. So basically, Things 3 is opened by a shortcut and recognizes that it was opened by a shortcut, so it can present you the necessary view to input the information.

            – Phil_G
            Dec 4 '18 at 12:03
















          0














          It is not possible to have a variable parameter. Siri shortcuts are for actions, which are executed by the user, so all needed information should be available when donated.
          If you want to perform actions with different parameters, you have to donate for each of these actions.



          You can also check this post in the apple developer forum about the same problem:
          https://forums.developer.apple.com/message/326487#326487






          share|improve this answer
























          • But how do apps like f.e. Things 3 have that?

            – Georg
            Dec 3 '18 at 12:41











          • Please provide me a concrete example what Things 3 can do regarding to your problem. I do not have the app. But from their description, they do not have variable parameters from Siri.

            – Phil_G
            Dec 3 '18 at 14:09











          • It's basically the same as if you f.e. take a reminder shortcut. You get a card with fields where you can define f.e. that the user has to input something. So Things 3 is a 3rd party app and it can do something a first party app can do. But I haven't found out how...

            – Georg
            Dec 3 '18 at 14:36











          • I have looked a little bit at an online article about Things. What I have understood from there, is that through the Siri Shortcut, a task is created inside the app. The view, which is presented to add information, should be in the application itself, and not in the "Siri view". The shortcut does not take any of these parameters from the spoken phrase. The spoken phrase just triggers the creation of a task. So basically, Things 3 is opened by a shortcut and recognizes that it was opened by a shortcut, so it can present you the necessary view to input the information.

            – Phil_G
            Dec 4 '18 at 12:03














          0












          0








          0







          It is not possible to have a variable parameter. Siri shortcuts are for actions, which are executed by the user, so all needed information should be available when donated.
          If you want to perform actions with different parameters, you have to donate for each of these actions.



          You can also check this post in the apple developer forum about the same problem:
          https://forums.developer.apple.com/message/326487#326487






          share|improve this answer













          It is not possible to have a variable parameter. Siri shortcuts are for actions, which are executed by the user, so all needed information should be available when donated.
          If you want to perform actions with different parameters, you have to donate for each of these actions.



          You can also check this post in the apple developer forum about the same problem:
          https://forums.developer.apple.com/message/326487#326487







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 '18 at 14:09









          Phil_GPhil_G

          938




          938













          • But how do apps like f.e. Things 3 have that?

            – Georg
            Dec 3 '18 at 12:41











          • Please provide me a concrete example what Things 3 can do regarding to your problem. I do not have the app. But from their description, they do not have variable parameters from Siri.

            – Phil_G
            Dec 3 '18 at 14:09











          • It's basically the same as if you f.e. take a reminder shortcut. You get a card with fields where you can define f.e. that the user has to input something. So Things 3 is a 3rd party app and it can do something a first party app can do. But I haven't found out how...

            – Georg
            Dec 3 '18 at 14:36











          • I have looked a little bit at an online article about Things. What I have understood from there, is that through the Siri Shortcut, a task is created inside the app. The view, which is presented to add information, should be in the application itself, and not in the "Siri view". The shortcut does not take any of these parameters from the spoken phrase. The spoken phrase just triggers the creation of a task. So basically, Things 3 is opened by a shortcut and recognizes that it was opened by a shortcut, so it can present you the necessary view to input the information.

            – Phil_G
            Dec 4 '18 at 12:03



















          • But how do apps like f.e. Things 3 have that?

            – Georg
            Dec 3 '18 at 12:41











          • Please provide me a concrete example what Things 3 can do regarding to your problem. I do not have the app. But from their description, they do not have variable parameters from Siri.

            – Phil_G
            Dec 3 '18 at 14:09











          • It's basically the same as if you f.e. take a reminder shortcut. You get a card with fields where you can define f.e. that the user has to input something. So Things 3 is a 3rd party app and it can do something a first party app can do. But I haven't found out how...

            – Georg
            Dec 3 '18 at 14:36











          • I have looked a little bit at an online article about Things. What I have understood from there, is that through the Siri Shortcut, a task is created inside the app. The view, which is presented to add information, should be in the application itself, and not in the "Siri view". The shortcut does not take any of these parameters from the spoken phrase. The spoken phrase just triggers the creation of a task. So basically, Things 3 is opened by a shortcut and recognizes that it was opened by a shortcut, so it can present you the necessary view to input the information.

            – Phil_G
            Dec 4 '18 at 12:03

















          But how do apps like f.e. Things 3 have that?

          – Georg
          Dec 3 '18 at 12:41





          But how do apps like f.e. Things 3 have that?

          – Georg
          Dec 3 '18 at 12:41













          Please provide me a concrete example what Things 3 can do regarding to your problem. I do not have the app. But from their description, they do not have variable parameters from Siri.

          – Phil_G
          Dec 3 '18 at 14:09





          Please provide me a concrete example what Things 3 can do regarding to your problem. I do not have the app. But from their description, they do not have variable parameters from Siri.

          – Phil_G
          Dec 3 '18 at 14:09













          It's basically the same as if you f.e. take a reminder shortcut. You get a card with fields where you can define f.e. that the user has to input something. So Things 3 is a 3rd party app and it can do something a first party app can do. But I haven't found out how...

          – Georg
          Dec 3 '18 at 14:36





          It's basically the same as if you f.e. take a reminder shortcut. You get a card with fields where you can define f.e. that the user has to input something. So Things 3 is a 3rd party app and it can do something a first party app can do. But I haven't found out how...

          – Georg
          Dec 3 '18 at 14:36













          I have looked a little bit at an online article about Things. What I have understood from there, is that through the Siri Shortcut, a task is created inside the app. The view, which is presented to add information, should be in the application itself, and not in the "Siri view". The shortcut does not take any of these parameters from the spoken phrase. The spoken phrase just triggers the creation of a task. So basically, Things 3 is opened by a shortcut and recognizes that it was opened by a shortcut, so it can present you the necessary view to input the information.

          – Phil_G
          Dec 4 '18 at 12:03





          I have looked a little bit at an online article about Things. What I have understood from there, is that through the Siri Shortcut, a task is created inside the app. The view, which is presented to add information, should be in the application itself, and not in the "Siri view". The shortcut does not take any of these parameters from the spoken phrase. The spoken phrase just triggers the creation of a task. So basically, Things 3 is opened by a shortcut and recognizes that it was opened by a shortcut, so it can present you the necessary view to input the information.

          – Phil_G
          Dec 4 '18 at 12:03


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53289585%2fis-it-possible-to-have-a-siri-shortcut-with-a-variable-parameter%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Xamarin.iOS Cant Deploy on Iphone

          Glorious Revolution

          Dulmage-Mendelsohn matrix decomposition in Python