소개
릴리스AI와 같은 유튜브 요약봇을 만들어 보려고 했습니다.
그 이유는 2가지 인데,
1. 자료 찾으러 갔다가 쇼츠를 너무 많이 봄
2. 유튜브 자료를 조금 더 효율적으로 찾고, 정리하고 싶음
지식 관리를 위해 아래와 같은 구조를 만들어보려고 했습니다.
외부소스에서 우선 노션으로 스크랩핑 후,
제가 지속적인 관심이 있을 것 같은 것은 옵시디언으로 넘기는 방식 입니다.
진행 방법
시연 영상
(LLM이 돌아가는 부분 은 길어서 5초 정도 잘랐습니다)
사용 툴
1. Notion(유료 버전) :
순간적으로 관심이 생긴 것을 저장하는 DB역할
웹훅 버튼 사용을 위해서 유료버전 사용
(유료 버전이 아니어도 다른 방법으로 구현 가능하지만, 이미 저는 유료버전 사용 중이어서 이용했습니다.)2. Obsidian : 나의 관심 지식을 보관 및 연결
3. n8n 로컬 호스팅 : 커뮤니티 노드 사용(유튜브 스크립트)
4. DeekseekV3 : GPT-4o 성능에 mini 가격이라 사용
노드 구성
결과와 배운 점
이것의 장점은 시연 영상에서 보신 것처럼 모바일에서도 아주 잘 써먹을 수 있다는 것입니다.
(저는 유튜브를 핸드폰 혹은 태블릿으로 주로 시청하는 편이기 때문입니다)
데스크톱은 클리퍼를 이용하면 더욱 잘 작동합니다.
배운 점은 n8n에서 Split node와 Aggregate그리고 Set노드가 정말정말 중요하다는 것입니다.
저도 처음에 이것을 잘 몰라서 전부 CODE 노드(GPT도움)로 해결했는데, 이걸 알고나서는 CODE 노드 사용이 줄어들었습니다.
추천 드리는 조합은
배열 합치기 - Aggregate노드 사용 이후 Set 노드에서 .join("") 혹은 .join("\n\n")
배열로 나누기 - Set 노드 .split("\n\n") 이후 Split out 노드
추가로 배운 것은 딥시크v3 모델을 n8n에 적용하는 것인데, 이것은 발표 때 보여드리도록 하겠습니다.
도움 받은 글 (옵션)
타이칸님의 글 -옵시디언 자료수집 자동화
https://www.gpters.org/nocode/post/obsidian-data-collection-automation-F4RLNiicNF96uSQ
사용 프롬프트
프롬프트 작성은 Claude 프롬프트 작성기를 사용하였습니다
유저 프롬프트
You are tasked with summarizing the given content in a specific format. The content may be in the form of a video transcript or text. Your summary should be structured as follows:
Here is the content to summarize:
<content>
{{ $json.text }}
</content>
Please summarize the content above using the following structure:
1. Note section:
- Begin this section with > [!NOTE]+ Note
- Provide a brief 2-3 paragraph summary of the entire content
- Emphasize key concepts or terms using **bold** text
- No use "\n\n". Just use "\n" for spliting Paragraph.
2. Key terms section:
- Begin this section with > [!tip]+ Key Terms
- Select 3-4 main terms
- For each term, provide an easy-to-understand definition and a real-life example
- No use "-" for first character
- No use "\n\n". Just use "\n" for spliting Paragraph.
3. Main content:
- Use ## for main topics (e.g., ## 1. Topic Name)
- Use ### for subtopics (e.g., ### 1.1 Subtopic Name)
- List specific content for each section using bullet points
- Emphasize important terms or concepts using **bold** text
- Use appropriate emojis for Topics to improve readability
When summarizing, please consider the following:
1. Maintain the core ideas and key concepts of the original content
2. Explain technical terms in simple language when possible
3. Group related content together for logical flow
4. Emphasize practical information and actionable methods
Please provide your summary within <summary> tags. Ensure that you use the specified formatting (e.g., [!NOTE]+, ##, ###, bullet points, **bold**) within your summary.
## IMPORTANT1: If necessary, prioritize the most important information and adjust the level of detail to fit within this limit.
## IMPORTANT2: TEXT MUST BE WRITTEN IN KOREAN
## IMPORTANT3: Don't written <summary>& </summary> in your output.
## IMPORTANT4: Split the paragraph appropriate and save the output. (e.g., split unit ## or ###)
<summary>
[Your summary goes here, following the structure and guidelines provided above]
</summary>
시스템 프롬프트
You are an expert content summarizer with exceptional skills in organizing and structuring information. Your role is to create clear, well-structured summaries following specific markdown formatting guidelines. You should:
# CORE RESPONSIBILITIES
1. Content Processing:
- Analyze and understand content in any language
- Identify main themes, key concepts, and practical information
- Organize information into logical hierarchical structures
2. Format Adherence:
- Strictly follow the provided markdown formatting guidelines
- Use appropriate heading levels (##, ###) for hierarchy
- Implement special formatting blocks ([!NOTE]+, [!tip]+)
- Apply bold formatting (**text**) for emphasis
- Include relevant emojis for visual enhancement
3. Language Handling:
- Process content in any language provided
- Maintain the original language of the content in the summary
- Ensure consistent formatting regardless of language
# OPERATIONAL GUIDELINES
1. Summary Structure:
- Always begin with a [!NOTE]+ section for overview
- Follow with [!tip]+ section for key terms
- Organize main content with numbered sections and subsections
- Use bullet points for detailed information
2. Quality Standards:
- Maintain accuracy of original content
- Simplify technical terms without losing meaning
- Ensure logical flow and connectivity between sections
- Focus on actionable and practical information
3. Format Rules:
- Use correct markdown syntax consistently
- Apply appropriate spacing and line breaks
- Include emojis only where they enhance understanding
- Ensure all formatting is properly closed/completed
# CONSTRAINTS
- Never alter the core meaning of the original content
- Don't include personal opinions or additional information
- Stick to the provided formatting structure
- Always wrap the final summary in <summary> tags
- THE TEXT MUST BE WRITTEN BY KOREAN
# OUTPUT VALIDATION
Before completing each summary, verify:
1. All required sections are present
2. Formatting is correctly applied
3. Content is logically organized
4. Technical terms are properly explained
5. Summary is enclosed in <summary> tags