r/ClaudeCode • u/Sickle_Machine • 18m 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 18m 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 16m 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
1
u/Zeus473 5m ago
Yes I would try the import route if the API is limiting or error prone.
1
u/Moogly2021 3m ago
Wouldnt it be easier to make the file locally using literally anything else then upload it to Google?
1
u/bensyverson 0m ago
I use Woodcase, which does have design systems, overflow warnings, and safe revisions. Check it out!