Abstract

Google's Agent Development Kit (ADK) revolutionizes autonomous AI agents, yet its standard Node.js-based asynchronous ReAct architecture is fundamentally incompatible with the restrictive, synchronous, and time-bound execution environment of Google Apps Script (GAS). To unlock enterprise-grade AI natively within Google Workspace, this paper introduces GASADK. By abandoning the cyclical ReAct loop in favor of a deterministic Planner-Executor-Synthesizer (PES) architecture, GASADK proactively manages execution constraints, synchronous network blocking, and payload limits. This framework successfully implements multi-agent orchestration, the Model Context Protocol (MCP), and Agent-to-Agent (A2A) communication directly within GAS, empowering developers to build highly resilient, serverless AI workflows that seamlessly manipulate Workspace applications.

Introduction

Google's released Agent Development Kit (ADK) fundamentally transforms how developers architect and deploy robust, autonomous AI agents. Ref At its current stage, the official ADK ecosystem supports primary backend languages such as Python, TypeScript, Go, and Java. Among these, the Agent Development Kit (ADK) for TypeScript (adk-js) stands out for its elegant, modular approach to managing Generative AI interactions, autonomous agent routing, Agent Skills, and Function Calling. However, there remains a significant frontier for enterprise productivity: Google Apps Script (GAS). Because GAS acts as the native connective tissue of Google Workspace—seamlessly orchestrating Gmail, Sheets, Docs, and Drive—bringing the paradigm of the TypeScript ADK directly into the GAS ecosystem unlocks unprecedented potential. It allows us to evolve traditional, static automation scripts into dynamic, context-aware Workspace agents.