[TERMINAL · SKILLS]
> mounting /skills...
> indexing skill manifests...
> linking agents: claude · codex · gemini · cursor
> ready.
[░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0%
Use Cases/Batch-Produce On-Brand Designs from a Spreadsheet with Canva

Batch-Produce On-Brand Designs from a Spreadsheet with Canva

Turn one approved Canva brand template plus a CSV into hundreds of on-brand social posts, ads or certificates — autofilled, exported to PNG/PDF, and filed into folders by an agent, without a designer touching each variant.

Design#canva#design-automation#brand-templates#oauth#mcp
Works with:claude-codeopenai-codexgemini-clicursor

Skills stack · 4 skills

Avg quality 93/100·All SAFE
>

canva

v1.1.0

Automate Canva from an agent — via the AI Connector MCP server (generate, find, edit, export designs in natural language) or the Connect REST API (OAuth 2.0 + PKCE, brand template autofill, asset uploads, exports, folders, comments). Use when: connecting an agent to Canva, batch-producing social posts or decks from a brand template and a spreadsheet, exporting designs to PDF/PNG/PPTX/MP4, uploading assets into a Canva account, building a Canva integration, or when the user mentions "Canva", "brand template", "autofill", "Connect API", or "Canva MCP".

100/100 quality
1.95× impact
SAFE
View skill
>

brand-guidelines

v1.1.0

Create and maintain brand style guides for consistent visual identity. Use when a user asks to create brand guidelines, build a style guide, define a brand identity, create a design system document, establish brand colors and typography, or produce any brand standards documentation.

87/100 quality
1.19× impact
SAFE· stale score
View skill
>

social-content

v2.0.0

Plans and writes social media posts for a person or a company and delivers them as a checked, dated file: posts adapted to each network's format and hard limits, with alt text, disclosure where required, tracked links and a posting calendar. Use when a user asks to "write a LinkedIn post", "turn this blog post into a thread", "plan a month of social content", "build a content calendar", "repurpose this article for Instagram and TikTok", "announce our launch on X and Bluesky", or wants help deciding what to post, where and how often.

93/100 quality
2.39× impact
SAFE· stale score
View skill
>

csv-parse

v1.1.0

Parse and generate CSV files with the csv package — stream large files, handle custom delimiters, transform records, validate data, and generate CSV output from objects. Use when tasks involve data import/export, ETL pipelines, processing uploaded CSV files, or generating downloadable reports.

93/100 quality
6.00× impact
SAFE· stale score
View skill
$

The Problem

Priya runs marketing ops for a franchise with 240 locations. Every seasonal campaign means 240 versions of the same poster: same layout, different city, address, offer price and hero photo. The design team builds one master in Canva, then someone duplicates it 240 times and retypes four fields per copy. It takes three days, and roughly a dozen come out wrong — a stale price, a city misspelled, a logo nudged out of the safe zone.

The workaround everyone reaches for is worse. Exporting the layout to a script that draws text onto a PNG loses the brand: fonts drift, the design team can no longer edit it, and every future change means editing code instead of a design.

The Solution

Keep the master in Canva as a brand template and let an agent fill it. Canva's autofill takes a brand template id and a map of field values and produces a real Canva design — same fonts, same brand kit, still editable by the design team. The agent reads the CSV, uploads each hero image as a Canva asset, fires one autofill job per row, polls the jobs, exports the finished designs, and files them into a folder per region.

Two ways in: the AI Connector MCP (https://mcp.canva.com/mcp) for a human-in-the-loop run, or the Connect REST API for an unattended job in CI. The steps below use the REST API, whose endpoints, scopes and limits are the ones documented at canva.dev.

bash
terminal-skills install canva brand-guidelines social-content csv-parse

Step-by-Step Walkthrough

Step 1: Check the plan before building anything

The Autofill API and the brand template APIs work when your app acts for a user on a Canva plan that includes them (Pro, Teams or Enterprise; Canva's docs list Education and Nonprofits plans too). Free-plan users may get a limited autofill trial. Ask the account instead of guessing: GET /v1/users/me/capabilities (scope profile:read, limited to 10 requests per minute) returns a capabilities array, and you want both autofill and brand_template in it before row 1. If either is missing, stop and tell the owner the plan lacks access. The fallback of creating a design from the template and editing it by hand is real, but not unattended.

Step 2: Connect the agent

For the interactive path:

bash
claude mcp add --transport http canva https://mcp.canva.com/mcp

The first tool call opens a browser to authorize the account. For the unattended path, register an integration at canva.com/developers and implement the OAuth 2.0 PKCE flow (code_challenge_method=S256), requesting exactly the scopes the job needs: profile:read (capabilities), brandtemplate:content:read (dataset), asset:write and asset:read (upload, then poll the upload job), design:content:write (create the autofill job), design:meta:read (poll the autofill job), design:content:read (export) and folder:write (create folders, move designs). Canva implies nothing between scopes.

Step 3: Read the template's real field names

The single most common failure is guessing field names: a key the template doesn't have is silently ignored, so the job succeeds and returns a design with empty placeholders.

bash
curl -H "Authorization: Bearer $TOKEN" \
  https://api.canva.com/rest/v1/brand-templates/DAFxyz123/dataset
# → { "dataset": { "headline": {"type":"text"}, "city": {"type":"text"},
#                  "price": {"type":"text"}, "hero": {"type":"image"} } }

Map CSV columns onto those exact keys once, and validate every row against them before spending a single API call. Use the brand-guidelines skill to settle what actually varies per location versus what must stay locked in the master.

Step 4: Upload the images, then autofill each row

Images enter autofill as asset ids, not URLs, so each hero photo is uploaded first — POST /v1/asset-uploads with the raw bytes and the name in the Asset-Upload-Metadata: {"name_base64": "..."} header (uploads are limited to 30 per minute per user). Poll GET /v1/asset-uploads/{jobId} for the asset id.

http
POST /v1/autofills
{ "brand_template_id": "DAFxyz123",
  "title": "Autumn promo — Leeds",
  "data": { "headline": {"type":"text","text":"30% off through October"},
            "city":     {"type":"text","text":"Leeds"},
            "price":    {"type":"text","text":"£24.99"},
            "hero":     {"type":"image","asset_id":"MSGxyz789"} } }

Step 5: Treat every response as a job, not a result

Autofills, uploads and exports are all async. Every request below needs Authorization: Bearer $TOKEN. The POST returns {"job": {"id", "status": "in_progress"}}; the design only exists once a GET on /v1/autofills/{jobId} returns success, with the id at job.result.design.id. Poll on a back-off (1s → 2s → 4s), never in a tight loop.

Rate limits are per user per minute and they are the real pacing constraint: autofill 60/min, asset uploads 30/min, export creation 20/min, status polls 120/min for autofill jobs. Exports are the slowest stage: every design needs one export per format, so 240 designs in two formats is 480 exports, about 24 minutes at 20/min. Build a throttled queue, not a Promise.all that trips 429 on row 30.

Step 6: Export, file, and hand back editable links

POST /v1/exports with {"design_id": "...", "format": {"type": "png"}} (or {"type": "pdf"} for print; the size option such as a4 applies only to Canva Docs, not to posters), poll /v1/exports/{exportId}, and read the urls array (one URL per page). Download immediately: export URLs die after 24 hours. POST /v1/folders/move files each design into a folder per region so the local teams can find theirs.

The edit_url in the autofill result is valid for 30 days but only opens for the user who made the API request, so it is for the operator (Priya's own account), not something to mail to franchisees. Because every output is a real Canva design in the team's own account, the design team can open it, tweak it and share it through Canva's normal sharing. Give franchisees the downloaded PNG/PDF files. Pair the output with the social-content skill for the caption and posting cadence that go with each variant.

Real-World Example

A 240-location franchise ran its autumn campaign this way. The design team built one master template and signed it off once. The agent validated all 240 CSV rows against the template dataset up front and caught 9 bad rows before spending an API call — two missing prices, seven cities with no hero image — and reported them instead of generating half-empty posters.

The run took about 25 minutes wall-clock, paced by the 20/min export limit, and produced 231 designs exported as PDFs plus PNGs, filed into 12 regional folders. Three locations later asked for a different photo; the design team swapped it in Canva and re-exported those three. Against three days of manual duplication, the measurable win was less the time than the error rate: zero stale prices, because no human retyped one.

Related Skills

  • canva — the integration this workflow runs on: MCP connector, Connect API OAuth, autofill, exports, folders, and the tier gates and rate limits that shape the batch
  • brand-guidelines — decide what varies per variant and what stays locked in the master template before you automate the duplication
  • social-content — captions, formats and posting cadence for the variants once the designs exist
  • csv-parse — validate and stream the source rows, so a malformed row is caught before it becomes an empty poster

Related use cases