Files
n8n-agent/n8n_insurance_agent.json
2025-11-08 13:58:50 -08:00

45 lines
1.2 KiB
JSON

{
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "insurance-review",
"responseMode": "onReceived"
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"model": "grok-4-fast-reasoning",
"options": {
"systemMessage": "You are an expert auto insurance analyst...\n[full prompt from before]",
"temperature": 0.2,
"maxTokens": 800
},
"prompt": "={{ $json.prompt }}\n\nPolicy PDF attached."
},
"name": "AI Agent",
"type": "n8n-nodes-base.openAi",
"typeVersion": 2,
"position": [600, 300],
"credentials": { "openAiApi": { "id": "grok-creds", "name": "Grok API" } }
},
{
"parameters": {
"responseCode": 200,
"responseBody": "={{ $json.choices[0].message.content }}"
},
"name": "Respond",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [950, 300]
}
],
"connections": {
"Webhook": { "main": [[{ "node": "AI Agent", "type": "main", "index": 0 }]] },
"AI Agent": { "main": [[{ "node": "Respond", "type": "main", "index": 0 }]] }
}
}