What does workrally do?
面向 AI Agent 的 AIGC 漫剧视频创作全流程工具集。
This is a comprehensive toolset for AI Agent-driven AIGC comic-video creation, covering the entire workflow.
Overview
Tencent/workrally provides a modular, skill-based interface for AI agents (Claude Code, Cursor, Codex, etc.) to automate the creation of manhua-style animated videos. The toolset supports the following key stages:
- Script Generation – Automatically generate story scripts based on user prompts or templates.
- Storyboard Design – Create visual storyboard panels from the script, including character poses, backgrounds, and scene transitions.
- Character Animation – Apply pre-built or custom animation behaviors to characters (e.g., walking, talking, emoting).
- Scene Composition – Assemble scenes with assets, lighting, and camera angles.
- Video Rendering – Export final videos in common formats (MP4, GIF) with configurable resolution and frame rate.
Installation
To use the toolset within your AI agent environment, clone the repository:
git clone https://github.com/Tencent/workrally.git
cd workrally
Then install the required dependencies:
pip install -r requirements.txt
Usage
For AI Agents
The toolset exposes a set of functions and classes that can be called directly from your agent's code. For example, to generate a script:
from workrally.script import ScriptGenerator
generator = ScriptGenerator()
result = generator.generate(topic="A brave knight's adventure")
print(result.script)
To render a video:
from workrally.render import VideoRenderer
renderer = VideoRenderer()
renderer.render(
script_path="output/script.md",
output_path="output/video.mp4",
fps=24,
resolution=(1920, 1080)
)
For Human Users
You can also use the CLI tool directly:
python -m workrally create --topic "A day in the life of a robot" --output ./my_video.mp4
Configuration
Environment variables that control the toolset's behavior:
| Variable | Description | Default |
|---|---|---|
WORKRALLY_API_KEY | API key for cloud-based rendering services | None |
WORKRALLY_MODEL | AI model to use for generation (e.g., "gpt-4", "claude-3") | "claude-3-haiku" |
WORKRALLY_OUTPUT_DIR | Directory for generated assets and videos | "./output" |
Examples
Check the examples/ directory for full workflows:
examples/basic_scene.py– A minimal scene creation and rendering example.examples/multi_scene_video.py– A multi-scene video with transitions.examples/character_custom.py– Custom character animation.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
We welcome contributions! Please read CONTRIBUTING.md for guidelines on code style, testing, and submission.
Support
For issues, questions, or feature requests, open an issue on the GitHub repository.