Task: TESTE CURSO

n8n workflow JSON:
{"id":3,"name":"Nathan’s workflow","nodes":[{"name":"On clicking 'execute'","type":"n8n-nodes-base.manualTrigger","disabled":true,"position":[220,100],"parameters":{},"typeVersion":1},{"name":"HTTP Request","type":"n8n-nodes-base.httpRequest","position":[420,300],"parameters":{"url":"https://internal.users.n8n.cloud/webhook/custom-erp","options":{"splitIntoItems":true},"authentication":"headerAuth","headerParametersUi":{"parameter":[{"name":"unique_id","value":"recYHfdNGSKLUOTyC "}]}},"credentials":{"httpHeaderAuth":{"id":"4","name":"Header Auth n8n Course"}},"typeVersion":1},{"name":"Airtable","type":"n8n-nodes-base.airtable","position":[1020,180],"parameters":{"table":"orders","options":{},"operation":"append","application":"apps6dZhw9GRKPXmM"},"credentials":{"airtableApi":{"id":"5","name":"Airtable account"}},"typeVersion":1},{"name":"IF","type":"n8n-nodes-base.if","position":[620,200],"parameters":{"conditions":{"string":[{"value1":"={{$json[\"orderStatus\"]}}","value2":"processing"}]}},"typeVersion":1},{"name":"Set","type":"n8n-nodes-base.set","position":[820,180],"parameters":{"values":{"number":[{"name":"orderID","value":"={{$json[\"orderID\"]}}"}],"string":[{"name":"employeeName","value":"={{$json[\"employeeName\"]}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"name":"Function","type":"n8n-nodes-base.function","position":[840,380],"parameters":{"functionCode":"let totalBooked = items.length;\nlet bookedSum = 0;\n\nfor(let i=0; i < items.length; i++) {\n  bookedSum = bookedSum + items[i].json.orderPrice;\n}\nreturn [{json:{totalBooked, bookedSum}}];"},"typeVersion":1},{"name":"Discord","type":"n8n-nodes-base.discord","position":[1020,380],"parameters":{"text":"=This week we have {{$json[\"totalBooked\"]}} booked orders with a total value of {{$json[\"bookedSum\"]}}. My Unique ID: {{$node[\"HTTP Request\"].parameter[\"headerParametersUi\"][\"parameter\"][0][\"value\"]}}","options":{},"webhookUri":"https://internal.users.n8n.cloud/webhook/course-level-1"},"typeVersion":1},{"name":"Cron","type":"n8n-nodes-base.cron","position":[220,300],"parameters":{"triggerTimes":{"item":[{"hour":9,"mode":"everyWeek"}]}},"typeVersion":1}],"active":true,"settings":{"executionTimeout":-1},"connections":{"IF":{"main":[[{"node":"Set","type":"main","index":0}],[{"node":"Function","type":"main","index":0}]]},"Set":{"main":[[{"node":"Airtable","type":"main","index":0}]]},"Cron":{"main":[[{"node":"HTTP Request","type":"main","index":0}]]},"Function":{"main":[[{"node":"Discord","type":"main","index":0}]]},"HTTP Request":{"main":[[{"node":"IF","type":"main","index":0}]]},"On clicking 'execute'":{"main":[[]]}}}