How rominirani/doc-reviewer-101 works
Google Docs AI Reviewer is a web application that reviews a user-selected document and writes anchored comments and suggested edits into that document. The main flow is browser selection and criteria entry, authenticated review submission, ADK agent orchestration, then Google Docs reads and writes; Vertex AI supplies the model. The FastAPI app also exposes A2A routes, and shared ADK session/artifact services support serving surfaces. The README documents the picker and cloud integrations; sampled source confirms the review tools and route setup, but not every runtime wiring detail.
Main entry points: agent.py Review Agent · fast_api_app.py FastAPI Routes · tools.py Read Document · services.py Session and Artifacts
Components 16
Browser and Web
- Reviewer UI
app/fast_api_app.py - Drive Picker
app/fast_api_app.py - OAuth Flow
app/fast_api_app.py - FastAPI Routes
app/fast_api_app.py
Review Runtime
- ADK Runner
app/fast_api_app.py - Review Agent
app/agent.py
Document Operations
- Read Document
app/tools.py - Insert Comments
app/tools.py - Suggested Edits
app/tools.py
Agent Interfaces
- Session and Artifacts
app/app_utils/services.py - A2A Routes
app/app_utils/a2a.py
Other components
- Reviewer
- Google Account
- Google Drive and Picker APIs
- Google Docs API
- Vertex AI Gemini
Connections 18
- Reviewer → Reviewer UI: uses
README.md - Reviewer UI → Drive Picker: selects document
README.md - Drive Picker → Google Drive and Picker APIs: browses Drive
README.md - Reviewer UI → FastAPI Routes: submits review
README.md - Reviewer UI → FastAPI Routes: loads templates
app/fast_api_app.py - Reviewer → OAuth Flow: signs in
README.md - OAuth Flow → Google Account: exchanges code
app/fast_api_app.py - FastAPI Routes → ADK Runner: runs review
app/fast_api_app.py - ADK Runner → Review Agent: invokes
README.md - Review Agent → Vertex AI Gemini: reasons with
README.md - Review Agent → Read Document: calls
app/agent.py - Review Agent → Insert Comments: calls
app/agent.py - Review Agent → Suggested Edits: calls
app/agent.py - Read Document → Google Docs API: reads document
app/tools.py - Insert Comments → Google Docs API: writes comments
app/tools.py - Suggested Edits → Google Docs API: writes suggestions
app/tools.py - FastAPI Routes → Session and Artifacts: shares services
app/fast_api_app.py - FastAPI Routes → A2A Routes: attaches routes
app/fast_api_app.py