
Connecting Claude API to Apps Script: Tool Use, Prompt Caching, and Cost Tradeoffs
Most Apps Script AI integrations default to OpenAI by reflex. In 2026 that's a reflex worth questioning. Claude has matched or exceeded GPT on instruction following and tool use, while prompt caching can drop the cost of a high-volume Apps Script workflow by 80% on stable system prompts. This guide covers the full Anthropic API integration: request format differences, tool use schema, prompt caching wired into PropertiesService, and a model-router pattern that uses Haiku and Sonnet together for the right cost tradeoff.
Read the full article →




