สร้าง Storyboard และ Script สำหรับทำสื่อวิดีโอ
Prompt สำหรับสร้าง automation ในการสร้างสื่อและ Storyboard
Prompt Template
Workflow สำหรับ สร้างวิดีโอสื่อการสอน โดยรับข้อมูลหลักเป็นชื่อเรื่อง เนื้อหา และกำหนดสไตล์กับภาษาของวิดีโอที่จะผลิต
## 🟡 ส่วน Input (4 รายการเริ่มต้น)
* **`Lesson Title`**: รับชื่อเรื่องของบทเรียน
* **`Lesson Content`**: รับเนื้อหาทั้งหมดของบทเรียน
* **`Video Style`**: รับคำอธิบายสไตล์วิดีโอ
* **`Video Language`**: รับภาษาที่จะใช้ในวิดีโอ
-----
## 🔵 ส่วน Generate (5 ขั้นตอนประมวลผล)
### 1\. Node: `Generate Full Storyboard` (สร้าง Storyboard หลัก)
* **หน้าที่:** สร้าง Storyboard ฉบับเต็ม, โครงเรื่อง, คำอธิบายตัวละคร, สคริปต์ (ไม่เกิน 7 วินาทีต่อซีน) และ Prompt รูปภาพสำหรับทุกซีน
* **ใช้ข้อมูลจาก:** `Lesson Content`, `Lesson Title`, `Video Style`, `Video Language`
* **📝 Prompt ที่ใช้ใน Node นี้:**
> You are an expert storyboard generator, tasked with creating a comprehensive storyboard for an instructional video. Your output must include a detailed plot outline, a consistent description of the main character, the total number of scenes, and for each scene, a detailed script (no longer than 7 seconds) and a descriptive image prompt. The entire plan should be based on the provided lesson title and content, adhering to the specified `video_style`, and ensuring it is suitable for an instructional video in the specified `video_language`. The output should be structured to allow easy extraction of individual scene scripts and image prompts.
> # Step by Step instructions
> 1. Understand the provided Lesson Title, Lesson Content, Video Style, and Video Language.
> 2. Develop a detailed plot outline for the instructional video based on the Lesson Content, ensuring it aligns with the Lesson Title.
> 3. Create a consistent description of the main character, suitable for an instructional video and adhering to the Video Style.
> 4. Determine the total number of scenes required to convey the lesson effectively.
> 5. For the first scene, write a detailed script that is no longer than 7 seconds, and create a descriptive image prompt that clearly defines the main character's appearance and actions, the setting, and how this frame advances the micro-narrative, while maintaining a consistent art style and mood.
> 6. Look back at the storyboard created so far. Have all the scenes been covered? If not, go back to step 5 and create the script and image prompt for the next scene, ensuring each new scene logically follows the previous one, maintains character consistency, and adheres to the Video Style and Video Language.
> 7. Ensure the entire storyboard is structured to allow easy extraction of individual scene scripts and image prompts.
> Lesson Content:
> """
> {{"type": "in", "path": "ask\_user\_lesson\_content", "title": "Lesson Content"}}
> """
> Video Language:
> """
> {{"type": "in", "path": "ask\_user\_video\_language", "title": "Video Language"}}
> """
> Lesson Title:
> """
> {{"type": "in", "path": "ask\_user\_lesson\_title", "title": "Lesson Title"}}
> """
> Video Style:
> """
> {{"type": "in", "path": "ask\_user\_video\_style", "title": "Video Style"}}
> """
> IMPORTANT NOTE: Start directly with the output, do not output any delimiters.
> Output:
-----
### 2\. Node: `Extract All Scene Scripts` (ดึงสคริปต์)
* **หน้าที่:** ดึงสคริปต์คำบรรยายสำหรับแต่ละซีน (ที่ถูกสร้างจาก Node 1) และส่งออกเป็น JSON array
* **ใช้ข้อมูลจาก:** `Generate Full Storyboard` (ผลลัพธ์ข้อ 1), `Video Language`, `Video Style`
* **📝 Prompt ที่ใช้ใน Node นี้:**
> You are an expert script extractor, capable of parsing structured data and isolating specific textual components. Your task is to accurately extract only the complete scripts for *all* scenes from the `full_storyboard_content`. Each extracted script should be a standalone, natural language description of the visual content for a short video clip (no longer than 7 seconds, with audio), focusing on the narrative progression of each scene, consistent with the `video_style`, and in the specified `video_language`. The output should be a JSON array of strings, where each string is a complete script for a single scene.
> # Step by Step instructions
> 1. Read the provided Generate Full Storyboard content carefully, along with the Video Style and Video Language.
> 2. Identify a single complete script for a scene within the Generate Full Storyboard content, ensuring it is a natural language description of visual content, no longer than 7 seconds with audio, focuses on narrative progression, and is consistent with the Video Style and Video Language.
> 3. Add the extracted script to a JSON array of strings.
> 4. Check if all scene scripts have been extracted from the Generate Full Storyboard content. If not, go back to step 2 and extract the next complete script.
> 5. Ensure the final output is a JSON array of strings, where each string is a complete script for a single scene, as specified in the intent.
> Video Language:
> """
> {{"type": "in", "path": "ask\_user\_video\_language", "title": "Video Language"}}
> """
> Video Style:
> """
> {{"type": "in", "path": "ask\_user\_video\_style", "title": "Video Style"}}
> """
> Generate Full Storyboard:
> """
> {{"type": "in", "path": "node\_step\_full\_storyboard\_content", "title": "Generate Full Storyboard"}}
> """
> IMPORTANT NOTE: Start directly with the output, do not output any delimiters.
> Output:
-----
### 3\. Node: `Extract All Image Prompts` (ดึง Prompt ภาพ)
* **หน้าที่:** รวบรวม Prompt รูปภาพทั้งหมดจาก Node 1 ให้เป็น "คำสั่งชุดเดียว" (single, comprehensive instruction) สำหรับใช้สร้างภาพ
* **ใช้ข้อมูลจาก:** `Generate Full Storyboard` (ผลลัพธ์ข้อ 1), `Video Language`, `Video Style`
* **📝 Prompt ที่ใช้ใน Node นี้:**
> You are an expert visual narrative compiler, tasked with generating a single, comprehensive instruction containing descriptive image prompts for all scenes from the `full_storyboard_content`. Ensure these prompts logically follow the overall plot and consistent main character, adhering to the specified `video_style` and `video_language`. Each prompt must clearly define the main character's appearance and actions, the setting, and how this frame advances the micro-narrative from the previous one, maintaining a consistent art style and mood across all images. The instruction should explicitly state that each image generated must correspond to exactly one scene, contain no multiple scenes, be complete and not blank, and ensure character consistency across all images, with no text appearing on the images. The output should be this single, comprehensive instruction.
> # Step by Step instructions
> 1. Read the provided Full Storyboard Content carefully, along with the Video Style and Video Language.
> 2. Identify a single scene from the Full Storyboard Content.
> 3. Create a detailed, descriptive image prompt for the identified scene.
> 4. For this image prompt, ensure it:
> a. Clearly defines the main character's appearance and actions, reiterating key features for consistency across frames.
> b. Explains how this frame advances the micro-narrative from the previous one.
> c. Clearly defines the setting.
> d. Maintains a consistent art style and mood, adhering to the specified Video Style.
> e. Is written in the specified Video Language.
> f. Explicitly states that the image generated must correspond to exactly one scene, contain no multiple scenes, be complete and not blank, and ensure character consistency across all images, with no text appearing on the images.
> 5. Look back at the Full Storyboard Content. Have all scenes been covered with an image prompt? If not, go back to step 2 and create the image prompt for the next scene.
> 6. Combine all generated individual image prompts into a single, comprehensive instruction.
> 7. Conclude the comprehensive instruction by explicitly stating "IMPORTANT: Generate exactly \<number of scenes\> images", where \<number of scenes\> is the total number of scenes from the Full Storyboard Content.
> Video Language:
> """
> {{"type": "in", "path": "ask\_user\_video\_language", "title": "Video Language"}}
> """
> Video Style:
> """
> {{"type": "in", "path": "ask\_user\_video\_style", "title": "Video Style"}}
> """
> Generate Full Storyboard:
> """
> {{"type": "in", "path": "node\_step\_full\_storyboard\_content", "title": "Generate Full Storyboard"}}
> """
> IMPORTANT NOTE: Start directly with the output, do not output any delimiters.
> Output:
-----
### 4\. Node: `Generate Images` (สร้างรูปภาพ)
* **หน้าที่:** สร้างไฟล์รูปภาพตาม "คำสั่งชุดเดียว" ที่ได้รับมาจาก Node 3
* **ใช้ข้อมูลจาก:** `Extract All Image Prompts Instruction` (ผลลัพธ์ข้อ 3)
* **📝 Prompt ที่ใช้ใน Node นี้:**
> {{"type": "in", "path": "node\_step\_all\_image\_prompts\_instruction", "title": "Extract All Image Prompts Instruction"}}
> IMPORTANT: Generate exactly {{amount}} images from the extracted image prompts. Each prompt should result in a single, separate image; do not combine multiple prompts into one image.
-----
## 🏁 Node Output สุดท้าย (สร้าง Storyboard HTML)
### 5\. Node: `Generate Full Storyboard...` (สร้าง Output สุดท้าย)
* **หน้าที่:** รวบรวมข้อมูลทั้งหมด (Storyboard จากข้อ 1, รูปภาพจากข้อ 4, และชื่อเรื่องจาก Input) เพื่อสร้างเป็นหน้าเว็บ HTML ที่แสดงผลบทเรียน
* **ใช้ข้อมูลจาก:** `Generate Full Storyboard`, `Generate Images`, `Lesson Title`
* **📝 Prompt ที่ใช้ใน Node นี้:**
> Generate a single HTML webpage that presents a lesson. The page should feature a prominent lesson title at the top. Below the title, each scene of the lesson should be displayed sequentially. For each scene, clearly present the scene number, its script, and the corresponding image. Ensure the layout is clean, responsive, and easy to navigate, with clear separation between scenes. The page should be visually appealing and prioritize readability.
> generate\_full\_storyboard: {{"type": "in", "path": "node\_step\_full\_storyboard\_content", "title": "Generate Full Storyboard"}}
> generate\_images: {{"type": "in", "path": "node\_step\_all\_scene\_images", "title": "Generate Images"}}
> lesson\_title: {{"type": "in", "path": "ask\_user\_lesson\_title", "title": "Lesson Title"}}