$ cat workspace-template.yaml
G
Generazione Video News Trend tramite Input preselezionati
// Template per la generazione di video news a partire dal trend italiano del momento, con la possibilità di scegliere un avatar / vestiario e ambiente di esecuzione.
Document Generation
// Canvas Preview
canvas.flow
// Instruction
instruction.md
Generazione Video News Trend tramite Input preselezionati
Overview
This workflow automates the creation of a news-style video based on current web trends. It searches for trending topics in Italy, summarizes the findings, generates a voiceover, creates a visual avatar with specific clothing, generates a matching background, and finally animates the avatar into a complete video. It requires selected workspaces for the Avatar, Vestiario (Clothing), and Web Trend data.
Workflow Chain
Node Reference
Web Trend Branch
- Web Search - Web Trend: Searches the web for trending topics.
- Inputs from: User/Manual.
- Configurable inputs:
query(string),country(select: Any, US, GB, CA, AU, IT),num_results(integer 1-20). - Output:
urls(Text[]),result_count(Number).
- Fetch URL as Markdown - Web Trend: Scrapes content from URLs.
- Inputs from:
Web Search - Web Trend. - Configurable inputs:
urls(Text[]),timeout_seconds(integer 5-120). - Output:
markdown(Text[]).
- Inputs from:
- Text Summarizer - Riassunto Web Trend: Summarizes the scraped content.
- Inputs from:
Fetch URL as Markdown - Web Trend. - Configurable inputs:
content(Text),prompt(Text). - Output:
summary(Text).
- Inputs from:
- Text to Speech - Voce Web Trend: Converts the summary to audio.
- Inputs from:
Text Summarizer - Riassunto Web Trend. - Configurable inputs:
prompt(Text),language(select: Italian, etc.),voice_reference(Audio). - Output:
audio(Audio).
- Inputs from:
Avatar & Clothing Branch
- Workspace Picker - Avatar: Selects the avatar workspace.
- Inputs from: User/Manual.
- Configurable inputs:
workspaceId(Workspace). - Output:
workspace(Workspace).
- Workspace Break - Avatar: Decomposes the Avatar workspace.
- Inputs from:
Workspace Picker - Avatar. - Configurable inputs:
workspaceId(Workspace),prompt(Text),driveItemId(DriveItem). - Output:
image(Image),audio(Audio).
- Inputs from:
- Workspace Picker - Vestiario: Selects the clothing workspace.
- Inputs from: User/Manual.
- Configurable inputs:
workspaceId(Workspace). - Output:
workspace(Workspace).
- Workspace Break - Vestiario: Decomposes the Clothing workspace.
- Inputs from:
Workspace Picker - Vestiario. - Configurable inputs:
workspaceId(Workspace),text2(Text),value(Text). - Output:
image(Image),text(Text).
- Inputs from:
- Image Edit - Unione Avatar e Vestiti: Merges the avatar and clothing images.
- Inputs from:
Workspace Break - Avatar(image) andWorkspace Break - Vestiario(images). - Configurable inputs:
images(Image[]),prompt(Text),aspect_ratio(Number),megapixel(Number). - Output:
image(Image).
- Inputs from:
Background Branch
- Text Transform - Prompt Sfondo: Generates a background prompt based on the trend.
- Inputs from:
Fetch URL as Markdown - Web TrendorText Summarizer. - Configurable inputs:
input_text(Text),prompt(Text). - Output:
output_text(Text).
- Inputs from:
- Image Creation - Sfondo: Generates the background image.
- Inputs from:
Text Transform - Prompt Sfondo. - Configurable inputs:
prompt(Text),aspect_ratio(Number),megapixel(Number). - Output:
image(Image).
- Inputs from:
Final Assembly
- Avatar in contesto: Merges the combined avatar with the background.
- Inputs from:
Image Edit - Unione Avatar e Vestiti(image) andImage Creation - Sfondo(image). - Configurable inputs:
images(Image[]),prompt(Text). - Output:
image(Image).
- Inputs from:
- Portrait Animation - Avatar Web Trend: Animates the final image with the audio.
- Inputs from:
Avatar in contesto(image) andText to Speech - Voce Web Trend(audio). - Configurable inputs:
image(Image),audio(Audio),resolution(select). - Output:
video(Video).
- Inputs from:
Execution Strategy
You MUST complete all 4 phases in order: Phase 1 -> Phase 2 -> Phase 3 -> Phase 4. Do NOT skip any phase.
Phase 1: Setup and User Decisions
- Call
requestUserDecisionto bundle the following questions:- "Select the Avatar Workspace" (context: Needed to extract the character image and voice reference via Workspace Break).
- "Select the Vestiario (Clothing) Workspace" (context: Needed to extract clothing and accessory images via Workspace Break).
- "Modify Avatar Appearance or Clothing?" (context: Provide custom text prompts to refine the look during the Image Edit stage).
- "Desired Video Resolution" (context: Determines the final output quality for the Portrait Animation node).
- Phase 1 complete. Now proceed to Phase 2. Do NOT skip to Phase 3.
Phase 2: Data Extraction and Audio Generation
- Execute
Workspace Picker - AvatarandWorkspace Break - Avatarusing the selected workspace to extractimageandaudio. - Execute
Workspace Picker - VestiarioandWorkspace Break - Vestiarioto extract clothingimagesandtext. - Execute
Web Search - Web Trendusing the default query. - Execute
Fetch URL as Markdown - Web Trendusing the URLs from step 5. - Execute
Text Summarizer - Riassunto Web Trendusing the markdown from step 6. - Execute
Text to Speech - Voce Web Trendusing the summary from step 7 and the audio from step 3 asvoice_reference. - Execute
Text Transform - Prompt Sfondousing the trend summary from step 7. - Phase 2 complete. Now proceed to Phase 3. Do NOT skip to Phase 4.
Phase 3: Visual Asset Generation
- Execute
Image Creation - Sfondousing the prompt from step 9. - Execute
Image Edit - Unione Avatar e Vestitito merge the Avatar image (step 3) and Clothing images (step 4). If the user provided modification prompts in Phase 1, apply them to thepromptfield here. - Execute
Avatar in contestoto merge the combined avatar (step 12) with the background (step 11). - Phase 3 complete. Now proceed to Phase 4. Do NOT skip to Phase 5.
Phase 4: Final Animation and Output
- Execute
Portrait Animation - Avatar Web Trendusing the image from step 13 and the audio from step 8, applying the resolution selected in Phase 1. - Call
followUpto present the final video to the user. - Phase 4 complete.
Configuration Tips
Error Handling
Re-editable artifacts
Incremental Edits to an Existing Canvas
- Detection — If the structure pre-existed this turn, it's an EDIT (delta tools only); a bundled "build AND tweak" request is a fresh build.
- Add / remove / reorder recipes — To change clothing, use
sectionManager(ungroup, { sectionId })on the Vestiario section, thenorganizeNodesandautoLayout. - Post-edit — After any manual tweak to a node, re-run the
Portrait Animationnode to reflect changes in the final video. Honor the original publish decision.
// Dependencies
requirements.py
1from input import WorkspacePicker2from process import WorkspaceBreak3from process import ImageEdit4from process import ImageCreation5from input import WebSearch6from process import TextSummarizer7from process import TextToSpeech8from process import PortraitAnimation9from process import FetchURLAsMarkdown10from process import TextTransform