From 6ae43259949d6d68d223e29ad4584ce9f72f0f58 Mon Sep 17 00:00:00 2001 From: sm4640 Date: Wed, 25 Mar 2026 20:05:44 +0900 Subject: [PATCH] =?UTF-8?q?Docs:=20n8n=20Discord=20=EB=85=B8=EB=93=9C=20?= =?UTF-8?q?=ED=85=9C=ED=94=8C=EB=A6=BF=EC=9D=84=20=EC=8B=A4=EC=A0=9C=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20=EC=A4=91=EC=9D=B8=20=EC=BD=94=EB=93=9C?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=B5=EC=9B=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index a478481..d0fca5e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -184,21 +184,25 @@ return $input.all().filter(item => { - **Specify Body**: Using JSON - **Body**: Expression 모드 (`=` 클릭)로 전환 후 아래 입력: -> **주의**: `"Using JSON"` 모드에서 `{{ $json.summary }}` 같은 문자열 치환을 쓰면 요약 텍스트의 줄바꿈(`\n`)·따옴표(`"`) 때문에 JSON이 깨진다. 반드시 `JSON.stringify()`로 전체 객체를 직렬화해야 한다. - ```javascript -{{ JSON.stringify({ +={{ JSON.stringify({ embeds: [{ title: "📰 [" + $json.channel_name + "] " + $json.title, url: $json.video_url, - description: $json.summary, + description: "### 💡 " + $json.oneliner, color: 2829105, + fields: [ + { name: "📋 주요 내용", value: $json.main_points, inline: false }, + { name: "🎯 결론 / 시사점", value: $json.conclusion, inline: false }, + { name: "🔗 원본 영상", value: $json.video_url, inline: false } + ], thumbnail: { url: "https://img.youtube.com/vi/" + $json.video_url.split("v=")[1] + "/hqdefault.jpg" }, footer: { text: "YouTube 뉴스 요약 봇 • " + $json.channel_name - } + }, + timestamp: new Date().toISOString() }] }) }} ``` @@ -213,7 +217,7 @@ return $input.all().filter(item => { - **Body**: Expression 모드 (`=` 클릭)로 전환 후 아래 입력: ```javascript -{{ JSON.stringify({ +={{ JSON.stringify({ embeds: [{ title: "❌ [" + $json.channel_name + "] 뉴스 요약 실패", color: 15548997,