Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

docs(gitbook): sync documentation updates with dev branch (#11709)

Zamil Majdy7ee28197a3ab
diff --git a/autogpt_platform/cloudflare_worker.js b/autogpt_platform/cloudflare_worker.js
new file mode 100644
index 0000000000..15e26a301d
--- /dev/null
+++ b/autogpt_platform/cloudflare_worker.js
@@ -0,0 +1,146 @@
+/**
+ * Cloudflare Workers Script for docs.agpt.co → agpt.co/docs migration
+ *
+ * Deploy this script to handle all redirects with a single JavaScript file.
+ * No rule limits, easy to maintain, handles all edge cases.
+ */
+
+// URL mapping for special cases that don't follow patterns
+const SPECIAL_MAPPINGS = {
+ // Root page
+ '/': '/docs/platform',
+
+ // Special cases that don't follow standard patterns
+ '/platform/d_id/': '/docs/integrations/block-integrations/d-id',
+ '/platform/blocks/blocks/': '/docs/integrations',
+ '/platform/blocks/decoder_block/': '/docs/integrations/block-integrations/text-decoder',
+ '/platform/blocks/http': '/docs/integrations/block-integrations/send-web-request',
+ '/platform/blocks/llm/': '/docs/integrations/block-integrations/ai-and-llm',
+ '/platform/blocks/time_blocks': '/docs/integrations/block-integrations/time-and-date',
+ '/platform/blocks/text_to_speech_block': '/docs/integrations/block-integrations/text-to-speech',
+ '/platform/blocks/ai_shortform_video_block': '/docs/integrations/block-integrations/ai-shortform-video',
+ '/platform/blocks/replicate_flux_advanced': '/docs/integrations/block-integrations/replicate-flux-advanced',
+ '/platform/blocks/flux_kontext': '/docs/integrations/block-integrations/flux-kontext',
+ '/platform/blocks/ai_condition/': '/docs/integrations/block-integrations/ai-condition',
+ '/platform/blocks/email_block': '/docs/integrations/block-integrations/email',
+ '/platform/blocks/google_maps': '/docs/integrations/block-integrations/google-maps',
+ '/platform/blocks/google/gmail': '/docs/integrations/block-integrations/gmail',
+ '/platform/blocks/github/issues/': '/docs/integrations/block-integrations/github-issues',
+ '/platform/blocks/github/repo/': '/docs/integrations/block-integrations/github-repo',
+ '/platform/blocks/github/pull_requests': '/docs/integrations/block-integrations/github-pull-requests',
+ '/platform/blocks/twitter/twitter': '/docs/integrations/block-integrations/twitter',
+ '/classic/setup/': '/docs/classic/setup/setting-up-autogpt-classic',
+ '/code-of-conduct/': '/docs/classic/help-us-improve-autogpt/code-of-conduct',
+ '/contributing/': '/docs/classic/contributing',
+ '/contribute/': '/docs/contribute',
+ '/forge/components/introduction/': '/docs/classic/forge/introduction'
+};
+
+/**
+ * Transform path by replacing underscores with hyphens and removing trailing slashes
+ */
+function transformPath(path) {
+ return path.replace(/_/g, '-').replace(/\/$/, '');
+}
+
+/**
+ * Handle docs.agpt.co redirects
+ */
+function handleDocsRedirect(url) {
+ const pathname = url.pathname;
+
+ // Check special mappings first
+ if (SPECIAL_MAPPINGS[pathname]) {
+ return `https://agpt.co${SPECIAL_MAPPINGS[pathname]}`;
+ }
+
+ // Pattern-based redirects
+
+ // Platform blocks: /platform/blocks/* → /docs/integrations/block-integrations/*
+ if (pathname.startsWith('/platform/blocks/')) {
+ const blockName = pathname.substring('/platform/blocks/'.length);
+ const transformedName = transformPath(blockName);
+ return `https://agpt.co/docs/integrations/block-integrations/${transformedName}`;
+ }
+
+ // Platform contributing: /platform/contributing/* → /docs/platform/contributing/*
+ if (pathname.startsWith('/platform/contributing/')) {
+ const subPath = pathname.substring('/platform/contributing/'.length);
+ return `https://agpt.co/docs/platform/contributing/${subPath}`;
+ }
+
+ // Platform general: /platform/* → /docs/platform/* (with underscore→hyphen)
+ if (pathname.startsWith('/platform/')) {
+ const subPath = pathname.substring('/platform/'.length);
+ const transformedPath = transformPath(subPath);
+ return `https://agpt.co/docs/platform/${transformedPath}`;
+ }
+
+ // Forge components: /forge/components/* → /docs/classic/forge/introduction/*
+ if (pathname.startsWith('/forge/components/')) {
+ const subPath = pathname.substring('/forge/components/'.length);
+ return `https://agpt.co/docs/classic/forge/introduction/${subPath}`;
+ }
+
+ // Forge general: /forge/* → /docs/classic/forge/*
+ if (pathname.startsWith('/forge/')) {
+ const subPath = pathname.substring('/forge/'.length);
+ return `https://agpt.co/docs/classic/forge/${subPath}`;
+ }
+
+ // Classic: /classic/* → /docs/classic/*
+ if (pathname.startsWith('/classic/')) {
+ const subPath = pathname.substring('/classic/'.length);
+ return `https://agpt.co/docs/classic/${subPath}`;
+ }
+
+ // Default fallback
+ return 'https://agpt.co/docs/';
+}
+
+/**
+ * Main Worker function
+ */
+export default {
+ async fetch(request, env, ctx) {
+ const url = new URL(request.url);
+
+ // Only handle docs.agpt.co requests
+ if (url.hostname === 'docs.agpt.co') {
+ const redirectUrl = handleDocsRedirect(url);
+
+ return new Response(null, {
+ status: 301,
+ headers: {
+ 'Location': redirectUrl,
+ 'Cache-Control': 'max-age=300' // Cache redirects for 5 minutes
+ }
+ });
+ }
+
+ // For non-docs requests, pass through or return 404
+ return new Response('Not Found', { status: 404 });
+ }
+};
+
+// Test function for local development
+export function testRedirects() {
+ const testCases = [
+ 'https://docs.agpt.co/',
+ 'https://docs.agpt.co/platform/getting-started/',
+ 'https://docs.agpt.co/platform/advanced_setup/',
+ 'https://docs.agpt.co/platform/blocks/basic/',
+ 'https://docs.agpt.co/platform/blocks/ai_condition/',
+ 'https://docs.agpt.co/classic/setup/',
+ 'https://docs.agpt.co/forge/components/agents/',
+ 'https://docs.agpt.co/contributing/',
+ 'https://docs.agpt.co/unknown-page'
+ ];
+
+ console.log('Testing redirects:');
+ testCases.forEach(testUrl => {
+ const url = new URL(testUrl);
+ const result = handleDocsRedirect(url);
+ console.log(`${testUrl} → ${result}`);
+ });
+}
\ No newline at end of file
diff --git a/docs/.gitbook/assets/AGPT_Platform.png b/docs/.gitbook/assets/AGPT_Platform.png
new file mode 100644
index 0000000000..25df18a82a
Binary files /dev/null and b/docs/.gitbook/assets/AGPT_Platform.png differ
diff --git a/docs/.gitbook/assets/Banner_image.png b/docs/.gitbook/assets/Banner_image.png
new file mode 100644
index 0000000000..6dbcd2b632
Binary files /dev/null and b/docs/.gitbook/assets/Banner_image.png differ
diff --git a/docs/.gitbook/assets/Contribute.png b/docs/.gitbook/assets/Contribute.png
new file mode 100644
index 0000000000..b9fb058898
Binary files /dev/null and b/docs/.gitbook/assets/Contribute.png differ
diff --git a/docs/.gitbook/assets/Integrations.png b/docs/.gitbook/assets/Integrations.png
new file mode 100644
index 0000000000..9941a5ff08
Binary files /dev/null and b/docs/.gitbook/assets/Integrations.png differ
diff --git "a/docs/.gitbook/assets/Screenshot 2025-08-11 at 12.21.17\342\200\257PM.png" "b/docs/.gitbook/assets/Screenshot 2025-08-11 at 12.21.17\342\200\257PM.png"
new file mode 100644
index 0000000000..87cb432f95
Binary files /dev/null and "b/docs/.gitbook/assets/Screenshot 2025-08-11 at 12.21.17\342\200\257PM.png" differ
diff --git a/docs/.gitbook/assets/api-reference.jpg b/docs/.gitbook/assets/api-reference.jpg
new file mode 100644
index 0000000000..13440be7dc
Binary files /dev/null and b/docs/.gitbook/assets/api-reference.jpg differ
diff --git a/docs/.gitbook/assets/hosted.jpg b/docs/.gitbook/assets/hosted.jpg
new file mode 100644
index 0000000000..d5f275ebf9
Binary files /dev/null and b/docs/.gitbook/assets/hosted.jpg differ
diff --git a/docs/.gitbook/assets/no-code.jpg b/docs/.gitbook/assets/no-code.jpg
new file mode 100644
index 0000000000..fdf54211a3
Binary files /dev/null and b/docs/.gitbook/assets/no-code.jpg differ
diff --git a/docs/.gitbook/assets/replicate-prediction-yt6p2d3gjhrma0ctdsv8vp1t70.jpeg b/docs/.gitbook/assets/replicate-prediction-yt6p2d3gjhrma0ctdsv8vp1t70.jpeg
new file mode 100644
index 0000000000..d52ba99c76
Binary files /dev/null and b/docs/.gitbook/assets/replicate-prediction-yt6p2d3gjhrma0ctdsv8vp1t70.jpeg differ
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 0000000000..66d96c7e02
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,52 @@
+---
+description: Welcome to your team’s developer platform
+cover: .gitbook/assets/Banner_image.png
+coverY: 56.53835084561286
+layout:
+ width: wide
+ cover:
+ visible: true
+ size: full
+ title:
+ visible: false
+ description:
+ visible: false
+ tableOfContents:
+ visible: false
+ outline:
+ visible: false
+ pagination:
+ visible: false
+ metadata:
+ visible: true
+---
+
+# Developer Platform
+
+<h2 align="center">AutoGPT Documentation</h2>
+
+<p align="center">Create innovative agents that amplify human potential</p>
+
+
+
+<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><h4><i class="fa-leaf">:leaf:</i></h4></td><td><strong>AutoGPT Platform</strong></td><td>Get started with the developer platform in 5 minutes.</td><td><a href="https://app.gitbook.com/o/ouZP6hgdu8LtbWil2Hvb/s/iMDOYkb9SC1mijdHzvKF/">AutoGPT Platform</a></td><td><a href=".gitbook/assets/AGPT_Platform.png">AGPT_Platform.png</a></td></tr><tr><td><h4><i class="fa-server">:server:</i></h4></td><td><strong>Integrations</strong></td><td>Learn more about hosting the developer platform.</td><td><a href="https://app.gitbook.com/o/ouZP6hgdu8LtbWil2Hvb/s/InwWrtMw9tc0NCzvPVK4/">Integrations</a></td><td><a href=".gitbook/assets/Integrations.png">Integrations.png</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td><strong>Contribute</strong></td><td>Browse, test, and implement APIs.</td><td><a href="https://app.gitbook.com/s/x9A8W5T9IXYWENaFbHqO/">Contributing to the Docs</a></td><td><a href=".gitbook/assets/Contribute.png">Contribute.png</a></td></tr></tbody></table>
+
+{% columns %}
+{% column valign="middle" %}
+<p align="center"><a href="https://github.com/Significant-Gravitas/AutoGPT/blob/master/LICENSE">AutoGPT License on GitHub</a></p>
+{% endcolumn %}
+
+{% column %}
+<p align="center"><a href="https://app.gitbook.com/s/dDGesk9atyMLUMMo4QuI/autogpt-classic/introduction">AutoGPT Classic (Local Installation)</a></p>
+{% endcolumn %}
+{% endcolumns %}
+
+***
+
+
+
+<h2 align="center">Join a community of 65,000+ developers</h2>
+
+<p align="center">Join our Discord community or create your first PR in just a few steps.</p>
+
+<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-discord">:discord:</i></h4></td><td><strong>Discord community</strong></td><td>Join our Discord community to post questions, get help, and share resources with our growing community of over 55,000 members.</td><td><a href="https://www.gitbook.com/" class="button secondary">Join Discord</a></td><td></td><td><a href="https://discord.com/invite/autogpt">https://discord.com/invite/autogpt</a></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><strong>GitHub</strong></td><td>Our product is 100% open source and built by developers just like you. Head to our GitHub repository to learn how to submit your first PR.</td><td><a href="https://www.gitbook.com/" class="button secondary">Submit a PR</a></td><td></td><td><a href="https://github.com/Significant-Gravitas/AutoGPT">https://github.com/Significant-Gravitas/AutoGPT</a></td></tr></tbody></table>
diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md
new file mode 100644
index 0000000000..d338256bc0
--- /dev/null
+++ b/docs/SUMMARY.md
@@ -0,0 +1,3 @@
+# Table of contents
+
+* [Developer Platform](README.md)