Professional Documents
Culture Documents
The following example uses Google�s Gemini AI but the steps can be easily adapted
to OpenAI�s GPT-4 Vision or other AI models.
To get started, open script.new to create a new Google Script and copy-paste the
following code snippets in the editor. You may also want to enable the Advanced
Drive API from the Google Script editor under the Resources menu.
Analyze the image content and propose a concise, descriptive filename in 5-15 words
without providing any explanation or additional text. Use spaces for file names
instead of underscores.
You�d need an API key that you can generate from Google AI Studio.
const inlineData = {
mimeType: fileMimeType,
data: base64,
};