{"name": "Quiz & Assessment Generator", "nodes": [{"id": "n1", "name": "Quiz Request Webhook", "type": "n8n-nodes-base.webhook", "typeVersion": 2.1, "position": [0, 0], "parameters": {"httpMethod": "POST", "path": "generate-quiz", "responseMode": "responseNode"}}, {"id": "n2", "name": "Generate Quiz", "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": "1200"}, {"name": "messages", "value": "=[{\"role\":\"user\",\"content\":\"Return ONLY JSON {title:string, instructions:string, questions:Array<{question:string,type:'multiple_choice/true_false/short_answer',options:string[],correct_answer:string,explanation:string}>, total_points:number, estimated_time:string}. Topic: {{ $json.body.topic }}. Difficulty: {{ $json.body.difficulty }}. Number of questions: {{ $json.body.count }}. Grade level: {{ $json.body.grade }}\"}]"}]}}}, {"id": "n3", "name": "Return Quiz", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.1, "position": [448, 0], "parameters": {"respondWith": "json", "responseBody": "={\"ok\":true,\"result\":\"{{ $json.content[0].text }}\"}"}}], "connections": {"Quiz Request Webhook": {"main": [[{"node": "Generate Quiz", "type": "main", "index": 0}]]}, "Generate Quiz": {"main": [[{"node": "Return Quiz", "type": "main", "index": 0}]]}}, "settings": {"executionOrder": "v1"}}