In this tutorial, we'll use Google AI's Gemini Text Generation API to automate the creation of Google Doc Outlines for a list of keywords from Google Sheets.
Github Code: https://github.com/drewpager/automaway/blob/main/gemini-text-generation-api/gem-text-gen.gs
Prerequisites:
- Google Account (including Google Cloud)
Reference URLs:
- https://ai.google.dev/gemini-api/docs/text-generation
- https://aistudio.google.com/apikey
- https://console.cloud.google.com/apis/api/generativelanguage.googleapis.com
- https://ai.google.dev/pricing#1_5flash
Free Account Rate Limits:
- 15 RPM (requests per minute)
- 1 million TPM (tokens per minute)
- 1,500 RPD (requests per day)
Chapters
00:00 What We're Building
01:01 Project Setup
02:12 Gemini API Function
07:43 Get Keywords Function
15:13 Project Conclusion
#geminiai #googleappsscript #aiautomation