Zum Inhalt springen
ai-agentPro — €97

Siri AI Finance Assistant

100/100
10 Nodes

Beschreibung

Workflow with 10 nodes using Webhook, Agent, Lm Chat Open Router...

Setup-Anleitung

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(/<br\s*\/?>/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

“Siri 記帳助理” / “Finance VoiceBot”

A simple voice-first way to manage your daily expenses.

Benötigte Integrationen (8)

Webhook

Webhook

API Key

Agent

Agent

Lm Chat Open Router

Lm Chat Open Router

Respond To Webhook

Respond To Webhook

Google API

Google Sheets Tool

API Key

Memory Buffer Window

Memory Buffer Window

Code

Code

Sticky Note

Sticky Note

Workflow freischalten

Kaufe das Pro Bundle für €97 — erhalte sofortigen Zugang zu diesem und allen weiteren Starter + Pro Workflows als ZIP-Datei zum Import in n8n.

Sichere Zahlung via Stripe. 7-Tage Geld-zurück-Garantie.
← Zurück zum Marketplace