Skip to content

🎥 Make videos programmatically with React

Docs: Add Create with ChatGPT button (#10143)

Jonny Burger6569814aaa46
diff --git a/packages/docs/components/CreateWithChatGPTButton.tsx b/packages/docs/components/CreateWithChatGPTButton.tsx
new file mode 100644
index 0000000000..19d9b23b6b
--- /dev/null
+++ b/packages/docs/components/CreateWithChatGPTButton.tsx
@@ -0,0 +1,30 @@
+import React from 'react';
+import styles from './create-with-chatgpt-button.module.css';
+
+const chatGptDeepLink =
+ 'codex://new?prompt=%5B%40Remotion%5D(plugin%3A%2F%2Fremotion%40openai-curated-remote)%20Make%20a%20promo%20video%20for%20a%20record%20store.';
+
+export const CreateWithChatGPTButton: React.FC = () => {
+ return (
+ <a
+ aria-label="Create a Remotion project with ChatGPT"
+ className={styles.button}
+ href={chatGptDeepLink}
+ >
+ <span className={styles.icon}>
+ <svg
+ aria-hidden="true"
+ fill="currentColor"
+ fillRule="evenodd"
+ height="28"
+ viewBox="0 0 24 24"
+ width="28"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path d="M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z" />
+ </svg>
+ </span>
+ <span className={styles.label}>Create with ChatGPT</span>
+ </a>
+ );
+};
diff --git a/packages/docs/components/create-with-chatgpt-button.module.css b/packages/docs/components/create-with-chatgpt-button.module.css
new file mode 100644
index 0000000000..d605b25b42
--- /dev/null
+++ b/packages/docs/components/create-with-chatgpt-button.module.css
@@ -0,0 +1,49 @@
+.button {
+ align-items: center;
+ background: #000;
+ border: 1px solid #a6a6a6;
+ border-radius: 8px;
+ box-sizing: border-box;
+ color: #fff;
+ display: inline-flex;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
+ gap: 8px;
+ height: 53px;
+ padding: 7px 10px;
+ text-decoration: none !important;
+ transition:
+ background-color 120ms ease,
+ transform 120ms ease;
+ width: 198px;
+}
+
+.button:hover {
+ background: #1f1f1f;
+ color: #fff;
+ text-decoration: none !important;
+ transform: translateY(-1px);
+}
+
+.button:focus,
+.button:active,
+.button * {
+ text-decoration: none !important;
+}
+
+.button:focus-visible {
+ outline: 3px solid var(--ifm-color-primary);
+ outline-offset: 3px;
+}
+
+.icon {
+ display: flex;
+ flex: none;
+}
+
+.label {
+ font-size: 14px;
+ font-weight: 600;
+ letter-spacing: -0.01em;
+ line-height: 1;
+ white-space: nowrap;
+}
diff --git a/packages/docs/docs/getting-started.mdx b/packages/docs/docs/getting-started.mdx
index 59ff9a094d..00748a0f6f 100644
--- a/packages/docs/docs/getting-started.mdx
+++ b/packages/docs/docs/getting-started.mdx
@@ -7,6 +7,14 @@ slug: /
crumb: "Let's begin!"
---
+import {CreateWithChatGPTButton} from '../components/CreateWithChatGPTButton';
+
+## Using ChatGPT
+
+If you have the [ChatGPT desktop app](https://chatgpt.com/download/), it can create a complete Remotion project that you can edit, run, and render locally using the [Remotion plugin](/docs/ai/codex-plugin).
+
+<CreateWithChatGPTButton />
+
## Coding Agent Prompt
Paste into a coding agent, such as Claude Code, Codex or OpenCode: