ai-assistant-example.json•2.19 kB
{
"id": "ai-assistant-example",
"name": "AI Assistant Example",
"description": "Test compilation at 9:17 AM - Verifying description field preservation",
"active": false,
"nodes": [
{
"parameters": {
"method": "POST",
"url": "={{ $json.webhook_url }}",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "message",
"value": "={{ $json.message }}"
}
]
}
},
"name": "Webhook Trigger UPDATED NOW",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1.1,
"position": [250, 300]
},
{
"parameters": {
"model": "gpt-4",
"nodeContent": {
"prompt": "ai_assistant_system_prompt"
}
},
"name": "System Prompt",
"type": "n8n-nodes-base.openAi",
"typeVersion": 1,
"position": [450, 300]
},
{
"parameters": {
"model": "gpt-4",
"nodeContent": {
"prompt": "ai_assistant_analysis_prompt"
}
},
"name": "Analyze Request",
"type": "n8n-nodes-base.openAi",
"typeVersion": 1,
"position": [650, 300]
},
{
"parameters": {
"nodeContent": {
"jsCode": "ai_assistant_format_response"
}
},
"name": "Format Response",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [850, 300]
}
],
"connections": {
"Webhook Trigger": {
"main": [
[
{
"node": "System Prompt",
"type": "main",
"index": 0
}
]
]
},
"System Prompt": {
"main": [
[
{
"node": "Analyze Request",
"type": "main",
"index": 0
}
]
]
},
"Analyze Request": {
"main": [
[
{
"node": "Format Response",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"meta": {
"templateCredsSetupCompleted": true
}
}