🎥 Make videos programmatically with React
Update ai-saas-template.mdx
Jonny Burger88c380f8faf5
diff --git a/packages/docs/docs/ai/ai-saas-template.mdx b/packages/docs/docs/ai/ai-saas-template.mdxindex b68aa354bc..b60ee511a3 100644--- a/packages/docs/docs/ai/ai-saas-template.mdx+++ b/packages/docs/docs/ai/ai-saas-template.mdx@@ -23,10 +23,6 @@ Then create a `.env` file:```bash title=".env"OPENAI_API_KEY=sk-...--# Optional: For Lambda rendering-REMOTION_AWS_ACCESS_KEY_ID=...-REMOTION_AWS_SECRET_ACCESS_KEY=...```Start the development server:@@ -37,11 +33,13 @@ npm run devVisit `http://localhost:3000` to start generating animations.-## How is this different from Remotion Agent Skills?+## Difference to Remotion Agent SkillsUse this template if you want to build a SaaS with Remotion and AI.Use [Agent Skills](/docs/ai/claude-code) if you want to prompt videos for yourself.+Unlike the Agent Skills workflow, this template is not agentic by default. It does not have access to an operating system, tools or the filesystem.+## What's Included- Chat interface with conversation history for iterative refinement@@ -55,23 +53,30 @@ It streams [generated code](/docs/ai/generate) and compiles it in the browser us## Images-This starter kit does not come with a backend.-Therefore, there is an important difference between attaching images to the prompt and mentioning image URLs in the prompt.+There is an important difference between attaching images to the prompt and mentioning image URLs in the prompt.- **Attaching images**: The assistant will try to replicate in code whatever you attach to the prompt, for example an abstract spiral.- **Providing image URLs**: The assistant will embed the provided image within the animation based on the file URL. For example: _"Create a DVD screensaver animation of this image https://example.com/logo.png"_## Lambda Rendering-To enable video export:+To enable video exporting with [Remotion Lambda](/docs/lambda):1. Set up Remotion Lambda following the [Lambda guide](/docs/lambda/setup)2. Add AWS credentials to `.env`-3. Deploy with `npm run deploy`++```bash title=".env"+OPENAI_API_KEY=sk-...++# Add AWS credentials for Lambda rendering+REMOTION_AWS_ACCESS_KEY_ID=...+REMOTION_AWS_SECRET_ACCESS_KEY=...+```++3. Deploy with `npm run deploy`.## See Also- [Code Generation](/docs/ai/generate) - How to generate Remotion code with LLMs- [Just-in-time Compilation](/docs/ai/dynamic-compilation) - Compiling React code in the browser-- [Skills](/docs/ai/skills) - Creating modular knowledge for LLMs- [System Prompt](/docs/ai/system-prompt) - Reference system prompt for Remotion