tanaike

The Thinker

Applying Gemini Pro API to Flexible Templates using Google Apps Script

Gists Abstract New “semantic search” features in Gemini API help find desired information within its corpora. While using these features with Google Apps Script was complex, a new library simplifies the process. This report proposes using this library with Gemini-generated content to automate template processes in Google Docs and Slides, creating a more flexible workflow. Introduction The semantic search opens up a new wind for finding the expected values. Recently, the APIs for managing corpora have been added to Gemini API.

Convert Contact URL to Resource Name for People API using Google Apps Script

Gists This is a sample script for converting a contact URL of “person/c###” to a resource name “people/c###” for People API using Google Apps Script. When you open each contact at Contacts with your browser, you can see the URL like https://contacts.google.com/person/c###################. Here, you might have a situation where you are required to retrieve the resource name for People API from this URL. But, in the current stage, person/c################### cannot be directly used as the resource name people/c###################.