193 lines
4.5 KiB
JSON
193 lines
4.5 KiB
JSON
{
|
|
"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",
|
|
"type": "n8n-nodes-base.cron",
|
|
"typeVersion": 1,
|
|
"position": [240, 100]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"values": {
|
|
"string": [
|
|
{
|
|
"name": "zip",
|
|
"value": "93308"
|
|
},
|
|
{
|
|
"name": "vehicle",
|
|
"value": "2004 Ford F150"
|
|
},
|
|
{
|
|
"name": "currentPremium6mo",
|
|
"value": "3151"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"id": "set1",
|
|
"name": "Set Profile",
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 2,
|
|
"position": [460, 100]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"requestMethod": "POST",
|
|
"url": "https://api.insurify.com/v1/quotes",
|
|
"jsonParameters": true,
|
|
"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": "Insurify Quotes",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 2,
|
|
"position": [680, 50]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"requestMethod": "POST",
|
|
"url": "https://api.thezebra.com/compare",
|
|
"jsonParameters": true,
|
|
"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": "Zebra Quotes",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 2,
|
|
"position": [680, 150]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"model": "grok-4-fast-reasoning",
|
|
"prompt": "Insurify: {{JSON.stringify($node[\"Insurify Quotes\"].json)}}\nZebra: {{JSON.stringify($node[\"Zebra Quotes\"].json)}}\nCurrent 6mo: ${{ $json.currentPremium6mo }}",
|
|
"options": {
|
|
"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",
|
|
"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": "Best Auto Insurance Deals",
|
|
"text": "={{ $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": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Set Profile",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Set Profile": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Insurify Quotes",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Zebra Quotes",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Insurify Quotes": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "AI Agent",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Zebra Quotes": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "AI Agent",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"AI Agent": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Email Report",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"active": false,
|
|
"settings": {},
|
|
"tags": []
|
|
} |