Skip to content

Instantly share code, notes, and snippets.

View tanaikech's full-sized avatar

Kanshi TANAIKE tanaikech

View GitHub Profile
@tanaikech
tanaikech / submit.md
Last active February 23, 2024 05:20
Guide to Function Calling with Gemini and Google Apps Script

Guide to Function Calling with Gemini and Google Apps Script

Abstract

Powerful AI tool Gemini's API release (Vertex AI & Google AI Studio) opens doors for diverse applications. Its recent upgrade to version 1.5 boosts capabilities. This report demonstrates using simple Google Apps Script function calls to leverage Gemini's power for both data retrieval and content generation.

Introduction

The recent release of the LLM model Gemini as an API on Vertex AI and Google AI Studio unlocks a world of possibilities. Ref Excitingly, Gemini 1.5 was just announced, further expanding its capabilities. Ref I believe Gemini significantly expands the potential in various situations and paves the way for diverse applications. Notably, the Gemini API can retrieve new data and generate content through function calls. In this report, I introduce the basic flow of function

@tanaikech
tanaikech / submit.md
Last active February 23, 2024 06:02
Applying Gemini Pro API to Flexible Templates using Google Apps Script

Applying Gemini Pro API to Flexible Templates using Google Apps Script

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

@tanaikech
tanaikech / submit.md
Created February 6, 2024 02:36
Convert Contact URL to Resource Name for People API using Google Apps Script

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

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###################. In this report, I would like to introduce a sample script for converting from person/c################### to people/c###################.

@tanaikech
tanaikech / submit.md
Created January 31, 2024 01:55
Semantic Search using Corpus of Gemini API with Google Apps Script

Semantic Search using Corpus of Gemini API with Google Apps Script

Description

In the current stage, v1beta of Gemini API can use the corpora. Ref When the corpora are used, the values can be searched with the semantic search. In the current stage, 5 corpora can be created in a single project. And, each corpus can have 10,000 documents and 1,000,000 chunks. In this report, I would like to introduce a method for achieving the semantic search using the corpora with Google Apps Script.

Usage

@tanaikech
tanaikech / submit.md
Last active January 30, 2024 02:56
Flexible Labeling for Gmail using Gemini Pro API with Google Apps Script Part 2
@tanaikech
tanaikech / submit.md
Created January 30, 2024 02:50
Categorization using Gemini Pro API with Google Apps Script

Categorization using Gemini Pro API with Google Apps Script

Abstract

This report explores using the Gemini Pro API with Google Apps Script to achieve flexible data categorization.

Introduction

@tanaikech
tanaikech / submit.md
Last active January 25, 2024 07:55
Semantic Search using Gemini Pro API with Google Apps Script

Semantic Search using Gemini Pro API with Google Apps Script

Abstract

Gemini API unlocks semantic search for Google Apps Script, boosting its power beyond automation. This report explores the result of attempting the semantic search using Gemini Pro API with Google Apps Script.

Introduction

@tanaikech
tanaikech / submit.md
Last active January 22, 2024 02:03
Creating Dining Reservation System using Google Apps Script

Creating Dining Reservation System using Google Apps Script

Abstract

Google Apps Script automates tasks (even offline) and builds web apps using spreadsheets as databases. This report presents a basic dining reservation system to illustrate key aspects of web app development with Apps Script, HTML, and Javascript.

Introduction

@tanaikech
tanaikech / submit.md
Last active January 12, 2024 03:21
Report: How to Run Google Apps Script

Report: How to Run Google Apps Script

Abstract

Google Apps Script is one of the strong tools with cloud computing, and it is very useful for various situations. Google Apps Script can be run by various methods. This report introduces how to execute Google Apps Script.

Recently, generative AI has given a lot of new users a chance to use Google Apps Script. If this report helps the users develop applications using Google Apps Script, I'm glad.

@tanaikech
tanaikech / submit.md
Last active January 6, 2024 05:40
Trend of google-apps-script Tag on Stackoverflow 2024

Trend of google-apps-script Tag on Stackoverflow 2024

Published: January 6, 2024

Kanshi Tanaike

Introduction

At Stackoverflow, a lot of people post questions and answers to the questions every day. There are various tags in Stackoverflow. A lot of discussions are performed at each tag. Their discussions bring important information and are very useful for a lot of people. As one of the tags, there is "google-apps-script". I sometimes discuss the questions with that tag. When we see the discussions, we notice that the discussions have changed and progressed over time, because "Google Apps Script" which is the origin of the tag is updated. This report thinks this change is the trend of the tag of "google-apps-script". This trend includes the number of questions, questioners, answerers, and tags added to the tag of "google-apps-script". The trend of the tag of "google-apps-script" is deeply related to the progression of Google Apps Script and the various applications for Google Apps Script.