Skip to content

🎥 Make videos programmatically with React

Docs: Outline ways AI can be used in Remotion workflows

Jonny Burgerf2e6f74a6514
diff --git a/packages/docs/docs/ai/TableOfContents.tsx b/packages/docs/docs/ai/TableOfContents.tsx
new file mode 100644
index 0000000000..59cfc5ca99
--- /dev/null
+++ b/packages/docs/docs/ai/TableOfContents.tsx
@@ -0,0 +1,25 @@
+import React from 'react';
+import {Grid} from '../../components/TableOfContents/Grid';
+import {TOCItem} from '../../components/TableOfContents/TOCItem';
+
+export const TableOfContents: React.FC = () => {
+ return (
+ <div>
+ <Grid>
+ <TOCItem link="/docs/ai/chatbot">
+ <strong>{'Chatbot'}</strong>
+ <div>Use the chatbot to get help with Remotion</div>
+ </TOCItem>
+
+ <TOCItem link="/docs/ai/bolt">
+ <strong>{'Bolt.new'}</strong>
+ <div>Use Bolt.new to prompt Remotion videos</div>
+ </TOCItem>
+ <TOCItem link="/docs/ai/system-prompt">
+ <strong>{'System Prompt'}</strong>
+ <div>to teach LLMs Remotion rules</div>
+ </TOCItem>
+ </Grid>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/ai/bolt.mdx b/packages/docs/docs/ai/bolt.mdx
new file mode 100644
index 0000000000..243125a38b
--- /dev/null
+++ b/packages/docs/docs/ai/bolt.mdx
@@ -0,0 +1,14 @@
+---
+image: /generated/articles-docs-ai-bolt.png
+crumb: 'Artificial Intelligence'
+title: Prompting a Remotion video with Bolt.new
+sidebar_label: Bolt.new
+---
+
+On [bolt.new](https://bolt.new), you can use their online AI tool to prompt a Remotion video.
+
+<img src="https://remotion-assets.s3.eu-central-1.amazonaws.com/bolt-new.png" />
+
+## Source code
+
+The source code for this template is under this [GitHub repo](https://github.com/stackblitz/starters/tree/main/bolt-remotion) if you would like to contribute an improvement.
diff --git a/packages/docs/docs/ai/chatbot.mdx b/packages/docs/docs/ai/chatbot.mdx
new file mode 100644
index 0000000000..eb1f2254e5
--- /dev/null
+++ b/packages/docs/docs/ai/chatbot.mdx
@@ -0,0 +1,15 @@
+---
+image: /generated/articles-docs-ai-chatbot.png
+crumb: 'AI'
+title: Use the Remotion Chatbot
+sidebar_label: Chatbot
+---
+
+We made a Chatbot that can answer simple questions about Remotion.
+You can invoke it either by:
+
+- Clicking on the "Ask AI" button anywhere on our docs
+- Visiting [remotion.ai](https://remotion.ai)
+
+For more complicated questions, you can ask human intelligence.
+Join us on our [Discord](https://remotion.dev/discord) where you can get help.
diff --git a/packages/docs/docs/ai/index.mdx b/packages/docs/docs/ai/index.mdx
new file mode 100644
index 0000000000..f115ee2c1e
--- /dev/null
+++ b/packages/docs/docs/ai/index.mdx
@@ -0,0 +1,13 @@
+---
+image: /generated/articles-docs-ai-index.png
+crumb: 'Artificial Intelligence'
+title: Building with Remotion and AI
+---
+
+import {TableOfContents} from './TableOfContents';
+
+We are interested in how AI can help us realize Remotion projects.
+
+Here are a few ways you can use AI in your Remotion workflow today:
+
+<TableOfContents />
diff --git a/packages/docs/docs/system-prompt.mdx b/packages/docs/docs/ai/system-prompt.mdx
similarity index 61%
rename from packages/docs/docs/system-prompt.mdx
rename to packages/docs/docs/ai/system-prompt.mdx
index cb8c7044e7..312b2728b0 100644
--- a/packages/docs/docs/system-prompt.mdx
+++ b/packages/docs/docs/ai/system-prompt.mdx
@@ -1,8 +1,8 @@
---
-image: /generated/articles-docs-system-prompt.png
+image: /generated/articles-docs-ai-system-prompt.png
crumb: 'AI'
title: Remotion System Prompt for LLMs
-sidebar_label: AI System Prompt
+sidebar_label: System Prompt
---
This is a prompt that you can give to Large Language Models to teach them the mechanics and rules of Remotion.
@@ -10,14 +10,10 @@ You can then prompt the LLMs to generate Remotion Code for you.
## System Prompt
-import {SystemPrompt} from '../components/SystemPrompt';
+import {SystemPrompt} from '../../components/SystemPrompt';
<SystemPrompt />
## llms.txt
This file is also hosted under https://www.remotion.dev/llms.txt, as per [convention](https://llmstxt.org).
-
-## Try it out
-
-We deployed a [custom ChatGPT](https://chatgpt.com/g/g-NrFhQqQxb-remotiongpt) for you to try out.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 972d33055c..d861247562 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -979,6 +979,15 @@ module.exports = {
'vue',
],
},
+ {
+ type: 'category',
+ label: 'AI',
+ link: {
+ type: 'doc',
+ id: 'ai/index',
+ },
+ items: ['ai/chatbot', 'ai/bolt', 'ai/system-prompt'],
+ },
{
type: 'category',
label: 'Tooling',
@@ -1115,6 +1124,7 @@ module.exports = {
'support',
],
},
+
{
type: 'category',
label: 'Miscellaneous',
@@ -1130,7 +1140,6 @@ module.exports = {
'standalone',
'miscellaneous/emojis',
'media-fragments',
- 'system-prompt',
],
},
{
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 3975a5fb56..8f8771a11e 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -71,6 +71,42 @@ export const articles = [
noAi: false,
slug: 'after-effects',
},
+ {
+ id: 'ai/bolt',
+ title: 'Prompting a Remotion video with Bolt.new',
+ relativePath: 'docs/ai/bolt.mdx',
+ compId: 'articles-docs-ai-bolt',
+ crumb: 'Artificial Intelligence',
+ noAi: false,
+ slug: 'ai/bolt',
+ },
+ {
+ id: 'ai/chatbot',
+ title: 'Use the Remotion Chatbot',
+ relativePath: 'docs/ai/chatbot.mdx',
+ compId: 'articles-docs-ai-chatbot',
+ crumb: 'AI',
+ noAi: false,
+ slug: 'ai/chatbot',
+ },
+ {
+ id: 'ai/index',
+ title: 'Building with Remotion and AI',
+ relativePath: 'docs/ai/index.mdx',
+ compId: 'articles-docs-ai-index',
+ crumb: 'Artificial Intelligence',
+ noAi: false,
+ slug: 'ai/index',
+ },
+ {
+ id: 'ai/system-prompt',
+ title: 'Remotion System Prompt for LLMs',
+ relativePath: 'docs/ai/system-prompt.mdx',
+ compId: 'articles-docs-ai-system-prompt',
+ crumb: 'AI',
+ noAi: false,
+ slug: 'ai/system-prompt',
+ },
{
id: 'angular',
title: 'Using Remotion in Angular',
@@ -4570,15 +4606,6 @@ export const articles = [
noAi: false,
slug: 'svelte',
},
- {
- id: 'system-prompt',
- title: 'Remotion System Prompt for LLMs',
- relativePath: 'docs/system-prompt.mdx',
- compId: 'articles-docs-system-prompt',
- crumb: 'AI',
- noAi: false,
- slug: 'system-prompt',
- },
{
id: 'tailwind-legacy',
title: 'TailwindCSS v2 (Legacy)',
diff --git a/packages/docs/static/generated/articles-docs-ai-bolt.png b/packages/docs/static/generated/articles-docs-ai-bolt.png
new file mode 100644
index 0000000000..1c2098ae7f
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-ai-bolt.png differ
diff --git a/packages/docs/static/generated/articles-docs-ai-chatbot.png b/packages/docs/static/generated/articles-docs-ai-chatbot.png
new file mode 100644
index 0000000000..b06aae4691
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-ai-chatbot.png differ
diff --git a/packages/docs/static/generated/articles-docs-ai-index.png b/packages/docs/static/generated/articles-docs-ai-index.png
new file mode 100644
index 0000000000..dddbcb8a04
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-ai-index.png differ
diff --git a/packages/docs/static/generated/articles-docs-ai-system-prompt.png b/packages/docs/static/generated/articles-docs-ai-system-prompt.png
new file mode 100644
index 0000000000..8230185ae1
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-ai-system-prompt.png differ
diff --git a/packages/docs/vercel.json b/packages/docs/vercel.json
index fc1da0f919..e382ceab0e 100644
--- a/packages/docs/vercel.json
+++ b/packages/docs/vercel.json
@@ -342,6 +342,11 @@
"destination": "/docs/media-parser",
"permanent": false
},
+ {
+ "source": "/docs/system-prompt",
+ "destination": "/docs/ai/system-prompt",
+ "permanent": false
+ },
{
"source": "/media-parser/",
"destination": "/docs/media-parser",