r/ClaudeCode • • 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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

1 Upvotes

24 comments sorted by

•

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

1

u/Sickle_Machine 4h ago

Look Honestly i just uses claude to write the post. Ill tell you the underlying issue. My colleagues make fabulous google slides, text boxes, flows, icons, tables everything, consistent every week. One uses cli and one uses claude desktop app. Both of their appended slides in the weekly meeting have improved alot since past 1 month and dont differ that much in quality and design flow. One certain point is that they just ask on each weekend to just push slides and claude makes summary of the work, orders them, and make their professional slides. I'm confused as to if moving to claude desktop app will improve it for me.

As per my understanding desktop apps use slides connector while cli uses mcp. There's alot of confusion and even claude cant answer if ones works better or not. Ofc the simplest idea is to try it, but a fresh fake content handed to a cli chat makes the slides a litter closer to their design philosophy if not same. So its again confusing.

1

u/Agnostify 1h ago

I’ll just change your life real quick download t3 code and I’d use MCP. Connector = mcp

1

u/Sickle_Machine 1h ago

Hi just an update my old slides went from looking like this to this. I was banging my head with clode code cli in my Ubuntu setup. And i just, out of frustration went on my phone to talk in the claude app in chat, asked it what I exactly want and it did this. I already love it. So i think the issue really is the MCP way even though it says google workspace.

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/Sickle_Machine 1h ago

Damn you are right. Bangged my head for 2 full days with 8 resets wait times, loosing my patience to explain the cli on my ubutnu. Then one single, claude mobile chat did this.

1

u/PaleEdge 57m ago

I have no idea what any of this means but am happy to have helped!

1

u/Sickle_Machine 56m ago

Im just showcasing before and after columns of slides generated by old python method vs using google slides connector from my claude mobile app.

1

u/Zeus473 4h ago

Yes I would try the import route if the API is limiting or error prone.

1

u/Sickle_Machine 4h ago

I can but just out of curiosity thinking what makes their setup better and im mostly sure they done copy paste, its just a click from them and the slides append in their link. What am I missing?

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/Sickle_Machine 4h ago

My workflow requires to make presentations almost every 3rd day. Only if I could match their level of workflow. Its something i envy ofc. I can always just do it locally and then copy paste, but seeing that they can do it, makes me wonder why cant i? single click, and all your 1 week work just goes and is directly appended to your weekly meetings slides.

1

u/Historical-Lie9697 46m ago

1

u/Sickle_Machine 21m ago

This is already loaded to the cli anyway by default. I dont get it, if the desktop app/mobile app have the same underlying mcp behind their google slide connector, how can cli not perform the same?

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

1

u/Sickle_Machine 3h ago

Any reliable high quality google slide temple website from where I can give claude a start point

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