How siddhesh-desai/slideai works
Project Type and Purpose
• SlideAI is a Google Apps Script–based web application that automates PowerPoint (Google Slides) creation.
• It exposes a simple HTML/JS UI (index.html) as a web app, runs server-side Apps Script (Code.gs), invokes OpenAI for text generation, Bing Search API for images, and Google Slides API to build/update the presentation.
File Structure
• Top level:
• README.md – project overview, architecture hints.
• images/ – static assets (logo & screenshots).
• lib/ – application code:
– index.html: client-side form for user inputs.
– Code.gs: Apps Script handlers, orchestrator.
• No separate “backend” folder: Apps Script code lives alongside UI in lib/.
Key Architecture Insights from README
• Technologies: Apps Script runtime, OpenAI API, Bing API, Google Slides API.
• Data flow: User inputs → Apps Script → external AI/image services → Slides API → updated presentation.
• Deployment: as an Apps Script web app, with a bound script project accessing Slides.
Main Components
a. Client Browser/UI (index.html)
b. Google Apps Script Runtime (Code.gs)
c. OpenAI API (text-generation service)
d. Bing Search API (image-retrieval service)
e. Google Slides API & Target Presentation (in Google Drive)
Architectural Patterns and Design Principles
• Serverless (Apps Script) orchestrator pattern
• External API façade: wrap OpenAI & Bing REST calls in helper functions
• Single-page input form + server callbacks (RPC over HTTPS)
• Separation of concerns: UI, orchestration, external services, and slide storage