Add n8n_insurance_agent.json
This commit is contained in:
45
n8n_insurance_agent.json
Normal file
45
n8n_insurance_agent.json
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"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 }]] }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user