Update find_autoinsurance.json
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
"timezone": "America/Los_Angeles"
|
||||
},
|
||||
"id": "trigger1",
|
||||
"name": "Schedule Trigger (Quarterly)",
|
||||
"name": "Schedule Trigger",
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [240, 100]
|
||||
@@ -34,15 +34,7 @@
|
||||
"value": "2004 Ford F150"
|
||||
},
|
||||
{
|
||||
"name": "drivers",
|
||||
"value": "40,24"
|
||||
},
|
||||
{
|
||||
"name": "coverage",
|
||||
"value": "full"
|
||||
},
|
||||
{
|
||||
"name": "currentPremium",
|
||||
"name": "currentPremium6mo",
|
||||
"value": "3151"
|
||||
}
|
||||
]
|
||||
@@ -50,8 +42,8 @@
|
||||
"options": {}
|
||||
},
|
||||
"id": "set1",
|
||||
"name": "Set User Profile",
|
||||
"type": "n8n-nodes-base7.set",
|
||||
"name": "Set Profile",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 2,
|
||||
"position": [460, 100]
|
||||
},
|
||||
@@ -60,11 +52,15 @@
|
||||
"requestMethod": "POST",
|
||||
"url": "https://api.insurify.com/v1/quotes",
|
||||
"jsonParameters": true,
|
||||
"options": {},
|
||||
"bodyParametersJson": "={\n \"zip\": \"{{$node[\"Set User Profile\"].json.zip}}\",\n \"vehicle\": \"{{$node[\"Set User Profile\"].json.vehicle}}\",\n \"drivers\": [{\"age\": 40}, {\"age\": 24}],\n \"coverage\": \"full\"\n}"
|
||||
"options": {
|
||||
"headers": {
|
||||
"Authorization": "Bearer YOUR_INSURIFY_KEY"
|
||||
}
|
||||
},
|
||||
"bodyParametersJson": "={\n \"zip\": \"{{$json.zip}}\",\n \"vehicle\": \"{{$json.vehicle}}\",\n \"drivers\": [{\"age\": 40}, {\"age\": 24}],\n \"coverage\": \"full\"\n}"
|
||||
},
|
||||
"id": "http1",
|
||||
"name": "Get Insurify Quotes",
|
||||
"name": "Insurify Quotes",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [680, 50]
|
||||
@@ -74,11 +70,15 @@
|
||||
"requestMethod": "POST",
|
||||
"url": "https://api.thezebra.com/compare",
|
||||
"jsonParameters": true,
|
||||
"options": {},
|
||||
"bodyParametersJson": "={\n \"zip\": \"{{$node[\"Set User Profile\"].json.zip}}\",\n \"vehicle\": \"{{$node[\"Set User Profile\"].json.vehicle}}\",\n \"drivers\": [{\"age\": 40}, {\"age\": 24}]\n}"
|
||||
"options": {
|
||||
"headers": {
|
||||
"Authorization": "Bearer YOUR_ZEBRA_KEY"
|
||||
}
|
||||
},
|
||||
"bodyParametersJson": "={\n \"zip\": \"{{$json.zip}}\",\n \"vehicle\": \"{{$json.vehicle}}\",\n \"drivers\": [{\"age\": 40}, {\"age\": 24}]\n}"
|
||||
},
|
||||
"id": "http2",
|
||||
"name": "Get The Zebra Quotes",
|
||||
"name": "Zebra Quotes",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [680, 150]
|
||||
@@ -86,15 +86,15 @@
|
||||
{
|
||||
"parameters": {
|
||||
"model": "grok-4-fast-reasoning",
|
||||
"prompt": "={{ JSON.stringify($node[\"Get Insurify Quotes\"].json) }}\n\n{{ JSON.stringify($node[\"Get The Zebra Quotes\"].json) }}\n\nCurrent 6-month premium: ${{ $node[\"Set User Profile\"].json.currentPremium }}",
|
||||
"prompt": "Insurify: {{JSON.stringify($node[\"Insurify Quotes\"].json)}}\nZebra: {{JSON.stringify($node[\"Zebra Quotes\"].json)}}\nCurrent 6mo: ${{ $json.currentPremium6mo }}",
|
||||
"options": {
|
||||
"systemMessage": "You are a ruthless auto insurance deal hunter. Goal: Find the absolute best rate (lowest premium + optimal coverage) for the user's profile.\n\nSteps:\n1. Parse quotes from Insurify/The Zebra: Extract top 3-5 by price, carrier, discounts (e.g., safe driver, bundling).\n2. Factor user details: ZIP-based averages (e.g., CA: $2,200/year), vehicle (older F150s cheaper), drivers (24yo adds ~$600/6mo).\n3. Rank by value: Score on price (60%), coverage gaps (20%), claims satisfaction (20%—USAA/Travelers top per Zebra surveys).\n4. Suggest tweaks: Raise deductible? Bundle home? Skip add-ons like roadside if unused.\n5. Output Markdown report: Table of top deals, projected savings vs. current ($3,151/6mo Farmers), 3 actions (e.g., \"Quote USAA if vet\").\n\nRules: Use 2025 data (nat'l avg $2,126 full). No spam—direct links only. Be concise, savings-focused.",
|
||||
"systemMessage": "You are a top auto insurance deal hunter. Rank the best 3 quotes by price + coverage. Output Markdown table with savings vs current. Add 3 action steps. Use 2025 CA averages.",
|
||||
"temperature": 0.1,
|
||||
"maxTokens": 1000
|
||||
}
|
||||
},
|
||||
"id": "ai1",
|
||||
"name": "AI Agent - Analyze & Rank",
|
||||
"name": "AI Agent",
|
||||
"type": "n8n-nodes-base.openAi",
|
||||
"typeVersion": 2,
|
||||
"position": [900, 100],
|
||||
@@ -109,8 +109,8 @@
|
||||
"parameters": {
|
||||
"fromEmail": "you@example.com",
|
||||
"toEmail": "you@example.com",
|
||||
"subject": "Your Best Auto Insurance Deals (2025)",
|
||||
"text": "={{ $node[\"AI Agent - Analyze & Rank\"].json.choices[0].message.content }}"
|
||||
"subject": "Best Auto Insurance Deals",
|
||||
"text": "={{ $json.choices[0].message.content }}"
|
||||
},
|
||||
"id": "email1",
|
||||
"name": "Email Report",
|
||||
@@ -126,56 +126,56 @@
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Schedule Trigger (Quarterly)": {
|
||||
"Schedule Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Set User Profile",
|
||||
"node": "Set Profile",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Set User Profile": {
|
||||
"Set Profile": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get Insurify Quotes",
|
||||
"node": "Insurify Quotes",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Get The Zebra Quotes",
|
||||
"node": "Zebra Quotes",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get Insurify Quotes": {
|
||||
"Insurify Quotes": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent - Analyze & Rank",
|
||||
"node": "AI Agent",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get The Zebra Quotes": {
|
||||
"Zebra Quotes": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent - Analyze & Rank",
|
||||
"node": "AI Agent",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"AI Agent - Analyze & Rank": {
|
||||
"AI Agent": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
@@ -188,10 +188,6 @@
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user