Control Your Own AI Agent with Siri! Easy iPhone Setup with n8n

In this video, I’ll show you how to set up a Siri-activated AI Agent using n8n and Apple Shortcuts. With just a voice command, you’ll be able to send a voice command to an AI Agent :raised_hands:

Set up the template here.

Make it your own by adding steps, modifying inputs, and integrating with other apps. For example, change the shortcut to take an image instead, process that with a vision model and save it to a CRM.

3 Likes

Thanks for sharing @maxT

I love that Shortcuts can send http requests. It’s a great way to bypass a lot of the bugs that still remain in Shortcuts. I use a similar workflow to write blog posts from simple voice prompts. Tons of fun!

3 Likes

That’s so great to hear. They’re fun arn’t they? Maybe it’s because I’m new to them but I always feel a little sci fi still when it’s running :slight_smile:

Thanks for sharing how you use shortcuts. Always good for inspo!

2 Likes

ā€œSci fiā€ :rofl:

1 Like

I have tried this workflow and it is working as long as the n8n workflow takes less than 10 seconds, if the n8n workflow takes longer than 10 seconds my iphone is after 10 seconds saying that ā€œEr is iets misgegaan, Probeer het opnieuwā€ (something went wrong, please try again).

When I checked my workflow in n8n it has properly completed the request.

So all the red executions which took longer 10 seconds resulted in ā€œsomething went wrong, please try againā€ message on my iphone.

People are mentioning a timeout of 25 -60 seconds for the ā€œget contentsā€ siri action. In my case I am getting the timeout message already after 10 seconds. Maybe it is because I am using http instead of https as my get contents URL in siri. (FYI I am running n8n locally).

The timeout is not coming from n8n as it is working fine when triggering the flow using following curl command from my macbook (in same network).

curl --request POST --json ā€˜{ ā€œinputā€: ā€œWie%20is%20de%20langste%20voetballer%20ter%20wereldā€ }’ ``http://nuc2.lan:5678/webhook/assistant

I managed to fix it by modifying my iphone shortcut a little bit:
I added a ā€œSpeakā€ action just before the ā€œGet contentsā€ action. If you do that then the shortcut is waiting much longer than 10 seconds for ā€œGet contentsā€ to return a response.