diff --git a/docs/gdevelop5/interface/ai/AI_report.png b/docs/gdevelop5/interface/ai/AI_report.png new file mode 100644 index 0000000000..9af55a4b32 Binary files /dev/null and b/docs/gdevelop5/interface/ai/AI_report.png differ diff --git a/docs/gdevelop5/interface/ai/Askai-Open.png b/docs/gdevelop5/interface/ai/Askai-Open.png new file mode 100644 index 0000000000..cdd1094509 Binary files /dev/null and b/docs/gdevelop5/interface/ai/Askai-Open.png differ diff --git a/docs/gdevelop5/interface/ai/ask-ai-tab.png b/docs/gdevelop5/interface/ai/ask-ai-tab.png deleted file mode 100644 index 239c5e05c1..0000000000 Binary files a/docs/gdevelop5/interface/ai/ask-ai-tab.png and /dev/null differ diff --git a/docs/gdevelop5/interface/ai/index.md b/docs/gdevelop5/interface/ai/index.md index a0a1c84f95..8432a9211f 100644 --- a/docs/gdevelop5/interface/ai/index.md +++ b/docs/gdevelop5/interface/ai/index.md @@ -2,45 +2,80 @@ title: Ask AI (build/chat with AI) --- # Ask AI: Build your game with AI - -Click on **Ask AI** on the top-right corner of GDevelop to open the GDevelop AI editor. - -![Ask AI screen](./ask-ai-tab.png) - -Unlike general-purpose AI tools like ChatGPT, Claude, or Google Gemini, GDevelop AI is **tailored for game creation**. It knows how GDevelop works and can help you: +Unlike general-purpose AI tools like ChatGPT, Claude, or Google Gemini, GDevelop AI is **tailored for game creation**. It knows how GDevelop works, it has access to your game's objects configuration, events and context. +It can help you: - Understand features and how to use them - Build specific mechanics or systems +- Help fix small implementation errors - Explore, brainstorm and bring new ideas to life !!! tip - Think of it as a mentor and creative collaborator that speaks GDevelop fluently. + Think of it as an always available mentor and creative collaborator that speaks GDevelop fluently. -## How does it work: AI agent and AI chat +Click on **Ask AI** on the top-right corner (1) of GDevelop to open the AI chat. +![Open Ask AI](./Askai-Open.png) -The AI understands all built-in GDevelop features and official, reviewed extensions (it doesn’t include community extensions unless they’ve been approved by the GDevelop team). It can also read the content of your game project when you ask it to build something for you. +## How it works -The AI has two operating modes: +The AI understands all built-in GDevelop features, and official reviewed extensions. However, its knowledge does not include community extensions unless they’ve been approved by the GDevelop team. +Context is everything to assure good AI results. To improve its suggestions, the AI can read the content of your project: object's configuration, behaviors, variables and event sheet. -- **[Build for me (AI agent)](./agent)**: the AI will build your request inside your game. This can range from simple changes ("Make this object bigger") to more complex requests ("Create an enemy that starts attacking when the player comes near"). -- **[Ask a question (AI chat)](./chat)**: the AI will answer any question you ask it about game development and usage of GDevelop. +The AI has two modes: +- **[Ask a question (AI chat)](./chat)**: silimar to Chat GPT or Gemini conversations. The AI will answer questions on game development, GDevelop usage, and idea brainstorming. This mode is recommended to learn the tool and define the implementation plan before using the Build mode. +- **[Build for me (AI agent)](./agent)**: similar to Cursor or V0. The AI will build your implementation requests inside your game. This can range from simple changes (example: "Make X object 20% bigger") to more complex requests ("Create an enemy that starts shooting arrows when the player comes 20px near it"). + +For mor information on credit consumption and good practices: [Learn more about the GDevelop AI agent](./agent){ .md-button .md-button--primary .full-width } [Learn more about the GDevelop AI chat](./chat){ .md-button .full-width } +## Cost of AI requests +An AI request could use 3 to 30 credits depending on the scope. +The number of credits used depends on the work and processing ("thinking") the AI has to do: + +- an "Ask" request can be 2 to 5 credits, +- a simple "Build" request to do a small change could use 10 credits while implementations with multiple events could be 16 to 20 credits. + +!!! tip + + Start by using the "Ask" mode to wirte your prompts and define the scope of your desired implementation. Once the AI has a feasible plan switch to "Build mode". This will prevent you from spending unnecessary credits. + +## Aquiring credits for AI requests +All accounts starts with a few free AI credits. Once you've used all your free AI credits, you can: + +- Wait for them to replenish (every Sunday at 23:50 UTC) +- [upgrade]( https://editor.gdevelop.io/?initial-dialog=subscription) to GDevelop premium subscriptions +- [Buy](https://editor.gdevelop.io/?initial-dialog=credits-purchase) additional [GDevelop credits](/gdevelop5/interface/profile/credits/) to get more AI requests +- Give [quality feedback](/gdevelop5/interface/games-dashboard/player-feedback/) to GDevelop creators +- Follow GDevelop accounts on socials and claim the credits through your profile + +!!! note + A package of 500 credits usually represents 60 to 100 requests to the AI. + +**Premium Subscriptions** like GDevelop Silver, Gold or Pro receive more free AI requests every week: 200 with Silver, 1000 with Gold and 3000 with Pro. + + +## AI privacy + +GDevelop AI is built on general purpose Large Language Models (LLMs) that can be adapted, fine tuned or have internally multiple agents working on a request. + +**GDevelop AI is not trained on your accout's files nor individual projects**. +Local and cloud project are only accessible to the AI when the chat is in use. All cloud projects are stored separately from the GDevelop AI infrastructure which prevents it from access them without your request. + +**In all cases there is no usage of private data for improving the AI.** -## About privacy -GDevelop AI is **not trained on your game projects** - be it local or cloud projects. Cloud projects are stored separately from the GDevelop AI infrastructure and the AI has no access to them. +## How to improve the AI -GDevelop AI is built on general purpose Large Language Models that we can be adapted, fine tuned or have internally multiple agents working on a request. In all cases there is no usage of private data for improving the AI. +You can rate the AI’s answers with a 👍 or 👎. Positive ratings will signal the AI to follow that rationale. Negative feedback will nudge the GDevelop team that the answer wasn't correct. -## Help us improve the AI +In the case of negative feedback, adding context to why the answer wasn't correct will help the engineers stir the AI to the right direction. -You can rate the AI’s answers with a 👍 or 👎. These ratings help the GDevelop team improve the assistant. +![AI report](./AI_report.png) !!! note - Sometimes, high demand can temporarily slow things down or prevent a proper response. If that happens, don’t worry — you won’t be charged credits or lose your free requests. + High AI demand can temporarily slow processing down or prevent the AI to give a proper response. In that case — don’t worry — you won’t be charged any credits.