{"updatedAt":"2026-03-16T04:35:49.586Z","createdAt":"2026-03-13T10:27:58.354Z","id":"01X7dcZ6KVkaqSko","name":"[7.1.3] HWPX 공문서 대량 생성","description":null,"active":true,"isArchived":false,"nodes":[{"parameters":{},"id":"cdcb53a2-0351-4887-b01d-7c14711dc61f","name":"수동 실행","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[32,416]},{"parameters":{"documentId":{"__rl":true,"value":"1VwKRw23XGxberlUN1IltxHwFLyF2fdgEHawj-Hv9OsI","mode":"list","cachedResultName":"[7.1.3] HWPX 공문서 대량 생성 - 공문 발송 데이터","cachedResultUrl":"https://docs.google.com/spreadsheets/d/1VwKRw23XGxberlUN1IltxHwFLyF2fdgEHawj-Hv9OsI/edit?usp=drivesdk"},"sheetName":{"__rl":true,"value":1112307846,"mode":"list","cachedResultName":"공문데이터","cachedResultUrl":"https://docs.google.com/spreadsheets/d/1VwKRw23XGxberlUN1IltxHwFLyF2fdgEHawj-Hv9OsI/edit#gid=1112307846"},"options":{}},"id":"a1b2c3d4-1111-2222-3333-444455556666","name":"공문 데이터 읽기","type":"n8n-nodes-base.googleSheets","typeVersion":4.5,"position":[256,416],"credentials":{"googleSheetsOAuth2Api":{"id":"Sb5WFYkauRJ08tE9","name":"Google Sheets account"}}},{"parameters":{"operation":"download","fileId":{"__rl":true,"value":"1I_UIniMxZ705advl7B_FJgc-L1jedJER","mode":"list","cachedResultName":"[7.1.3] HWPX 공문서 대량 생성 - 공문 양식 템플릿.hwpx","cachedResultUrl":"https://drive.google.com/file/d/1I_UIniMxZ705advl7B_FJgc-L1jedJER/view?usp=drivesdk"},"options":{}},"id":"870524de-ea97-46f7-846d-344e36057fca","name":"템플릿 다운로드","type":"n8n-nodes-base.googleDrive","typeVersion":3,"position":[704,224],"credentials":{"googleDriveOAuth2Api":{"id":"WKPSUzZos0D8NmvL","name":"Google Drive account"}}},{"parameters":{"options":{"reset":false}},"id":"e5f6a7b8-loop-0001-0002-000300040005","name":"공문 반복 생성","type":"n8n-nodes-base.splitInBatches","typeVersion":3,"position":[480,416]},{"parameters":{"operation":"fillTemplate","replacements":{"pairs":[{"find":"{{수신처}}","replace":"={{ $json['수신처'] }}"},{"find":"{{제목}}","replace":"={{ $json['제목'] }}"},{"find":"{{발신일자}}","replace":"={{ $json['발신일자'] }}"},{"find":"{{섹션제목}}","replace":"={{ $json['섹션제목'] }}"},{"find":"{{항목1}}","replace":"={{ $json['항목1'] }}"},{"find":"{{세부1}}","replace":"={{ $json['세부1'] }}"},{"find":"{{상세1}}","replace":"={{ $json['상세1'] }}"},{"find":"{{참고}}","replace":"={{ $json['참고'] }}"},{"find":"{{섹션2제목}}","replace":"={{ $json['섹션2제목'] }}"},{"find":"{{항목2}}","replace":"={{ $json['항목2'] }}"},{"find":"{{세부2}}","replace":"={{ $json['세부2'] }}"},{"find":"{{상세2}}","replace":"={{ $json['상세2'] }}"},{"find":"{{섹션3제목}}","replace":"={{ $json['섹션3제목'] }}"},{"find":"{{항목3}}","replace":"={{ $json['항목3'] }}"},{"find":"{{세부3}}","replace":"={{ $json['세부3'] }}"},{"find":"{{발신기관}}","replace":"={{ $json['발신기관'] }}"}]},"fileName":"={{ $('공문 반복 생성').item.json['수신처'].replace(/ /g, '_') }}_공문.hwpx","outputBinaryPropertyName":"hwpx"},"id":"648f1ede-7ae2-408a-bfcd-ef1857f18761","name":"공문 텍스트 치환","type":"n8n-nodes-hwpx.hwpx","typeVersion":1,"position":[928,224]},{"parameters":{"url":"https://storage.googleapis.com/dante-labs-pub/logo/dante_education_institute.png","options":{"response":{"response":{"responseFormat":"file","outputPropertyName":"logo"}}}},"id":"c4ad1326-91a7-405d-bf55-50b7e86b5649","name":"로고 다운로드","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[928,416]},{"parameters":{"mode":"combine","combineBy":"combineByPosition","options":{}},"id":"6b60d1e7-103c-4169-aa98-35602da6b46c","name":"바이너리 병합","type":"n8n-nodes-base.merge","typeVersion":3,"position":[1152,320]},{"parameters":{"resource":"content","operation":"replaceImage","inputBinaryPropertyName":"hwpx","imageBinaryPropertyName":"logo","options":{}},"id":"6cd3d089-d3a1-4a37-81b3-86a876a5b964","name":"로고 교체","type":"n8n-nodes-hwpx.hwpx","typeVersion":1,"position":[1376,320]},{"parameters":{"fromEmail":"dandacompany@naver.com","toEmail":"={{ $('공문 반복 생성').item.json[\"이메일\"] }}","subject":"={{ \"[\" + $('공문 반복 생성').item.json[\"발신기관\"] + \"] \" + $('공문 반복 생성').item.json[\"제목\"] }}","html":"={{ \"<div style=\\\"font-family: Malgun Gothic, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px;\\\"><div style=\\\"border-bottom: 3px solid #2c3e50; padding-bottom: 15px; margin-bottom: 20px;\\\"><h2 style=\\\"color: #2c3e50; margin: 0;\\\">\" + $('공문 반복 생성').item.json[\"발신기관\"] + \"</h2></div><p style=\\\"font-size: 15px; color: #333; line-height: 1.8;\\\"><strong>\" + $('공문 반복 생성').item.json[\"수신처\"] + \"</strong> 귀하</p><p style=\\\"font-size: 14px; color: #555; line-height: 1.8;\\\">안녕하세요. \" + $('공문 반복 생성').item.json[\"발신기관\"] + \"입니다.<br><br><strong>\" + $('공문 반복 생성').item.json[\"제목\"] + \"</strong> 관련 공문을 송부드립니다.<br>첨부된 HWPX 파일을 확인해 주시기 바랍니다.</p><div style=\\\"background: #f8f9fa; border-left: 4px solid #3498db; padding: 12px 16px; margin: 20px 0; font-size: 13px; color: #555;\\\"><strong>첨부파일:</strong> \" + $('공문 반복 생성').item.json[\"수신처\"].replace(/ /g, \"_\") + \"_공문.hwpx</div><hr style=\\\"border: none; border-top: 1px solid #eee; margin: 25px 0;\\\"><p style=\\\"font-size: 12px; color: #999; line-height: 1.6;\\\">본 메일은 \" + $('공문 반복 생성').item.json[\"발신기관\"] + \"에서 자동 발송된 메일입니다.<br>발신일자: \" + $('공문 반복 생성').item.json[\"발신일자\"] + \"</p></div>\" }}","options":{"attachments":"data"}},"type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[1600,392],"id":"44ccfba6-1d88-4c6f-a670-2cbca05809f3","name":"공문 이메일 발송","webhookId":"aa4d14e5-d715-496c-8494-253100e2e286","credentials":{"smtp":{"id":"uj57hsc9f2cD3eHH","name":"Naver SMTP account"}}}],"connections":{"수동 실행":{"main":[[{"node":"공문 데이터 읽기","type":"main","index":0}]]},"공문 데이터 읽기":{"main":[[{"node":"공문 반복 생성","type":"main","index":0}]]},"공문 반복 생성":{"main":[[],[{"node":"로고 다운로드","type":"main","index":0},{"node":"템플릿 다운로드","type":"main","index":0}]]},"템플릿 다운로드":{"main":[[{"node":"공문 텍스트 치환","type":"main","index":0}]]},"공문 텍스트 치환":{"main":[[{"node":"바이너리 병합","type":"main","index":0}]]},"로고 다운로드":{"main":[[{"node":"바이너리 병합","type":"main","index":1}]]},"바이너리 병합":{"main":[[{"node":"로고 교체","type":"main","index":0}]]},"로고 교체":{"main":[[{"node":"공문 이메일 발송","type":"main","index":0}]]},"공문 이메일 발송":{"main":[[{"node":"공문 반복 생성","type":"main","index":0}]]}},"settings":{"executionOrder":"v1","binaryMode":"separate","availableInMCP":false,"callerPolicy":"workflowsFromSameOwner"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"f2e82390-f3d6-4ba5-afb3-83c589a87abc","activeVersionId":"5305f2e6-faff-4ec1-82e3-ba7c84e45095","versionCounter":193,"triggerCount":0,"shared":[{"updatedAt":"2026-03-13T10:27:58.362Z","createdAt":"2026-03-13T10:27:58.362Z","role":"workflow:owner","workflowId":"01X7dcZ6KVkaqSko","projectId":"HOjkcE7iYuEpXRNR","project":{"updatedAt":"2025-11-24T05:13:19.424Z","createdAt":"2025-09-19T06:56:46.826Z","id":"HOjkcE7iYuEpXRNR","name":"Dante Kwak <dantelabs.pro@gmail.com>","type":"personal","icon":null,"description":null,"creatorId":"102ca187-1fa0-4d33-a606-5a0bb96a0fe3"}}],"tags":[],"activeVersion":{"updatedAt":"2026-03-15T14:38:36.936Z","createdAt":"2026-03-15T14:38:36.936Z","versionId":"5305f2e6-faff-4ec1-82e3-ba7c84e45095","workflowId":"01X7dcZ6KVkaqSko","nodes":[{"parameters":{},"id":"cdcb53a2-0351-4887-b01d-7c14711dc61f","name":"수동 실행","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[32,416]},{"parameters":{"documentId":{"__rl":true,"value":"1VwKRw23XGxberlUN1IltxHwFLyF2fdgEHawj-Hv9OsI","mode":"id"},"sheetName":{"__rl":true,"value":"공문데이터","mode":"name"},"options":{}},"id":"a1b2c3d4-1111-2222-3333-444455556666","name":"공문 데이터 읽기","type":"n8n-nodes-base.googleSheets","typeVersion":4.5,"position":[256,416],"credentials":{"googleSheetsOAuth2Api":{"id":"Sb5WFYkauRJ08tE9","name":"Google Sheets account"}}},{"parameters":{"operation":"download","fileId":{"__rl":true,"value":"1I_UIniMxZ705advl7B_FJgc-L1jedJER","mode":"id"},"options":{}},"id":"870524de-ea97-46f7-846d-344e36057fca","name":"템플릿 다운로드","type":"n8n-nodes-base.googleDrive","typeVersion":3,"position":[704,224],"credentials":{"googleDriveOAuth2Api":{"id":"WKPSUzZos0D8NmvL","name":"Google Drive account"}}},{"parameters":{"options":{"reset":false}},"id":"e5f6a7b8-loop-0001-0002-000300040005","name":"공문 반복 생성","type":"n8n-nodes-base.splitInBatches","typeVersion":3,"position":[480,416]},{"parameters":{"operation":"fillTemplate","replacements":{"pairs":[{"find":"{{수신처}}","replace":"={{ $json['수신처'] }}"},{"find":"{{제목}}","replace":"={{ $json['제목'] }}"},{"find":"{{발신일자}}","replace":"={{ $json['발신일자'] }}"},{"find":"{{섹션제목}}","replace":"={{ $json['섹션제목'] }}"},{"find":"{{항목1}}","replace":"={{ $json['항목1'] }}"},{"find":"{{세부1}}","replace":"={{ $json['세부1'] }}"},{"find":"{{상세1}}","replace":"={{ $json['상세1'] }}"},{"find":"{{참고}}","replace":"={{ $json['참고'] }}"},{"find":"{{섹션2제목}}","replace":"={{ $json['섹션2제목'] }}"},{"find":"{{항목2}}","replace":"={{ $json['항목2'] }}"},{"find":"{{세부2}}","replace":"={{ $json['세부2'] }}"},{"find":"{{상세2}}","replace":"={{ $json['상세2'] }}"},{"find":"{{섹션3제목}}","replace":"={{ $json['섹션3제목'] }}"},{"find":"{{항목3}}","replace":"={{ $json['항목3'] }}"},{"find":"{{세부3}}","replace":"={{ $json['세부3'] }}"},{"find":"{{발신기관}}","replace":"={{ $json['발신기관'] }}"}]},"fileName":"={{ $('공문 반복 생성').item.json['수신처'].replace(/ /g, '_') }}_공문.hwpx","outputBinaryPropertyName":"hwpx"},"id":"648f1ede-7ae2-408a-bfcd-ef1857f18761","name":"공문 텍스트 치환","type":"n8n-nodes-hwpx.hwpx","typeVersion":1,"position":[928,224]},{"parameters":{"url":"https://storage.googleapis.com/dante-labs-pub/logo/dante_education_institute.png","options":{"response":{"response":{"responseFormat":"file","outputPropertyName":"logo"}}}},"id":"c4ad1326-91a7-405d-bf55-50b7e86b5649","name":"로고 다운로드","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[928,416]},{"parameters":{"mode":"combine","combineBy":"combineByPosition","options":{}},"id":"6b60d1e7-103c-4169-aa98-35602da6b46c","name":"바이너리 병합","type":"n8n-nodes-base.merge","typeVersion":3,"position":[1152,320]},{"parameters":{"resource":"content","operation":"replaceImage","inputBinaryPropertyName":"hwpx","imageBinaryPropertyName":"logo","options":{}},"id":"6cd3d089-d3a1-4a37-81b3-86a876a5b964","name":"로고 교체","type":"n8n-nodes-hwpx.hwpx","typeVersion":1,"position":[1376,320]},{"parameters":{"fromEmail":"dandacompany@naver.com","toEmail":"={{ $('공문 반복 생성').item.json[\"이메일\"] }}","subject":"={{ \"[\" + $('공문 반복 생성').item.json[\"발신기관\"] + \"] \" + $('공문 반복 생성').item.json[\"제목\"] }}","html":"={{ \"<div style=\\\"font-family: Malgun Gothic, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px;\\\"><div style=\\\"border-bottom: 3px solid #2c3e50; padding-bottom: 15px; margin-bottom: 20px;\\\"><h2 style=\\\"color: #2c3e50; margin: 0;\\\">\" + $('공문 반복 생성').item.json[\"발신기관\"] + \"</h2></div><p style=\\\"font-size: 15px; color: #333; line-height: 1.8;\\\"><strong>\" + $('공문 반복 생성').item.json[\"수신처\"] + \"</strong> 귀하</p><p style=\\\"font-size: 14px; color: #555; line-height: 1.8;\\\">안녕하세요. \" + $('공문 반복 생성').item.json[\"발신기관\"] + \"입니다.<br><br><strong>\" + $('공문 반복 생성').item.json[\"제목\"] + \"</strong> 관련 공문을 송부드립니다.<br>첨부된 HWPX 파일을 확인해 주시기 바랍니다.</p><div style=\\\"background: #f8f9fa; border-left: 4px solid #3498db; padding: 12px 16px; margin: 20px 0; font-size: 13px; color: #555;\\\"><strong>첨부파일:</strong> \" + $('공문 반복 생성').item.json[\"수신처\"].replace(/ /g, \"_\") + \"_공문.hwpx</div><hr style=\\\"border: none; border-top: 1px solid #eee; margin: 25px 0;\\\"><p style=\\\"font-size: 12px; color: #999; line-height: 1.6;\\\">본 메일은 \" + $('공문 반복 생성').item.json[\"발신기관\"] + \"에서 자동 발송된 메일입니다.<br>발신일자: \" + $('공문 반복 생성').item.json[\"발신일자\"] + \"</p></div>\" }}","options":{"attachments":"data"}},"type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[1600,392],"id":"44ccfba6-1d88-4c6f-a670-2cbca05809f3","name":"공문 이메일 발송","webhookId":"aa4d14e5-d715-496c-8494-253100e2e286","credentials":{"smtp":{"id":"uj57hsc9f2cD3eHH","name":"Naver SMTP account"}}}],"connections":{"수동 실행":{"main":[[{"node":"공문 데이터 읽기","type":"main","index":0}]]},"공문 데이터 읽기":{"main":[[{"node":"공문 반복 생성","type":"main","index":0}]]},"공문 반복 생성":{"main":[[],[{"node":"로고 다운로드","type":"main","index":0},{"node":"템플릿 다운로드","type":"main","index":0}]]},"템플릿 다운로드":{"main":[[{"node":"공문 텍스트 치환","type":"main","index":0}]]},"공문 텍스트 치환":{"main":[[{"node":"바이너리 병합","type":"main","index":0}]]},"로고 다운로드":{"main":[[{"node":"바이너리 병합","type":"main","index":1}]]},"바이너리 병합":{"main":[[{"node":"로고 교체","type":"main","index":0}]]},"로고 교체":{"main":[[{"node":"공문 이메일 발송","type":"main","index":0}]]},"공문 이메일 발송":{"main":[[{"node":"공문 반복 생성","type":"main","index":0}]]}},"authors":"Dante Kwak","name":null,"description":null,"autosaved":false,"workflowPublishHistory":[{"createdAt":"2026-03-15T14:38:36.978Z","id":201,"workflowId":"01X7dcZ6KVkaqSko","versionId":"5305f2e6-faff-4ec1-82e3-ba7c84e45095","event":"activated","userId":"102ca187-1fa0-4d33-a606-5a0bb96a0fe3"},{"createdAt":"2026-03-15T14:38:36.967Z","id":200,"workflowId":"01X7dcZ6KVkaqSko","versionId":"5305f2e6-faff-4ec1-82e3-ba7c84e45095","event":"deactivated","userId":"102ca187-1fa0-4d33-a606-5a0bb96a0fe3"}]}}