[Tutorial] Add to multiple inboxes! via any voice assistant! [IFTTT Webhooks]

Now that IFTTT Pro is out you can make this even more powerful. Here’s the code to add todays date to an input: Use date picker in the API via voice (IFTTT Pro)

1 Like

This is insanely usefull. Even though it only works in some languages.

1 Like

If you want to take this further and have IFTTT Pro, they have a new recipe feature called a “filter” which lets you transform data with javascript as it flows thru your recipe.

Here is the code I use to transform the word “tomorrow” in the notes I add to dynalist into the ! formatted date for tomorrow, as it flows via voice into my Google Assistant. Sorry if that’s confusing, just providing some inspiration here:

let today = (new Date(Date.now() - (60000 * 8 * 60) + (60000 * 24 * 60))).toISOString().slice(0, 10);

let varText = GoogleAssistant.voiceTriggerWithOneTextIngredient.TextField + ' !(' + today + ')';

let varBody = '{"token":"doooooooooooooongs","content":"' + varText + '"}';

MakerWebhooks.makeWebRequest.setBody(varBody);

This all is really great but Google Assistant interrupting you when you do even a slight pause while speaking out your note :man_facepalming:t2: … What is your recommendation on that?

Google Assistant interprets ~1-2 seconds silence as End of Command. There’s no way to change that as far as I know. They have to balance simplicity with speed.

You either need to repeat the command, or say a filler every second - “uh”, “erm”, “um”. Google automatically ignores fillers but it does extend the time while you think of what to say.

If you want to dictate using Google speech recognition without any timeouts, these are the 3 options I’ve found:

There is also the Dictate button on Macbooks, but it times out with silences too.

1 Like

Thanks a lot. I will try these methods out.

1 Like

Thanks for sharing. Sounds like it’s such a simple hack in hindsight. I can’t believe I didn’t come up with it myself. Seems like it will take a few hours to get used to. I will see how it goes.

Hi @BigChungus, I’m wondering how I can make this work by typing text in a field and send it to specific locations inside dynalist?

How it would work: I tap an icon on my Android homescreen -> text field appears -> I type text into it -> the text is stored at desired location inside Dynalist.

I would like to have several icons on my homescreen for sending texts into specified locations inside Dynalist.

I used to do this with Quick Dynalist on my Samsung Galaxy S9, but since I have upgraded to S20+ recently, Quick Dynalist has not been working (due to the wellknown sync issue).

“parent_id” tells it which node to send it to in dynalist

Yes sure. I want to type out the test string instead of speaking out the string to google assistant.

thats fine

you can use IFTTT directly if you have android

use IFTTT Note as the input instead of google

Okay, I tried this. I believe I’m doing everything correctly.

Still I’m not getting the text inside Dynalist.


I changed {{TextField}} to {{NoteText}}. And I tried with all three options in the Content Type
image

Also, there is another action field called Additional Headers
image
Should I do anything about it?

Tried using the IFTTT Note with Gmail to send email to myself and it worked. Not sure why it isn’t working with Webhooks for Dynalist.

If you have mac or linux you can test your webhook with curl

TOKEN="sfdgkljdsflkgjdsflg"

CONTENT="blah"

curl --header "Content-Type: application/json" \
  --request POST \
  --data "{\"token\":\"${TOKEN}\",\"content\":\"${CONTENT}\"}" \
  https://dynalist.io/api/v1/inbox/add

I have Windows.

Its working now! Not sure what changed. I think I was skipping the node part because I wanted to paste into the main document. Also I was using a version of this app on IFTTT that I had created few months ago for google assistant. So that was probably the issue.

Thanks!

By the way what should I change in the script if I would like to write inside a document and not inside a node?

I have tried inputting
“parent_id”:"",
and
“parent_id”=false,
and
“parent_id”=null,

but none has worked.

If the document is your inbox you could change it to https://dynalist.io/api/v1/inbox/add

otherwise idk

maybe the docs have clues https://apidocs.dynalist.io/#make-change-to-the-content-of-a-document

I tried with https://dynalist.io/api/v1/inbox/add as the URL. It is just posting blank new lines into my inbox.

Update:
Got it. I succedded with the following:

{
“token”: “XXXXXX”,
“index”: -1,
“content”: “{{NoteText}}”,
“checked”: false
}

Thanks! You were really helpful in helping to deal wtih QD sync issues that I have been facing since upgrading my phone from S9 to S20+. I feel like I am somewhere now :smile:

Found the solution!

1 Like