Logo Google Slides Export

Google Slides Export

Tổ chức
ai-analyst-lab
google-slides-export

Create properly formatted Google Slides through the Google Drive connector's Slides capabilities, preventing common errors (zero-weight outlines, short object IDs, oversized batches, text overflow) with a design system and pre-validated slide recipes. Apply on any Google Slides API call, when converting Marp decks, or when the user says "Google Slides", "export to slides", "create a presentation", "share as slides".

Tổng quan

Nhà phát hànhai-analyst-lab
Kho mãai-analyst-plugin
Tên kỹ nănggoogle-slides-export
Sao
34
Bản fork
13
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được ai-analyst-lab công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Google Slides Export trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/google-slides-export
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst-plugin.git /tmp/ai-analyst-plugin
mkdir -p .claude/skills
cp -r /tmp/ai-analyst-plugin/ai-analyst-plus/skills/google-slides-export .claude/skills/google-slides-export
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Google Slides Export trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Google Slides Export ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Google Slides Export với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Skill: Google Slides Export

Requires the Google Drive connector (with Google Slides access) enabled in Cowork.

Purpose

Create properly formatted Google Slides presentations through the connector. Prevents API errors and ensures every deck looks professional -- no text overflow, no overlapping elements, consistent brand design.

Connector Capabilities and Tool Discovery

Exact tool names differ by environment, so never hardcode them: discover the connector's actual tools in-session (list the available tools and read each candidate's own schema before calling). You need four capabilities:

  1. Create a presentation -- creates the deck container and returns its presentation ID.
  2. Batch-update a presentation -- applies a list of Google Slides API requests (createSlide, createShape, insertText, updateShapeProperties, createImage, deleteObject, ...) to a presentation ID. This is the workhorse call this skill's recipes feed.
  3. Read back a presentation or page -- returns existing object IDs (needed before any deleteObject) and supports the post-build self-check.
  4. Upload a file to the user's Drive -- used for chart images (see the Image Insertion Workflow); must return a file ID usable in a Drive URL.

If no available tool provides a capability, stop and tell the user to enable the Google Drive connector (with Slides access); never fake the export or route the content elsewhere.

The connector boundary, honestly: the request bodies in this skill follow the public Google Slides API batchUpdate format, which connectors pass through. Whether a given environment's tools add wrapper parameters (or name things differently) cannot be verified from this file without a live connector -- that is exactly why you discover the tools and read their schemas in-session rather than trusting any tool name written here.

When to Apply

Automatically whenever:

  • A Slides batch-update call is about to be made through the connector
  • A Google Slides deck is being designed or built

Section A: Pre-Flight Checklist

Run this checklist BEFORE building any batch_update requests. Fix all violations first.

  • Object IDs >= 5 characters -- every NEW object ID you create must be 5+ chars OK: slide_2, hdr_bg, title_box, body_txt BAD: s2, t1, bg, p_t1 (Only applies to IDs you define; existing IDs from the API can be any length)
  • No zero-weight outlines -- never set outline.weight.magnitude = 0 BAD: "weight": {"magnitude": 0, "unit": "PT"} -> API error OK: Omit the updateShapeProperties outline block entirely (no border = default)
  • Slide creation uses createSlide -- not addSlide (not a valid request type)
  • Batches <= 50 requests -- split into batches of 50 and apply sequentially Each batch must complete before the next starts (do not parallelize)
  • deleteObject only for confirmed IDs -- only delete element IDs returned by the connector's presentation/page read-back capability; never delete IDs you invented
  • Text boxes are generous -- every text box that holds variable content must be at least 3000000 EMU wide and use autoFit: AUTO_FIT

Section B: Design System

Page Dimensions

Width:  9144000 EMU  (10 inches)
Height: 5143500 EMU  (5.625 inches)
1 inch = 914400 EMU

Color Palette (Default Brand)

Dark navy:    {red: 0.118, green: 0.161, blue: 0.231}   -- header bars, full-bg dividers
Orange:       {red: 0.851, green: 0.467, blue: 0.024}   -- highlights, accent callouts
Accent green: {red: 0.02,  green: 0.588, blue: 0.412}   -- secondary metrics
Off-white:    {red: 0.969, green: 0.965, blue: 0.949}   -- slide background
White:        {red: 1.0,   green: 1.0,   blue: 1.0}     -- card backgrounds, text on dark
Dark text:    {red: 0.133, green: 0.133, blue: 0.133}   -- body text on light backgrounds

Layout Zones

Header bar:       x=0,       y=0,       w=9144000, h=686000
Title in header:  x=457200,  y=100000,  w=8229600, h=486000
Content start:    y=800000
Left margin:      x=457200   (0.5 inch)
Right edge:       x=8686800
Content width:    8229600    (9 inches usable)
Bottom safe zone: y <= 4800000 (leaves 0.37in gutter above slide bottom)

Formatting Rules

  1. autoFit on all content text boxes -- use "contentAlignment": "TOP" + "autoFit": {"autoFitType": "AUTO_FIT"} in updateShapeProperties. Never set a fixed height on a text box that holds variable text content.

  2. Minimum text box width: 3000000 EMU (3.3 inches) for any box holding sentences. Narrow boxes (metric labels, short tags) may be smaller.

  3. Font size hierarchy:

RoleSizeWeight
Full-slide section title (dark bg)28-32ptBold
Slide title (in header bar)20-24ptBold
Insight headline (below header)14-16ptBold
Body / bullet text11-13ptRegular
Metric value (KPI card)24-30ptBold
Card label / footnote9-11ptRegular
  1. Maximum 5 content elements per slide (not counting the header RECTANGLE and title TEXT_BOX). If you need more, split into two slides.

  2. Maximum 3 bullet points per text box. Max 70 characters per bullet. If content is longer, split into two slides or use a two-column layout.

  3. Card pattern for KPI metrics:

  • Create a white RECTANGLE as the card background
  • Layer a large metric value TEXT_BOX on top
  • Layer a smaller label TEXT_BOX below the value
  • Card objects must be created in order: background RECTANGLE first, then text boxes
  1. Paragraph spacing inside text boxes:
json
"paragraphStyle": {
  "spaceAbove": {"magnitude": 4, "unit": "PT"},
  "spaceBelow": {"magnitude": 4, "unit": "PT"},
  "lineSpacing": 115
}
  1. Never use spaces or tabs for visual alignment. Use separate text boxes positioned at the correct x coordinate.

Section C: Layout Library

Five pre-validated slide type recipes. Each specifies exact createShape / createSlide requests. Always pick the closest matching type; fill in text content only.

Object ID naming convention: {type}_{slidenum}_{role} Examples: slide_2, hdr_2, ttl_2, hdl_2, bdy_2, cd1_2, cv1_2, cl1_2


Type 1 -- Title Slide

Use for: deck opening slide Elements: 3

1. RECTANGLE (full-background, dark navy)
  objectId: "bg_{n}"
  size:      w=9144000, h=5143500
  position:  x=0, y=0
  fill:      dark navy

2. TEXT_BOX (main title)
  objectId: "ttl_{n}"
  size:      w=8229600, h=900000
  position:  x=457200, y=1700000
  text:      [DECK TITLE -- headline, not label]
  font:      28pt, white, bold
  autoFit:   AUTO_FIT

3. TEXT_BOX (subtitle / context)
  objectId: "sub_{n}"
  size:      w=8229600, h=500000
  position:  x=457200, y=2700000
  text:      [Scope | Date range | Author]
  font:      16pt, off-white, regular
  autoFit:   AUTO_FIT

Type 2 -- Section Divider

Use for: transitions between major sections Elements: 2

1. RECTANGLE (full-background, dark navy)
  objectId: "bg_{n}"
  size:      w=9144000, h=5143500
  position:  x=0, y=0
  fill:      dark navy

2. TEXT_BOX (section name)
  objectId: "sec_{n}"
  size:      w=8229600, h=700000
  position:  x=457200, y=1900000
  text:      [SECTION NAME]
  font:      28pt, white, bold, centered
  autoFit:   AUTO_FIT

Type 3 -- Header + Bullets

Use for: insight findings, recommendation lists, methodology, any text-heavy slide Elements: 4

1. RECTANGLE (header bar, dark navy)
  objectId: "hdr_{n}"
  size:      w=9144000, h=686000
  position:  x=0, y=0
  fill:      dark navy

2. TEXT_BOX (slide title, inside header)
  objectId: "ttl_{n}"
  size:      w=8229600, h=486000
  position:  x=457200, y=100000
  text:      [SLIDE TITLE -- max 60 chars]
  font:      20pt, white, bold

3. TEXT_BOX (insight headline)
  objectId: "hdl_{n}"
  size:      w=8229600, h=450000
  position:  x=457200, y=800000
  text:      [INSIGHT HEADLINE -- the "so what", max 100 chars]
  font:      14pt, dark navy, bold
  autoFit:   AUTO_FIT

4. TEXT_BOX (body bullets)
  objectId: "bdy_{n}"
  size:      w=8229600, h=3300000
  position:  x=457200, y=1350000
  text:      [bullet 1\nbullet 2\nbullet 3]  (max 3 bullets, 70 chars each)
  font:      12pt, dark text, regular
  autoFit:   AUTO_FIT

Type 4 -- KPI Cards

Use for: metric dashboards with 2-4 key numbers side by side Max 4 cards. Elements: header (2) + per card (3 each) = 5-14 total.

Card x-positions by count:

2 cards: card_w=3800000  x1=457200,  x2=4686800
3 cards: card_w=2500000  x1=457200,  x2=3214200,  x3=5971200
4 cards: card_w=1800000  x1=457200,  x2=2514200,  x3=4571200,  x4=6628200

Card height: 2000000 EMU. Card y-position: 900000.

1. RECTANGLE (header bar, dark navy)    -- objectId: "hdr_{n}"
2. TEXT_BOX (slide title in header)     -- objectId: "ttl_{n}"
  [same as Type 3 header elements]

Per card i (repeat for each metric):
3i. RECTANGLE (card background, white)
   objectId: "cd{i}_{n}"
   size:      w={card_w}, h=2000000
   position:  x={xi}, y=900000
   fill:      white, rounded corners (optional)

4i. TEXT_BOX (metric value)
   objectId: "cv{i}_{n}"
   size:      w={card_w - 200000}, h=900000
   position:  x={xi + 100000}, y=1050000
   text:      [METRIC VALUE -- e.g., "40.2M" or "39.4%"]
   font:      28pt, dark navy, bold, centered

5i. TEXT_BOX (metric label)
   objectId: "cl{i}_{n}"
   size:      w={card_w - 200000}, h=400000
   position:  x={xi + 100000}, y=2050000
   text:      [METRIC LABEL -- e.g., "Monthly Active Users"]
   font:      10pt, dark text, regular, centered
   autoFit:   AUTO_FIT

Type 5 -- Two-Column

Use for: side-by-side comparisons, before/after, two segments Elements: 4

1. RECTANGLE (header bar, dark navy)    -- objectId: "hdr_{n}"
2. TEXT_BOX (slide title in header)     -- objectId: "ttl_{n}"
  [same as Type 3 header elements]

3. TEXT_BOX (left column)
  objectId: "lcl_{n}"
  size:      w=3900000, h=3700000
  position:  x=457200, y=900000
  font:      12pt, dark text, regular
  autoFit:   AUTO_FIT

4. TEXT_BOX (right column)
  objectId: "rcl_{n}"
  size:      w=3900000, h=3700000
  position:  x=4786800, y=900000
  font:      12pt, dark text, regular
  autoFit:   AUTO_FIT

Type 6 -- Chart Slide (Header + Text + Image)

Use for: findings with an embedded chart image Elements: 5

1. RECTANGLE (header bar, dark navy)    -- objectId: "hdr_{n}"
2. TEXT_BOX (slide title in header)     -- objectId: "ttl_{n}"
  [same as Type 3 header elements]

3. TEXT_BOX (insight headline)
  objectId: "hdl_{n}"
  size:      w=4000000, h=450000
  position:  x=457200, y=800000
  text:      [INSIGHT HEADLINE -- the "so what", max 100 chars]
  font:      14pt, dark navy, bold
  autoFit:   AUTO_FIT

4. TEXT_BOX (body text, left side)
  objectId: "bdy_{n}"
  size:      w=4000000, h=3300000
  position:  x=457200, y=1350000
  text:      [3 bullets max, 70 chars each]
  font:      12pt, dark text, regular
  autoFit:   AUTO_FIT

5. IMAGE (chart, right side)
  objectId: "img_{n}"
  size:      w=4300000, h=3500000
  position:  x=4572000, y=1300000
  url:       [HTTPS URL -- see Image Insertion workflow below]

Image Insertion Workflow (for Type 6 slides):

Charts are local PNG files that must be reachable at an HTTPS URL before insertion. The Google Slides API does NOT accept data:image/... data URIs.

Data handling: charts go only to the user's own Google Drive through the connector. Never upload charts or data to public file hosts. The files stay in the user's Drive under their control, private by default; the upload tool sets just enough link access for the Slides API to fetch the image.

  1. Upload each chart PNG to the user's Drive using the connector's image/file upload capability (discover the exact tool in-session; it takes a local file path plus a file name and returns the Drive file ID and a URL):
<drive upload tool>(
  file_path="<path to chart.png>",
  file_name="chart_name.png"
)
# Returns: {"file_id": "...", "url": "..."}

Upload all charts in one pass and print the filename -> file_id map so later steps can reference charts by name. Before uploading, check Drive for an existing file with the same name uploaded in the last 24 hours and reuse its ID instead of creating a duplicate. Optionally create a "{dataset_name} - Charts" folder first for organization.

  1. Insert into slides via createImage, using the Drive direct-download URL (https://drive.google.com/uc?id={file_id}&export=download):
json
{"createImage": {
  "objectId": "img_{n}",
  "url": "https://drive.google.com/uc?id={file_id}&export=download",
  "elementProperties": {
    "pageObjectId": "slide_{n}",
    "size": {"width": {"magnitude": 4300000, "unit": "EMU"},
             "height": {"magnitude": 3500000, "unit": "EMU"}},
    "transform": {"scaleX": 1, "scaleY": 1,
                   "translateX": 4572000, "translateY": 1300000, "unit": "EMU"}
  }
}}
  1. Delete the placeholder frame (if one exists):
json
{"deleteObject": {"objectId": "cpf_{n}"}}

The chart already lives permanently in the user's Drive; no extra save step is needed, and the deck keeps working because the image URL points at the Drive file.

Important API constraints:

  • BAD: data:image/png;base64,... -> returns 403 Forbidden
  • BAD: http://localhost:... -> the connector cannot access local URLs
  • BAD: public temporary file hosts -> links expire and the user's data leaves their control
  • OK: the user's own Drive file via https://drive.google.com/uc?id={ID}&export=download
  • All 5 createImage + deleteObject requests can go in a single batch

Section D-1: Data Stamp & Speaker Notes Provenance

Data Stamp Text Box

For finding slides (Type 3 and Type 6), add a data stamp text box at the bottom-right corner. This provides at-a-glance provenance for every claim.

TEXT_BOX (data stamp)
  objectId: "dst_{n}"
  size:      w=4000000, h=250000
  position:  x=4686800, y=4800000
  text:      [abbreviated stamp: "50K | Jan-Mar 2026 | EVENTS | B (82)"]
  font:      8pt, {red: 0.6, green: 0.6, blue: 0.6}, regular
  alignment: RIGHT
  autoFit:   AUTO_FIT

When to include: Any slide presenting a specific data finding (insight headline + evidence). When to skip: Title slides, section dividers, KPI dashboards, recommendation lists, appendix.

Build the abbreviated data stamp text yourself in this exact format: {row_count} | {date_range} | {primary_table} | {grade} ({score})

  • Abbreviate the row count (50,000 → 50K; 1,200,000 → 1.2M)
  • When no confidence score is available, drop the final segment: 50K | Jan-Mar 2026 | EVENTS

Speaker Notes Provenance Format

For finding slides, speaker notes should contain full provenance so the presenter can answer "where does this number come from?" questions:

Data: [145K rows | Jan-Mar 2026 | ORDERS | Confidence: B (82/100)]
Methodology: segmented comparison, SUM by segment
SQL: SELECT segment, SUM(revenue) FROM orders GROUP BY segment
Verification: Type B: Parts-to-whole — Verified (PASS, diff 0.2%)

Insert via insertText on the slide's notes page object.


Section D: Reference Decks

To verify design decisions, use decks previously created by this pipeline as visual references. Add your own reference deck IDs here after creating decks you're happy with.

Visual patterns to follow:

  • Card-based layouts: colored RECTANGLE backgrounds with text boxes layered on top
  • Section dividers: full dark-navy background with large centered text only
  • Minimal element count: 2-4 elements on dividers, 5-10 on content slides
  • Flow diagrams: CURVED_LEFT_ARROW shapes for process flows (not table data)
  • Round rectangles (ROUND_RECTANGLE) as alternative card containers

Câu hỏi thường gặp

Kỹ năng AI Google Slides Export làm được gì?

Create properly formatted Google Slides through the Google Drive connector's Slides capabilities, preventing common errors (zero-weight outlines, short object IDs, oversized batches, text overflow) with a design system and pre-validated slide recipes. Apply on any Google Slides API call, when converting Marp decks, or when the user says "Google Slides", "export to slides", "create a presentation", "share as slides".

Vì sao nên dùng Google Slides Export trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Google Slides Export là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Google Slides Export trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/google-slides-export. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Google Slides Export?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Google Slides Export với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Google Slides Export với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Google Slides Export có miễn phí không?

Có. Kỹ năng này được ai-analyst-lab phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇