r/ClaudeCode • u/Sickle_Machine • 4h ago
Help/Question Building professional Google Slides programmatically via Claude Code CLI — anyone else struggling with visual quality?
I'm using Claude Code (CLI) with the Google Slides MCP connector to programmatically build presentation decks for my research lab. The pipeline works — I have a design token system (custom fonts, type scale, color palette), a Python helper that converts inch-based specs to EMU coordinates, overflow detection, and batch splitting for the presentations.batchUpdate API.
The problem: Getting slides that look professionally designed rather than "AI template" is brutal. Some specific pain points:
Text overflow is invisible. Google Slides silently clips text that doesn't fit a text box — no error, no warning. I had to build my own height calculator (n_lines × size_pt × 1.2/72 + padding) and character-width estimator to catch overflows before pushing. Even then, proportional fonts make it approximate.
No visual feedback loop in CLI. After pushing a 373-request batchUpdate, I only see {"replies": [...]} — I can't see what it actually looks like without manually calling read_slide_page_thumbnail and inspecting the PNG. Web/Desktop Claude supposedly has an inline preview, but I haven't confirmed this.
Batch splitting. Large decks exceed payload limits. I split at createSlide boundaries, but each batch needs a fresh revisionId read, so a 7-slide deck = 14 API calls minimum.
One style per shape. Can't mix bold and regular text in the same text box without multiple insertText + updateTextStyle calls with precise character ranges.
What I've tried:
- Built a full design system (tokens JSON → Python generator → spec JSON → batchUpdate JSON)
- Overflow warnings based on box dimensions and estimated char widths
- Native bullet lists instead of typed • characters
- writeControl.requiredRevisionId on every push
What I'm wondering:
- Has anyone compared slide quality between Claude Desktop/Web vs CLI when using the same Google Slides connector? Is the visual feedback loop on Desktop actually automatic or just speculation?
- Is anyone using the Claude Slides Artifact type (the native presentation builder, not Google Slides) in CLI? Does it produce better results?
- Would it be better to build slides as HTML/CSS and export to .pptx via a library like python-pptx instead of fighting the Slides API directly?
- Any other approaches to programmatic slide generation that actually produce professional-looking output?
For context: these are weekly progress decks for a university research lab (drone swarm algorithms). Dense content — tables, two-column layouts, 7+ bullet sections. Not marketing decks with big hero images.
Appreciate any experience or tips. Thanks.
•
u/AutoModerator 4h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Agnostify 4h ago
373 requests per deck and Slides still won’t tell you your text got clipped. Most Google API sentence I’ve read all week
2
u/PaleEdge 3h ago
Google MCP connectors mostly suck and they have limited interest in making them better because they'd rather invest in Gemini and Google's own walled garden.
It's probably better to have Claude sketch something locally, get it into ppt(x) format, and then convert to Google Slides at the last possible moment.
1
u/Zeus473 4h ago
Yes I would try the import route if the API is limiting or error prone.
1
u/Moogly2021 4h ago
Wouldnt it be easier to make the file locally using literally anything else then upload it to Google?
1
u/Ambitious_Bad1169 3h ago
I'd automate thumbnail rendering after each batch and run a visual review pass before publishing. For dense research slides, reliable layout templates probably beat unrestricted generation
2
u/Saver411 4h ago
Export the rendered slide as an image immediately after each 373-request batchUpdate so the agent inspects the layout befor it hits production. Relying on bounding-box math alone won't catch clipping across diffrent font renderers
2
u/Murflaw7424 4h ago
Dude just have it make a PowerPoint. Then add it to Google Drive and you can open it in slodes
1
u/bensyverson 4h ago
I use Woodcase, which does have design systems, overflow warnings, and safe revisions. Check it out!
1
u/DhaulaS 4h ago
A colleague of mine reached very professional layouts by:
- using a /design-system skill where she worked with Claude to specify all fonts, font sizes, icons, table layouts, icons, breakouts, slide templates, etc
- using the native claude slide artifact, iterating there before pushing to G-Slide
The main paint points I see:
- very claude app dependent
- it doesn't use the "official slide theme" from our company. It looks identical but you can for example move the logo at the bottom of the page, which is supposed to be in the Theme
1
u/Attacus 3h ago
Use Figma to build templates for slide types, then tell Claude to use the Figma templates with the new context. Wayyyy better results and very consistent.
1
u/OliviaX05 3h ago
The silent clipping is the part that would get me too — I'd rather build the HTML/CSS route and export to .pptx, then open it in Slides, just to get a real preview before each push instead of guessing from the batch replies.
1
u/Ok-Form1598 3h ago
stop having claude do layout. build one deck by hand that looks right, with placeholders like {{title}} and {{left_col}} in each layout, then each week it copies that deck and fills it with replaceAllText. fonts, spacing and the two column layouts already live in the template, so all it has to write is the text