{"name":"n8n Community Weekly Challenge 10 | The Room Reset","nodes":[{"id":"c10-start","name":"Start here","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[0,160],"parameters":{}},{"id":"c10-account","name":"Your account","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[248,160],"parameters":{"mode":"manual","assignments":{"assignments":[{"id":"c10-username","name":"username","value":"","type":"string"},{"id":"c10-participantKey","name":"participantKey","value":"","type":"string"}]},"options":{}}},{"id":"c10-ready","name":"Account fields filled?","type":"n8n-nodes-base.if","typeVersion":2.2,"position":[496,160],"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict","version":2},"conditions":[{"id":"c10-ready","leftValue":"={{ /^[a-z0-9_.-]{2,40}$/i.test(($json.username || \"\").trim().replace(/^@/, \"\")) && /^[^\\s\\x00-\\x1f\\x7f]{1,128}$/.test(($json.participantKey || \"\").trim()) }}","rightValue":"","operator":{"type":"boolean","operation":"true","singleValue":true}}],"combinator":"and"},"options":{}}},{"id":"c10-fetch","name":"Fetch room inspections","type":"n8n-nodes-base.httpRequest","typeVersion":4.5,"position":[800,96],"parameters":{"method":"GET","url":"https://marketing.app.n8n.cloud/webhook/cwc/challenge-10/data","authentication":"none","sendQuery":true,"queryParameters":{"parameters":[{"name":"username","value":"={{ $json.username.trim().replace(/^@/, \"\").toLowerCase() }}"}]},"sendHeaders":true,"headerParameters":{"parameters":[{"name":"x-participant-key","value":"={{ $json.participantKey.trim() }}"}]},"options":{"timeout":30000,"redirect":{"redirect":{"followRedirects":false}},"response":{"response":{"responseFormat":"json"}}}},"retryOnFail":false},{"id":"c10-split","name":"One item per inspection","type":"n8n-nodes-base.splitOut","typeVersion":1.1,"position":[1112,96],"parameters":{"fieldToSplitOut":"assignment.updates","include":"noOtherFields","options":{}}},{"id":"c10-help","name":"Read your setup checklist","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[800,352],"parameters":{"mode":"manual","assignments":{"assignments":[{"id":"c10-next_step","name":"next_step","value":"Open the challenge site, register or recover your key, then fill both fields in Your account. Run when The Room Reset is open.","type":"string"},{"id":"c10-challenge","name":"challenge","value":"https://marketing.app.n8n.cloud/webhook/cwc/site","type":"string"},{"id":"c10-register","name":"register","value":"https://marketing.app.n8n.cloud/webhook/cwc/site?view=register","type":"string"},{"id":"c10-recover_key","name":"recover_key","value":"https://marketing.app.n8n.cloud/webhook/cwc/site?view=reset","type":"string"},{"id":"c10-faq","name":"faq","value":"https://marketing.app.n8n.cloud/webhook/cwc/site?view=faq","type":"string"}]},"options":{}}},{"id":"c10-welcome","name":"Community Weekly Challenge 10","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[-112,-384],"parameters":{"width":480,"height":448,"color":6,"content":"# The Room Reset\n**n8n Community Weekly Challenge 10 | Season 3**\n\nThe conference crew needs to know which rooms to reset before the next session. Build a workflow that reads their inspections and returns two numbers: the rooms needing a reset and their total seats.\n\n[Visit the weekly challenge](https://marketing.app.n8n.cloud/webhook/cwc/site) and check that **The Room Reset** is open before fetching.\n\n[Read the full FAQ](https://marketing.app.n8n.cloud/webhook/cwc/site?view=faq)"}},{"id":"c10-setup-note","name":"Join and connect","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[400,-384],"parameters":{"width":512,"height":448,"color":5,"content":"## 1. Join and connect\n[Register for the challenge](https://marketing.app.n8n.cloud/webhook/cwc/site?view=register) with your community username. Already registered? Use your current participant key or [recover it here](https://marketing.app.n8n.cloud/webhook/cwc/site?view=reset).\n\nOpen **Your account**, fill in `username` and `participantKey`, then save. Keep the key private.\n\n**Try it empty first.** Execute the workflow with both fields blank to see a setup checklist. This makes no request and starts no clock."}},{"id":"c10-work-note","name":"Work with your inspections","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[944,-384],"parameters":{"width":576,"height":448,"color":4,"content":"## 2. Fetch once, then build\nWith your account filled in, **Execute workflow** fetches 16 inspections for eight rooms. Your clock starts when the server first issues your data. Running again returns the same inspections and start time.\n\nContinue from **One item per inspection**. Each item has `room_id`, `revision`, `status` and `seats`. A room’s highest revision is its latest inspection. Count the rooms whose latest status is `needs_reset`, then add their seats once per room.\n\n[Read the task](https://marketing.app.n8n.cloud/webhook/cwc/site)"}},{"id":"c10-submit-note","name":"Submit your answers","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[-112,432],"parameters":{"width":672,"height":384,"color":2,"content":"## 3. Submit a clean copy\nKeep your working workflow. Duplicate it, clear the participant key, remove credential references and pinned data, then export the copy as workflow JSON.\n\n[Open Submit](https://marketing.app.n8n.cloud/webhook/cwc/site?view=submit), enter **Rooms needing a reset** and **Seats in those rooms**, attach the JSON and confirm the declarations. Use your own reasoning and native nodes. AI-assisted solving and Code or legacy Function nodes are outside the rules."}},{"id":"c10-result-note","name":"Find your receipt and rank","type":"n8n-nodes-base.stickyNote","typeVersion":1,"position":[944,432],"parameters":{"width":576,"height":384,"color":7,"content":"## 4. Check your result\nOpen [My result](https://marketing.app.n8n.cloud/webhook/cwc/site?view=status) to see your saved receipt and time. Your finish is the server’s admission time for the complete submission that gets accepted.\n\nThe [leaderboard](https://marketing.app.n8n.cloud/webhook/cwc/site?view=results) shows weekly rank and season points. If a reply goes missing, check **My result** before retrying. Keep your key and upload private when asking for help."}}],"connections":{"Start here":{"main":[[{"node":"Your account","type":"main","index":0}]]},"Your account":{"main":[[{"node":"Account fields filled?","type":"main","index":0}]]},"Account fields filled?":{"main":[[{"node":"Fetch room inspections","type":"main","index":0}],[{"node":"Read your setup checklist","type":"main","index":0}]]},"Fetch room inspections":{"main":[[{"node":"One item per inspection","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"active":false,"pinData":{}}