n8n Workflow

Siri Ai Agent Apple Shortcuts Powered Voice Template

This n8n workflow automates tasks and integrates with various services. Siri Ai Agent Apple Shortcuts Powered Voice Template - ready to import and run in your n8n instance.

n8n workflow.json

About This Script

This n8n workflow automates tasks and integrates with various services. Siri Ai Agent Apple Shortcuts Powered Voice Template - ready to import and run in your n8n instance.
Features:
  • Receives webhook events
Source Code
{
    "nodes": [
        {
            "id": "b24c6e28-3c9e-4069-9e87-49b2efd47257",
            "name": "OpenAI Chat Model",
            "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
            "position": [
                1200,
                660
            ],
            "parameters": {
                "model": "gpt-4o-mini",
                "options": []
            },
            "credentials": {
                "openAiApi": {
                    "id": "AzPPV759YPBxJj3o",
                    "name": "Max's DevRel OpenAI account"
                }
            },
            "typeVersion": 1
        },
        {
            "id": "a4ec93c3-eefa-4006-b02c-f995fb7bc410",
            "name": "Respond to Apple Shortcut",
            "type": "n8n-nodes-base.respondToWebhook",
            "position": [
                1640,
                460
            ],
            "parameters": {
                "options": [],
                "respondWith": "text",
                "responseBody": "={{ $json.output }}"
            },
            "typeVersion": 1.1
        },
        {
            "id": "942b284e-e26a-4534-8f33-eb92b0a88fdb",
            "name": "Sticky Note1",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                200,
                760
            ],
            "parameters": {
                "color": "#FFF59D",
                "width": 280.2462120317618,
                "height": 438.5821431288714,
                "content": "Configuration note: update with your credentials or endpoint."
            },
            "typeVersion": 1
        },
        {
            "id": "5a842fa9-be8c-4ba8-996b-a26a53273b3f",
            "name": "AI Agent",
            "type": "@n8n/n8n-nodes-langchain.agent",
            "position": [
                1240,
                460
            ],
            "parameters": {
                "text": "=Here is my request: {{ $json.body.input }}\n",
                "agent": "conversationalAgent",
                "options": {
                    "systemMessage": "=## Task\nYou are a helpful assistant. Provide concise replies as the user receives them via voice on their mobile phone. Avoid using symbols like \"\\n\" to prevent them from being narrated.\n\n## Context\n- Today is {{ $now.format('dd LLL yy') }}.\n- Current time: {{ $now.format('h:mm a') }} in Berlin, Germany.\n- When asked, you are an AI Agent running as an n8n workflow.\n\n## Output\nKeep responses short and clear, optimized for voice delivery. Don't hallucinate, if you don't know the answer, say you don't know. "
                },
                "promptType": "define",
                "hasOutputParser": true
            },
            "typeVersion": 1.6
        },
        {
            "id": "598d22d5-7472-44c5-ab2e-69c8bbb23ddd",
            "name": "When called by Apple Shortcut",
            "type": "n8n-nodes-base.webhook",
            "position": [
                980,
                460
            ],
            "webhookId": "f0224b4b-1644-4d3d-9f12-01a9c04879e4",
            "parameters": {
                "path": "assistant",
                "options": [],
                "httpMethod": "POST",
                "responseMode": "responseNode"
            },
            "typeVersion": 2
        }
    ],
    "connections": {
        "AI Agent": {
            "main": [
                [
                    {
                        "node": "Respond to Apple Shortcut",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "OpenAI Chat Model": {
            "ai_languageModel": [
                [
                    {
                        "node": "AI Agent",
                        "type": "ai_languageModel",
                        "index": 0
                    }
                ]
            ]
        },
        "When called by Apple Shortcut": {
            "main": [
                [
                    {
                        "node": "AI Agent",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n #automation #workflow
Quick Actions
More in n8n Workflows