Skip to content

Composed Workflows

Composed workflows chain simpler workflows into end-to-end pipelines. They combine research, hook generation, and video production into single invocations.

Workflow: video/research_to_shorts

Deep research on a topic, generate viral hooks from findings, select the best hook, and produce a complete AI short video — grounded in real data.

Terminal window
fabric run video/research_to_shorts \
--input query="Why developers are switching to Rust" \
--input platform="TikTok" \
--input quality=premium
deep_research → bridge_research_to_hooks → generate_hooks →
select_best_hook → generate_script (research-grounded) →
video_production_pipeline
ParameterTypeDefaultDescription
querystringrequiredResearch topic
platformstring"TikTok"Target platform
duration_secsint45Video duration
moodstring"high-energy"Visual and narrative mood
qualitystring""Quality preset

Complete video with research-informed script and all intermediate artifacts (research synthesis, hooks, script, b-roll paths).


Workflow: composed/hot_topics_to_short

Scan trending topics, generate hooks, pick the strongest, and produce a single viral short video.

Terminal window
fabric run composed/hot_topics_to_short \
--input platform="YouTube Shorts" \
--input categories='["tech", "AI"]'
hot_topics_pipeline → bridge_topics_to_hooks → generate_hooks →
select_best_hook → generate_script → video_production_pipeline

Workflow: composed/hot_topics_to_content

Scan trending topics, generate hooks, and batch-produce content items (scripts, outlines, or posts).

Terminal window
fabric run composed/hot_topics_to_content \
--input categories='["tech", "business"]' \
--input num_content=5
hot_topics_pipeline → bridge_topics_to_hooks → generate_hooks →
generate_content_batch
{
"content_items": [
{
"topic": "...",
"hook": "...",
"hook_type": "controversial_take",
"estimated_strength": 0.87
}
]
}

Workflow: composed/research_to_video

Research a topic, generate hooks, then fan out N parallel AI Shorts runs — one per hook. Produces multiple videos from a single research session.

Terminal window
fabric run composed/research_to_video \
--input topic="AI replacing junior developers" \
--input videos=3 \
--input quality=premium
deep_research → generate_hooks → select_top_N →
fork(ai_shorts × N)
ParameterTypeDefaultDescription
topicstringrequiredResearch topic
videosint3Number of videos to produce
qualitystring""Quality preset for all videos
--from-researchstringReuse prior research output file
--from-hooksstringReuse prior hooks output file

Workflow: composed/my_research_hooks

Lightweight pipeline: research a topic and extract viral hooks. No video production.

Terminal window
fabric run composed/my_research_hooks --input query="AI agents in production"
deep_research → bridge_to_hooks → generate_hooks
{
"hook_ideas": [
{
"hook_text": "Most AI agents fail in production. Here's why.",
"hook_type": "controversial_take",
"emotional_trigger": "fear_of_failure",
"estimated_strength": 0.91
}
]
}

Workflow: video/video_to_shorts

Extract viral clips from a longer video (podcast, talk, lecture) and produce short-form content.

Terminal window
fabric run video/video_to_shorts \
--input url="https://youtube.com/watch?v=..."
transcription → detect_viral_moments → extract_clips →
reframe_to_vertical → burn_subtitles → compose_final

Workflow: youtube/studio

Complete YouTube metadata preparation: transcribe, generate title options, create thumbnails, and write description with chapters.

Terminal window
fabric run youtube/studio --input url="https://youtube.com/watch?v=..."
transcription → title_generation → thumbnail_generation →
description_generation → collect_output
{
"title": "Selected title",
"title_options": [...],
"thumbnail": "/tmp/thumbnail.png",
"description": "Full YouTube description with chapters...",
"transcript": [...],
"duration": 345.6
}