Tackling Common Issues
If the AI can't find a dataset by name, you can provide the exact Dataset ID in your prompt.
Example: Dataset Not Found
Problem Prompt: "Generate a map of global population density from the WorldPop dataset."
Solution Prompt: "Generate a map of global population density from the WorldPop dataset. ee.ImageCollection(\"CIESIN/GPWv411/GPW_UNWPP-Adjusted_Population_Count\")
"
Initial Setup: API Key
To use the GEE AI Assistant, you need a Gemini API key. This allows the tool to make requests to Google's generative models.
- Go to Google AI Studio.
- Click on "Get API key" and then "Create API key in new project".
- Copy the generated API key to your clipboard.
- Paste the key into the "Gemini API Key" field at the top of the GEE AI Assistant panel in the Code Editor.
Actions
These buttons provide core functionalities for interacting with your script.
Run Script
Executes the code currently in the script editor and displays the output on the map or in the console.
Fix with Console Errors
If your script fails, just hit the 'Fix with Console Errors' button then 'Run Script' again do the process. If that doesn't work, try regenerating the code using the 'Generate' button.
Generate Script
This is for creating new Google Earth Engine code from scratch. Type a description of what you want to achieve and click 'Generate'.
What to Do
- Be specific about locations, dates, and datasets. Provide dataset IDs.
- Clearly state your goal (e.g., "calculate NDVI", "create a cloud-free mosaic").
- Use prompts from the "Curated" tab as inspiration.
What to Avoid
- Asking for multiple, complex tasks in one prompt.
- Using ambiguous dataset or place names.
Modify Existing Code
This allows you to make changes or additions to the code already in the editor. Enter your desired change and click 'Modify'.
What to Do
- Clearly state the change, e.g., "Change the color palette ".
- Refer to specific variables or layers if you know them.
- Focus on one modification at a time for best results.
What to Avoid
Video Tutorial
Introducing the Google Earth Engine AI Assistant
A quick tutorial on how to get started and use the GEE AI Assistant for your geospatial analysis workflows.
Create and share social media posts
Controls
Share Image
Click to share the generated image using your device's share dialog.
Image Preview
Project Heading
Made with the 'Google Earth Engine AI Assistant' Chrome Extension