UPDATED 2023-05
I couldnât find how to do this anywhere, so I figured Iâd share what I got sussed so farâŚ
I can now use Siri to post directly to my DList inbox, say like:
- âHey Siri, Send Dynalistâ
- Immediately Prompts for voice input, so I speak: âBleh, Blehâ (I use the count chocula accent for this, of course).
- When finished speaking I tap the screen to stop the recorder. The message is posted within moments to my DList InBox.
Iâm not using âemail to DListâ, Iâm posting direct, and the result is practically immediate.
I did this in iOS12 using âDictationâ via Shortcuts, because Iâm using older iPhone. I heard rumors iOS 13 may allow direct input with Siri (?). For now this is what I gotâŚ
Notes on Setup / Configuration
Essentially this uses IFTTT bridging input from iOS Shortcuts App to DList API.
Prior to iOS13 you would need to use âDictationâ feature to use Siri for voice input (I found no other way to do it using voice from/with Siri).
So the Pathway Map is Siri â Dictation â Shortcut Variable â Shortcut Link to IFTTT Trigger Event â Your Dynalist Inbox
If you are unfamiliar with IFTTT and iOS SHortcuts, it is recommended you do some web searches for reviewing some IFTTT WebHooks, and also some vids on iOS Shortcuts Siri âŚso you can gain an idea on how to navigate their stuff. I put some links I thought might be helpful at the end, and I added some snapshots for iOS Shortcuts in a following post below.
So Hereâs How To Set It UpâŚ
First: Get your DynaList API secret token if you donât have it yet.
https://apidocs.dynalist.io/#general
Iâm using the Send to InBox endpoint, data here:
https://apidocs.dynalist.io/#send-to-inbox
Be sure to Install âShortcutsâ app on your iPhone.
Examplt IFTTT setup of your âEventââŚ
Step1: Choose Service: WebHooks
Step2:
a) Choose Receive a Web Request
b) Event Name: send_to_dynalist (can name it anything -no spaces)
then Click Create Trigger
3) Click âThatâ (for âthen thatâ setup)
- Select Service Webhooks
4) Select Make a Web Request
5) âŚentryâŚ
URL: https://dynalist.io/api/v1/inbox/add
Method: POST
content/type: application/json
BODY (format): {âtokenâ:âyour-DListAPIkey-hereâ,âcontentâ:â{{TITLE}}â,ânoteâ:â{{NOTE}}â}
BODY (actual used): {âtokenâ:âyour-DListAPIkey-hereâ,âcontentâ: â{{Value1}}â}
âŚwhere âyour-DListAPIkey-hereâ is what it says, and Value1 is selected from the âAdd Ingredientâ link below the text-entry box. When you click inside the box after slecting that it will show with those brackets. Keep all the quotes you ssee there in the BODY entry.
Click Create Action
6) No need for notification -just Click Finish
======
7) In IFTTT go to My Applets, Services, Search WebHooks, Choose âDocumentationâ.
Here you can look at template for your event trigger action -you will use this info in Shortcuts on iOS. (Webhooks Integrations - Connect Your Apps with IFTTT)
Retrieve dataâŚ
Youâll needâŚ
Example Post/Get Web REquest: https://maker.ifttt.com/trigger/{event}/with/key/{IFTTTkey}
Retrieve1: âWebhooks Integrations - Connect Your Apps with IFTTTâ
Retrieve2: â{IFTTTkey}â
âŚ{event} is that label from 2b above
You will use these in the shortcut youâll be creating in the Shortcuts app on the iPhone
################
Download Shortcuts for iOS on your device and Launch it
NOTE: This is totally unpolished. I never used any of this IFTTT or Shortcuts before. I am certain I have a few things in there that I donât need. If/As I may clean it up I will update this post later. YMMMV ;^)
Framework: Right now the Shortcut structure I have looks like this:
-
Dictate Text -Set Language, then Set Text: Stop Listening on tap
-
(Not Necessary: Set Variable: Variable / value1 )
-
Text (IFTTT EventName from step 2b above): send_to_dynalist
-
- You will later Label this âTextâ token~variable to âSendDListEvntâ
-
Text: IFTTTkey (from Retrieve2 above)
-
- You will later Label this âTextâ token~variable to âIFTTTKeyâ
-
Get Variable: Variable / value1
-
URL: https://maker.ifttt.com/trigger/SendDListEvnt/with/key/IFTTTKey
Token Entries: Type the above URL the way it appears; You then need to replace âSendDListEvntâ & âIFTTTKeyâ label~placeholders with their relevant text token~variables. To do thisâŚ- First Select the label~placeholder by tapping on it 2x and then choosing âCopyâ âŚand leave it highlighted.
- Then Click âSelect Variableâ in the bar above the keyboard to open the 'Magic Variable selection dialog. Then scroll to Choose the relevant âTextâ variable. It will be posted into your URL.
- Then, Click on the variable in the URL to edit its âVariable Nameâ by tap-and-pasting into its entry field (it will show âTextâ greyed out). You can simply type it in there as well.
â I know⌠it seems tedious, but it is the simplest way to do this since you cannot edit Text item Labels directly AND trying to add Variables while typing a URL is horribly difficult. Trust me.
-
Get Contents of URL: Method POST, Request Body JSON, then ClickâŚ
- Add new field:
- Choose (type) âTextâ
- Click in the âKeyâ entry field and type âvalue1â
- Click in the "âTextâ entry field and then SCROLL the âSelect Variableâ bar and look for either âDictated Textâ OR it may be âvalue1â âŚa blue icon, not an orange one.
- Click Done
-
Set Siri enabled (was needed in the earlier iOSprior to 15 I think)
AND SHOULD BE GOOD TO GO. Test, close an duse it. You can rename the Shortcut for easier Use with Siri. Etc Etc
########
##########
Following is a rehash of the above âFrameworkâ which I think is fairly complete (and updated 2023). I will leave this âsetup procedureâ in here in case the added info may be helpfulâŚ
Setup Steps (you may wish to review one or two of the videos I posted below if this is totally unfamiliar to you -itâll give you a good leg up on getting around in there). I also added some snapshots in the next post below.
-
Create Shortcut (button). This is what you will say to invoke Siri. For instance, Mine is âDynoâ.
-
Search âDictatâ, select and set âDictate Textâ up per the above.
-
Search âset vâ and select and set âSet Variableâ up to âvalue1â
-
search âtextâ, select and setup a âTextâ item to EventName blurb from step 2b above. Mine is âsend_to_dynalistâ (without quotes). Best to rename these -I forget if you have to save first, but you need to be editing it to access the rename command for it (its a bit obscure).
-
Create another âTextâ element and place your IFTTTKey in it. Rename it (to something like IFTTTKey).
-
Search âGet Vâ and select and setup âGet Variableâ âŚVariable / value1 , where value1 is chosen Magic variable from [scroll up to] between Dictate and Set Variable
-
Search URL, Select it and Create a URL element andâŚ
-
- place the portion of âIFTTT trigger URLâ âŚup to but not including the {event}⌠in there. See Retrieve1 above.
-
- Followed by SendDListEvnt text token (you choose it from listed tokens above the keyboard -it will only say the word âTextâ. You can rename it later if you didnât already.
-
- Followed by â/with/key/â (without the quotes)
-
- Followed by IFTTTKey text token, (again, you choose it from listed tokens above the keyboard -it will only say the word âTextâ. You can rename it later if not already done.
Resulting URL should look something like:
Webhooks Integrations - Connect Your Apps with IFTTT<SendDListEvnt_Token>/with/key/<IFTTTKey_Token>
Tip: Again, You can only rename these tokens after you add them to the URL string, so I would try to rename them while I am building the string. These tokens can be used in future Shortcut creations, and can be globally updated if/when you change these values in the future.
-
Search âGet Contâ and select âGet contents of URLâ, and set that to
Method POST, Request Body JSON Text, and +Add a new field changing the keyname to value1, and then set its text to âvariablesâ (select): value1 -
In the upper right corner, just below âDoneâ Tap the Switch-looking Icon that will take you into the Siri settings section.
-
- Check the Name (mine simply read âSend Dynalistâ, and importantly then,
-
- Click into âSiri Phraseâ. you should see âRun Send Dynalistâ (or whatever your phrase is) AND
-
- CLICK âDONEâ in the upper right.
-
Click Done Again
-
From here you can Click Done again and youâll see your Button in the Shortcuts List. You could click the Play Button to test your Shortcut right there though.
And Thatâs pretty much all there is to it.
Good Luck!
Twohawks
=======================
From Here I will leave you with a couple links and resources to check out so if you are unfamiliar with all this, as I was and still am, it can help you get a leg up on some of the interface engagements.
Tutorial 6: IFTTT Web Hooks + Siri
Control Any IFTTT Action with Siri!
How to Trigger IFTTT Applets with iOS 12âs New Shortcuts App and Siri By Federico Viticci