Lifestyle

Google Adds Gemini-Powered 'Ask' Assistant to Earth Engine to Help Map Analysts Write and Fix Code

Google says its Earth Engine platform, used to analyze maps and satellite imagery with code, now has Ask, a chat assistant powered by Google's Gemini AI. It can write, explain, debug and speed up scripts inside the editor. Users need their own Gemini API key, and paid-tier keys are billed by usage. Here is what Google says the feature does, which models it offers and what to check first.

About 6 min read

Google Adds Gemini-Powered 'Ask' Assistant to Earth Engine to Help Map Analysts Write and Fix Code
Image: Mokaair (Original editorial artwork)

What Google announced

In a post on the Google Cloud Blog, Google announced a new feature called Ask for Google Earth Engine. Earth Engine is a Google platform where users write scripts to analyze geospatial data, for example to map forest cover or monitor farm yields. The article page is dated September 29, 2026. Its authors are Product Lead Joel Conkling and Software Engineer Katie Friis. Google says Earth Engine is part of Google Earth AI, its collection of geospatial models and datasets.

According to Google, Ask builds Gemini, Google's family of AI models, directly into the Earth Engine Code Editor, the web tool where users write and run their scripts. The Ask panel sits on the right side of the editor and gives chat-based help with the script you have open. Using their own Gemini API key, people can write, debug, understand and optimize geospatial queries without leaving the editor.

Google Adds Gemini-Powered 'Ask' Assistant to Earth Engine to Help Map Analysts Write and Fix Code
Mokaair editorial verification flow · Image: Mokaair (Original editorial artwork)
Read the full description

Sources are collected, independently checked, then reviewed by Jev.

Key feature: it reads the script you are working on

Google says Ask's answers draw on what is already in your workspace, so you do not need to paste in code or explain your datasets. According to Google, this context includes:

  • The full text of the script you have open
  • Your imported assets and geometries, meaning the data files and map shapes you have loaded into Earth Engine
  • The chat history of your current session

Google also lists several settings you can change. You can choose a Gemini model; at launch the options are Gemini 3 Flash Preview, Gemini 3.1 Pro Preview and Gemini 3.5 Flash. You can let the AI search the official documentation or the Earth Engine Data Catalog, Google's library of datasets. You can also switch on Grounding with Google Search, which bases answers on the latest public web results. That option cannot be used together with documentation search or dataset search.

Four ways to use Ask

Four ways to use Ask, as described in Google's blog post
Use caseHow Google describes itWhat it means for users
Generate code from plain languageDescribe what you need and get JavaScript code, which you can add to your script with Insert or copy with CopyGet started without memorizing exact syntax
Explain complex codeAsk what a script does and get a step-by-step explanationEasier to understand scripts from colleagues or community examples
One-click troubleshootingError messages in the Console now include a "Troubleshoot" button that fills in a help request automaticallyFewer steps copying error messages by hand
Optimize queriesSuggestions such as filtering early, reducing computation steps and converting client-side loops into server-side operationsMay help with slow scripts, timeouts or wasted computing resources

The example prompt in Google's article is: "Write a script to load Sentinel-2 imagery for 2025 over Boulder, CO, apply a cloud mask, calculate NDVI, and add the median composite to the map." NDVI stands for Normalized Difference Vegetation Index. According to Google, if the editor already contains code, inserting new code opens a side-by-side diff view that shows the old and new versions next to each other, so users can review the changes before accepting them.

What it means for researchers and other users

Earth Engine is commonly used for geospatial work such as mapping forest cover, tracking changes in the built environment and monitoring agricultural yields. For these users, Ask brings tasks like looking up documentation, remembering function names and reading error messages into the editor, with help from AI. That may make Earth Engine easier to start with. However, these benefits are Google's own claims so far, and users still need to judge for themselves how accurate and useful it is.

Ask runs on the user's own Gemini API key. Google says there are free options, but a paid-tier key is billed based on usage. Organizations and individuals should therefore read the Gemini API terms and check their own cost and data policies before switching it on.

How to get started

According to Google, Ask is available worldwide, and setup takes two steps:

  1. Get a Gemini API key: if you don't have one yet, you can create one in Google AI Studio, Google's tool for working with its Gemini models.
  2. Add the key to Earth Engine: open the Code Editor, click the Ask panel on the right, then click the key icon in the lower-left corner and enter your API key.

Google also invites users to share feedback through the Feedback button in the Code Editor.

Frequently asked questions

What is Ask?

According to Google, Ask is a new chat assistant in the Google Earth Engine Code Editor. It uses Gemini to help write, explain, debug and optimize geospatial scripts.

Do I have to pay to use Ask?

Google says you need your own Gemini API key, which you can create in Google AI Studio. Google says there are free options, and paid-tier keys are billed based on usage.

Which Gemini models can Ask use?

According to Google, at launch users can choose Gemini 3 Flash Preview, Gemini 3.1 Pro Preview or Gemini 3.5 Flash.

What of my content does Ask read?

Google says answers draw on the full text of your open script, your imported assets and geometries, and the chat history of your current session.

Where is it available?

Google says Ask is available worldwide.

Can I trust AI-generated code as is?

You shouldn't trust it blindly. Google built a side-by-side diff view so you can review changes before accepting them, and no independent source has checked its accuracy yet, so check the results yourself.

Browse the latest news in this topic

Latest travel guides

Sources

Lifestyle