Generate your script, inspect the diff, merge with confidence.
We just launched Ask in the Google Earth Engine Code Editor. It brings Gemini capabilities directly into the Code Editor to help you write, debug, and understand geospatial queries without leaving your workspace.
goo.gle/4ytSAtw
Here is what you can do today:
🗺️ Ask in plain English: get clean JavaScript for cloud masks, NDVI composites, charts, and more.
🛠️ Troubleshoot with one click: let Ask automatically diagnose console errors and generate syntax fixes for you.
🔍 Keep full technical control: review side-by-side code diffs before merging anything into your active script.
Ask is context-aware. It reads your active code, imported information, and session history, acting as a collaborative colleague that knows your project structure.
ALT An AI-powered "Ask" interface in a software environment provides an explanation and JavaScript code for visualizing 10 years of deforestation in California using the Hansen Global Forest Change dataset. The interface features navigation tabs for Inspector, Console, Tasks, and Ask at the top, and includes a text box at the bottom for follow-up questions. The main content explains the dataset's "lossyear" band and provides a code snippet to filter and display data from 2014 to 2023.
ALT An AI chatbot interface under the "Ask" tab features a text input field at the bottom with the typed prompt, "Show me areas in California that have been deforested in the last 10 years." Below the prompt text, a dropdown menu is set to "Gemini 3 Flash Preview" next to a "Tools" menu and a blue send icon. The top header shows tabs for Inspector, Console, Tasks, and Ask, with a counter indicating zero tokens used.
ALT A software interface shows the active "Console" tab with an error message box that reads "Error Line 9: A mapped function's arguments cannot be used in client-side operations." Below the error message is a "Troubleshoot" button, and at the bottom of the screen, a map of Nova Scotia is visible with buttons for "Map" and "Satellite" views.
ALT The interface for an AI assistant named "Ask" displays a user's prompt regarding a script error: "Line 9: A mapped function's arguments cannot be used in client-side operations. Can you help me fix it?" Below the text box are controls for selecting the "Gemini 3 Flash Preview" model and "Tools," along with a blue send icon and a disclaimer about AI accuracy. The top navigation bar includes tabs for "Inspector," "Console," and "Tasks," while the bottom of the screen shows a portion of a map of Nova Scotia.