Skip to main content

How to Run an Existing Template

1

List Available Templates

praisonai templates list
2

Get Template Info

praisonai templates info ai-video-editor
3

Run Template with Variables

praisonai templates run ai-video-editor --input video.mp4 --output edited.mp4
4

View Output

Check the generated output in your working directory or specified output path.

How to Run Templates from GitHub

1

Run Directly from GitHub

praisonai templates run github:MervinPraison/Agent-Recipes/ai-video-editor
2

Run with Custom Branch

praisonai templates run github:MervinPraison/Agent-Recipes/ai-video-editor@main
3

Run with Variables

praisonai templates run github:MervinPraison/Agent-Recipes/ai-video-editor --input video.mp4

How to Run Templates with Python

1

Import Template Loader

from praisonai.templates.loader import TemplateLoader
2

Load Template

loader = TemplateLoader()
template = loader.load_template("ai-video-editor")
3

Run with Variables

result = template.run(
    input="video.mp4",
    output="edited.mp4",
    preset="podcast"
)
print(result)

Common Template Variables

TemplateVariablesExample
ai-video-editor--input, --output, --preset--input video.mp4 --preset podcast
research-agent--topic, --depth--topic "AI trends" --depth deep
code-reviewer--repo, --branch--repo ./myproject --branch main

CLI Options

praisonai templates run <template> [OPTIONS]

Options:
  --offline              Run without network access
  --strict-tools         Only use explicitly defined tools
  --tools-source PATH    Additional tool source
  --no-template-tools-py Disable template's tools.py
  --verbose              Enable verbose output