{"name": "Dynamic Pricing Optimizer", "nodes": [{"id": "n1", "name": "Pricing Data Webhook", "type": "n8n-nodes-base.webhook", "typeVersion": 2.1, "position": [0, 0], "parameters": {"httpMethod": "POST", "path": "optimize-pricing", "responseMode": "responseNode"}}, {"id": "n2", "name": "Optimize Pricing", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [224, 0], "parameters": {"method": "POST", "url": "https://api.anthropic.com/v1/messages", "sendHeaders": true, "headerParameters": {"parameters": [{"name": "x-api-key", "value": "YOUR_ANTHROPIC_API_KEY"}, {"name": "anthropic-version", "value": "2023-06-01"}, {"name": "content-type", "value": "application/json"}]}, "sendBody": true, "bodyParameters": {"parameters": [{"name": "model", "value": "claude-sonnet-4-6"}, {"name": "max_tokens", "value": "800"}, {"name": "messages", "value": "=[{\"role\":\"user\",\"content\":\"Return ONLY JSON {current_price:string, recommended_price:string, price_rationale:string, competitor_context:string, elasticity_assessment:string, bundle_opportunities:string[], markdown_recommendation:string}. Product: {{ $json.body.product }}. Current price: {{ $json.body.current_price }}. Competitor prices: {{ JSON.stringify($json.body.competitor_prices) }}. Sales velocity: {{ $json.body.sales_velocity }}\"}]"}]}}}, {"id": "n3", "name": "Return Pricing", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.1, "position": [448, 0], "parameters": {"respondWith": "json", "responseBody": "={\"ok\":true,\"result\":\"{{ $json.content[0].text }}\"}"}}], "connections": {"Pricing Data Webhook": {"main": [[{"node": "Optimize Pricing", "type": "main", "index": 0}]]}, "Optimize Pricing": {"main": [[{"node": "Return Pricing", "type": "main", "index": 0}]]}}, "settings": {"executionOrder": "v1"}}