This content originally appeared on DEV Community and was authored by Justin Poehnelt
Dive into the code used for the demo: “Name with Intelligence Google Workspace Add-on”. Learn how our Apps Script code calls the Vertex AI API to send prompts to Gemini 2.0 Flash.
0:00 Intro
0:43 Define location, model, and service key as well as the prompt
2:04 Assembling the request
4:01 Calling the Vertex AI API by using the UrlFetchApp service
Get the code: https://goo.gle/3BOy0LW
Learn more about the generateContent method of the Vertex AI API: https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/generateContent
Follow youtube.com/@googleworkspacedevs
This content originally appeared on DEV Community and was authored by Justin Poehnelt
Justin Poehnelt | Sciencx (2025-02-19T17:45:38+00:00) Explained ➡️ Apps Script code for AI powered Google Workspace Add on. Retrieved from https://www.scien.cx/2025/02/19/explained-%e2%9e%a1%ef%b8%8f-apps-script-code-for-ai-powered-google-workspace-add-on/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.