Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Track Expenses by Siri Voice with AI and Sheets
When a Siri shortcut sends a voice request by webhook, an AI agent through OpenRouter logs or reads expenses in Google Sheets and replies.
What it does
SIri AI 2.0 (Finance Assistant Version) Please download: 1. Shortcut https://www.icloud.com/shortcuts/9848032ea36c434bbdc8cf9631309a81 2. this n8n workflow 3. Google Drive API Steps: 🌐 PART 1: n8n Setup 🧩 1. Create a Webhook Trigger in n8n • Add a node: Webhook • Set HTTP Method: POST • Set Path: siri-finance • Enable “Respond to Webhook” = ✅ 🧠 2. Add AI Agent Node (e.g. OpenAI, Ollama, Gemini) • Use system prompt like: You are a finance assistant. Decide if the user wants to record or read transactions. If it's recording, return a JSON object with date, type, name, amount, and expense/income. If it's reading, return date range and type (Expense/Income). Always reply with a human-friendly summary. • Input: {{ $json.text }} (from webhook) • Output: structured json.output 🧮 3. (Optional) Add Logic to write to DB / Supabase / Google Sheets • Append tool: Adds a new row • Read tool: Queries past data 💬 4. Add a Function Node to format the final message const raw = item.json.output || ''; const cleaned = raw .replace(/\n/g, ' ') .replace(/ /g, ' ') .replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s\$:。,“”]/g, '') .trim(); return [{ json: { reply: cleaned } }]; 📩 5. Return final reply to Siri • In your Webhook Respond Node, set Body: {{ $json.reply }} Now your n8n flow is ready! ⸻ 📱 PART 2: iOS Shortcut Setup ⚙️ 1. Create a new Shortcut • Name it: 記帳助理 (or Finance Bot) • Add Action: Ask for Input • Prompt: “請說出你的記帳內容” • Input Type: Text • Add Action: Get Contents of URL • Method: POST • URL: https://your-n8n-domain/webhook/siri-finance • Headers: Content-Type: application/json • Request Body: { "text": "Provided Input" } • Replace "Provided Input" with Magic Variable → Input Result 🔊 2. Show Result • Add Action: Show Result • Content: Get Contents of URL 🗣️ 3. Optional: Add “Speak Text” • If you want Siri to speak it back, add Speak Text after Show Result. ⸻ ✅ Example Usage • You: “Hey Siri, 開支$50 早餐” • Siri: “已記錄支出:項目 早餐,金額 $50,已寫入” Or • You: “查一下我過去7日用了幾多錢” • Siri: “你過去7日總支出為 $7684.64,包括:⋯⋯” ⸻ 📦 Files to Share You can package the following: • .shortcut file export • Sample n8n workflow .json • Optional Supabase schema / Google Sheet template ⸻ 💡 Tips for Newcomers • Keep your Webhook public but protect with token if needed. • Ensure you handle emoji and newline safely for iOS compatibility. • Add logging nodes in n8n to help debug Siri messages. ⸻ 🗣️ Optional Project Name “Si
The steps
- Recieve
- AI Agent
- OpenRouter Chat Model
- Respond
- Append
- Read
- Simple Memory
- FormatInput
- FormatOutput
Similar automations
AI Agents & AssistantsAsk an OpenAI Agent by Voice with Siri Shortcuts4 stepsFinance, Invoices & AccountingTrack and Analyze Personal Finances in WhatsApp with AI38 stepsFinance, Invoices & AccountingTrack Expenses from Receipt Images with Multi-AI Analysis31 stepsFinance, Invoices & AccountingExtract and Categorize Receipt Expenses from Telegram13 steps