Add find_autoinsurance.json
This commit is contained in:
197
find_autoinsurance.json
Normal file
197
find_autoinsurance.json
Normal file
@@ -0,0 +1,197 @@
|
||||
{
|
||||
"name": "Best Auto Insurance Hunter (Grok 4 Fast)",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"triggerTimes": [
|
||||
{
|
||||
"item": [
|
||||
{
|
||||
"hour": 9,
|
||||
"minute": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"timezone": "America/Los_Angeles"
|
||||
},
|
||||
"id": "trigger1",
|
||||
"name": "Schedule Trigger (Quarterly)",
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [240, 100]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "zip",
|
||||
"value": "93308"
|
||||
},
|
||||
{
|
||||
"name": "vehicle",
|
||||
"value": "2004 Ford F150"
|
||||
},
|
||||
{
|
||||
"name": "drivers",
|
||||
"value": "40,24"
|
||||
},
|
||||
{
|
||||
"name": "coverage",
|
||||
"value": "full"
|
||||
},
|
||||
{
|
||||
"name": "currentPremium",
|
||||
"value": "3151"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "set1",
|
||||
"name": "Set User Profile",
|
||||
"type": "n8n-nodes-base7.set",
|
||||
"typeVersion": 2,
|
||||
"position": [460, 100]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"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}"
|
||||
},
|
||||
"id": "http1",
|
||||
"name": "Get Insurify Quotes",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [680, 50]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"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}"
|
||||
},
|
||||
"id": "http2",
|
||||
"name": "Get The Zebra Quotes",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [680, 150]
|
||||
},
|
||||
{
|
||||
"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 }}",
|
||||
"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.",
|
||||
"temperature": 0.1,
|
||||
"maxTokens": 1000
|
||||
}
|
||||
},
|
||||
"id": "ai1",
|
||||
"name": "AI Agent - Analyze & Rank",
|
||||
"type": "n8n-nodes-base.openAi",
|
||||
"typeVersion": 2,
|
||||
"position": [900, 100],
|
||||
"credentials": {
|
||||
"openAiApi": {
|
||||
"id": null,
|
||||
"name": "Grok API"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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 }}"
|
||||
},
|
||||
"id": "email1",
|
||||
"name": "Email Report",
|
||||
"type": "n8n-nodes-base.emailSend",
|
||||
"typeVersion": 1,
|
||||
"position": [1120, 100],
|
||||
"credentials": {
|
||||
"smtp": {
|
||||
"id": null,
|
||||
"name": "SMTP"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Schedule Trigger (Quarterly)": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Set User Profile",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Set User Profile": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get Insurify Quotes",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Get The Zebra Quotes",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get Insurify Quotes": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent - Analyze & Rank",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get The Zebra Quotes": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "AI Agent - Analyze & Rank",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"AI Agent - Analyze & Rank": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Email Report",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "1",
|
||||
"meta": {},
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user