DiscoveryVIP / AI EngineeringHelp Center

Gemini and Apps Script integration, privacy and deployment

Start in fixture mode

The academy runs locally in your browser using authored/manual responses. No provider secret is requested and no live model inference occurs. Validation, graphs, calculations, retrieval, tool policies and local service changes are real deterministic operations.

Protected live Gemini: separate local server

Download Protected Gemini Server Source
  1. Download the complete source package and extract the protected server source to a private development location outside the public FTP document root.
  2. Read server/README.md. Configure its private .env from .env.example with a provider key, available model ID, random proxy token, actual rates and a small estimated budget.
  3. Use Node.js 20+ and start node --env-file=.env server.mjs inside that private folder.
  4. Open http://127.0.0.1:8791. Enter the proxy token; the Gemini key stays on the server.
  5. Use fictional text, get an estimated quote and explicitly approve before sending. Inspect actual provider usage where returned and validate the proposal before any human-reviewed action.

This loopback reference server is not a public multi-user deployment. It has authorization, host/origin checks, body/output caps, concurrency/rate limits, a timeout and per-process estimated budget reservation. Public use requires real user authentication, durable shared limits, HTTPS and retention/monitoring. Static FTP cannot start a Node backend automatically.

Apps Script: actual authorized spreadsheet project

  1. In Virtual Google Workspace choose Export Apps Script Starter.
  2. Create a test Google Sheet with fictional feedback. Open Extensions → Apps Script and paste Code.gs.
  3. Read the exported setup instructions, configure server-side Script Properties and review the minimal scopes. Do not publish an anonymous endpoint.
  4. Reload the sheet. Choose AI Reviewed Applications → Run authored fixture. Review before approving an actual write to the test sheet.
  5. For live Gemini, use Quote and run live Gemini. Approve data sharing/cost first, then review the returned proposal and separately approve its write.

Browser Virtual Workspace adapters are fictional. The exported bound script, after authorization, can change your actual test spreadsheet only after your explicit confirmations.

API compatibility and current sources

Checked 2026-11-22. The direct REST/Apps Script export uses the still-supported generateContent endpoint and its documented structured-output configuration. Google's newer Interactions API is recommended for new integrations; it has a different request/response contract and retention behavior. No default current model or pricing is invented; configure a model your account supports and verify the rates yourself.