EXITN
HomeDocsCloudCommunity문의하기

커뮤니티 검색

게시글, 댓글, 사용자를 검색할 수 있습니다

커뮤니티

함께 소통하고 정보를 공유해보세요

커뮤니티

함께 소통하고 정보를 공유해보세요

카테고리

커뮤니티 홈바이브코딩자유게시판질문답변n8n
VOD
자유게시판
2026년 02월 10일

CPPA

{ "meta": { "instanceId": "8676b20c9cd990169068339dd22615a294f8be9ea339b1dc03fad1f3b3a2e446" }, "nodes": [ { "id": "14e40496-f7ce-4ef9-8c95-9d325d69d60a", "name": "설정값 및 쿼리스트링 생성", "type": "n8n-nodes-base.code", "position": [ -512, 0 ], "parameters": { "jsCode": "// 파라미터 설정\nconst params = {\n keyword: JSON.parse($('제목 가져오기').first().json.title)[0],\n limit: 5\n // 필요한 경우 아래 파라미터들을 추가\n // subId: 'your-sub-id',\n // imageSize: '512x512',\n};\n\n// 쿼리 스트링 생성 (알파벳 순으로 정렬)\nconst sortedParams = Object.keys(params)\n .sort()\n .map(key => ${key}=${encodeURIComponent(params[key])})\n .join('&');\n\nreturn {\n accessKey: $('제목 가져오기').first().json.accessKey,\n secretKey: $('제목 가져오기').first().json.secretKey,\n method: 'GET',\n path: '/v2/providers/affiliate_open_api/apis/openapi/products/search',\n query: sortedParams, // ? 없이 쿼리스트링만\n domain: 'https://api-gateway.coupang.com',\n fullUrl: 'https://api-gateway.coupang.com/v2/providers/affiliate_open_api/apis/openapi/products/search?' + sortedParams\n};" }, "typeVersion": 2 }, { "id": "f3e82ce1-e199-4762-b4aa-64e19a4d7d1a", "name": "DateTime 및 Message 생성1", "type": "n8n-nodes-base.set", "position": [ -304, 0 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "datetime", "name": "datetime", "type": "string", "value": "={{ $now.toDateTime().toUTC().toFormat('yyMMdd\'T\'HHmmss\'Z\'') }}" }, { "id": "message", "name": "message", "type": "string", "value": "={{ $now.toDateTime().toUTC().toFormat('yyMMdd\'T\'HHmmss\'Z\'') + $json.method + $json.path + $json.query }}" } ] } }, "typeVersion": 3.3 }, { "id": "122511e9-c23f-4ce8-b577-2a06af767c92", "name": "HMAC 서명 생성", "type": "n8n-nodes-base.crypto", "position": [ -112, 0 ], "parameters": { "type": "SHA256", "value": "={{ $json.message }}", "action": "hmac", "secret": "={{ $('설정값 및 쿼리스트링 생성').item.json.secretKey }}" }, "typeVersion": 1 }, { "id": "e9d62185-293b-4522-877b-ee2da690c8e3", "name": "Authorization 헤더 생성", "type": "n8n-nodes-base.code", "position": [ 96, 0 ], "parameters": { "jsCode": "const accessKey = $('설정값 및 쿼리스트링 생성').first().json.accessKey;\nconst datetime = $('DateTime 및 Message 생성1').first().json.datetime;\nconst signature = $input.first().json.data;\n\nconst authorization = CEA algorithm=HmacSHA256, access-key=${accessKey}, signed-date=${datetime}, signature=${signature};\n\nreturn {\n authorization: authorization,\n url: $('설정값 및 쿼리스트링 생성').first().json.fullUrl\n};" }, "typeVersion": 2 }, { "id": "7f1a211c-5bbf-4577-aa61-a888703fa6be", "name": "쿠팡 API 호출", "type": "n8n-nodes-base.httpRequest", "position": [ 288, 0 ], "parameters": { "url": "={{ $json.url }}", "options": {}, "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "={{ $json.authorization }}" } ] } }, "typeVersion": 4.1 }, { "id": "5aeb9e72-4e1a-49a6-8e3a-b6ef70dd16d1", "name": "Gemini 글생성", "type": "n8n-nodes-base.httpRequest", "maxTries": 2, "position": [ 464, 0 ], "parameters": { "url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent", "method": "POST", "options": {}, "jsonBody": "={\n "contents": [\n {\n "parts": [\n {\n "text": "다음 주제로 블로그 글을 작성해주세요: {{JSON.parse($('제목 가져오기').first().json.title)[0]}},\n소개할 상품: {{ $json.data.productData[0].productName }},\n\n구조 및 디자인 요구사항:\n- 반응형 디자인: 모바일, 태블릿, 데스크톱 모두 대응\n- 코드 형식: 모든 HTML 코드는 줄바꿈 없이 한 줄로 이어서 작성합니다. \n\n모든 출력은 아래 HTML 템플릿 구조를 반드시 따라야 합니다.\n출력 형식:\n<div class=\"post\">\n\n{본문_내용}\n\n규칙:\n1. body 태그나 body 스타일을 절대 사용하지 않는다.\n2. 모든 텍스트는 post 안에만 존재해야 한다.\n3. 이미지, 제목, 단락은 자동으로 post 내부 요소로 제한해 출력한다.\n4.post의 배경에는 background 스타일을 적용하지 않는다.\n5.최상위 컨테이너인 <div class=\"post\">에는 padding과 margin을 넣지 않는다. 내부에 있는 다른 요소들은 있어도 된다.\n\n주요 소제목은 <h2>, 그 하위 내용은 <h3>로 구조화합니다.\n본문 폰트: 본문 글자색은 검정색(#000000),글자 크기는 20px, 폰트는 Pretendard로 설정해주세요.line-height: 1.6으로 설정해주세요.\n- 섹션 구분자: 각 섹션 사이에 고급스럽고 깔끔한 구분자 적용\n\n콘텐츠 요구사항:\n- HTML만 생성, 추가 설명 절대 없음\n글자 수: 약 3000자.\n말투는 친근하고 자연스러운 대화체로 작성 (예: 요, ~네요, ~해요),광고 같지 않게, 내 경험이나 정보 제공 중심, 구매를 자연스럽게 유도할 수 있는 문장 포함\n표: 표 하나를 포함합니다.\n-배경색은 에만 넣습니다.\n-아래 이미지를 본문의 적절한 곳에 삽입합니다.\n{{ $json.data.productData[0].productImage }}\n이미지 태그: 태그 사용 시 onerror=\"this.style.display='none'\"를 추가합니다.\n- 본문을 적절한 섹션으로 나눔\n- 제외 요소: 헤더, 푸터, 사이드바 절대 포함하지 않음\n- '서론','섹션','결론' 같은 단어 절대 사용 금지\n- 글은 2026년 기준\n- 반드시 포함할 내용:\n맨 위에 파트너스 활동을 통해 일정액의 수수료를 제공받을 수 있다는 멘트 추가\n 1. 제품 설명: 특징, 장점, 사용 방법\n 2. 체험담: 실제 사용 후 느낌, 장점과 단점\n 3. 구매 버튼 배너 섹션 2개 추가:\n\n글 중간과 하단에 눈에 확 띄는 CTA 배너를 삽입해주세요:\n\n배너 내용:\n\n- {{ $json.data.productData[0].productUrl }} 이 구매 링크를 달고 행동을 유도하는 카피를 작성해주세요"\n }\n ]\n }\n ]\n}", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "authentication": "predefinedCredentialType", "headerParameters": { "parameters": [ { "name": "Content-Type", "value": "application/json" } ] }, "nodeCredentialType": "googlePalmApi" }, "credentials": { "googlePalmApi": { "id": "jWqfgZDcNLeJPTT8", "name": "Google Gemini(PaLM) Api account mwsg" } }, "executeOnce": true, "retryOnFail": false, "typeVersion": 4.2, "waitBetweenTries": 5000 }, { "id": "7367e1c1-f89c-4332-bcd0-aa14ad87f7f2", "name": "워드프레스 업로드", "type": "n8n-nodes-base.wordpress", "position": [ 640, 0 ], "parameters": { "title": "={{ $('쿠팡 API 호출').item.json.data.productData[0].productName }}", "additionalFields": { "status": "publish", "content": "={{ $json.candidates[0].content.parts[0].text.replace(/^html\\n/, '').replace(/\\n$/, '') }}" } }, "credentials": { "wordpressApi": { "id": "jDBqwmku4GwjNip4", "name": "Wordpress account" } }, "typeVersion": 1 }, { "id": "715104e2-d28a-48c0-975a-05f480e9e87e", "name": "스케줄 설정", "type": "n8n-nodes-base.scheduleTrigger", "position": [ -944, 0 ], "parameters": { "rule": { "interval": [ { "field": "hours", "hoursInterval": 9 } ] } }, "typeVersion": 1.2 }, { "id": "15569662-2fe7-4d97-9f3c-d916ef689567", "name": "제목 가져오기", "type": "n8n-nodes-base.dataTable", "position": [ -736, 0 ], "parameters": { "limit": 1, "operation": "get", "dataTableId": { "__rl": true, "mode": "list", "value": "EsxV6nPC1oKevl6q", "cachedResultUrl": "/projects/ah0YSvlPAcQU6Jl5/datatables/EsxV6nPC1oKevl6q", "cachedResultName": "Coupang" } }, "typeVersion": 1.1 }, { "id": "96c778a8-50c4-4dbc-9799-58be6c6e96f3", "name": "작성한 제목 지우기", "type": "n8n-nodes-base.dataTable", "position": [ 832, 0 ], "parameters": { "columns": { "value": { "title": "={{ JSON.stringify(JSON.parse($('제목 가져오기').item.json.title).slice(1)) }}" }, "schema": [ { "id": "title", "type": "string", "display": true, "removed": false, "readOnly": false, "required": false, "displayName": "title", "defaultMatch": false }, { "id": "accessKey", "type": "string", "display": true, "removed": true, "readOnly": false, "required": false, "displayName": "accessKey", "defaultMatch": false }, { "id": "secretKey", "type": "string", "display": true, "removed": true, "readOnly": false, "required": false, "displayName": "secretKey", "defaultMatch": false } ], "mappingMode": "defineBelow", "matchingColumns": [], "attemptToConvertTypes": false, "convertFieldsToString": false }, "filters": { "conditions": [ { "keyValue": "1" } ] }, "options": {}, "operation": "update", "dataTableId": { "__rl": true, "mode": "list", "value": "EsxV6nPC1oKevl6q", "cachedResultUrl": "/projects/ah0YSvlPAcQU6Jl5/datatables/EsxV6nPC1oKevl6q", "cachedResultName": "Coupang" } }, "typeVersion": 1.1 } ], "pinData": {}, "connections": { "Gemini 글생성": { "main": [ [ { "node": "워드프레스 업로드", "type": "main", "index": 0 } ] ] }, "스케줄 설정": { "main": [ [ { "node": "제목 가져오기", "type": "main", "index": 0 } ] ] }, "쿠팡 API 호출": { "main": [ [ { "node": "Gemini 글생성", "type": "main", "index": 0 } ] ] }, "HMAC 서명 생성": { "main": [ [ { "node": "Authorization 헤더 생성", "type": "main", "index": 0 } ] ] }, "제목 가져오기": { "main": [ [ { "node": "설정값 및 쿼리스트링 생성", "type": "main", "index": 0 } ] ] }, "워드프레스 업로드": { "main": [ [ { "node": "작성한 제목 지우기", "type": "main", "index": 0 } ] ] }, "Authorization 헤더 생성": { "main": [ [ { "node": "쿠팡 API 호출", "type": "main", "index": 0 } ] ] }, "DateTime 및 Message 생성1": { "main": [ [ { "node": "HMAC 서명 생성", "type": "main", "index": 0 } ] ] }, "설정값 및 쿼리스트링 생성": { "main": [ [ { "node": "DateTime 및 Message 생성1", "type": "main", "index": 0 } ] ] } } }

댓글 (0개)

댓글을 작성하려면 로그인이 필요합니다.

아직 댓글이 없습니다.

첫 번째 댓글을 작성해보세요!

작성자
C

CPPA

2
0
다른 게시글
n8n

Coupang

02
2026.02.10