Skip to main content 首页 创作者 jeremylongshore tons-of-skills-marketplace canva-core-workflow-b
canva-core-workflow-b Execute Canva asset management, brand template autofill, and folder organization.
Use when uploading assets, autofilling brand templates with dynamic data,
or organizing designs into folders via the Connect API.
Trigger with phrases like "canva assets", "canva brand template",
"canva autofill", "canva folders", "canva upload image".
跳到安装 Skills Marketplace 发现并探索由社区构建的 Agent Skills
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace --skill canva-core-workflow-b命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
下载 Zip 下载中... 同仓库更多 Skills langchain-deploy-integration Deploy a LangChain 1.0 / LangGraph 1.0 app to Cloud Run, Vercel, or LangServe correctly — with timeouts sized for chain length, cold-start mitigation, SSE anti-buffering headers, and Secret Manager over .env. Use when prepping a first production deploy, debugging a stream that hangs behind a proxy, or diagnosing p99 latency spikes. Trigger with "langchain deploy", "langchain cloud run", "langchain vercel python", "langchain langserve", or "langchain docker".
langchain-langgraph-agents Build a correct LangGraph 1.0 ReAct agent with create_react_agent — typed tools, error propagation, recursion caps, and stop conditions that actually stop. Use when writing a first tool-calling agent, migrating from AgentExecutor or initialize_agent, or diagnosing an agent that loops on vague prompts. Trigger with "langgraph agent", "create_react_agent", "langgraph tool calling", "AgentExecutor migration", or "agent loop cost".
langchain-langgraph-human-in-loop Build LangGraph 1.0 human-in-the-loop approval flows with interrupt_before /
interrupt_after and Command(resume=...) — JSON-serializable state, clean
resume semantics, and UI wiring for approval decisions. Use when adding an
approval gate before an expensive tool call, wiring a Slack/web UI for agent
approvals, or debugging a graph that crashes on interrupt.
Trigger with "langgraph human in loop", "langgraph interrupt_before",
"langgraph approval flow", "Command resume", "langgraph HITL".
name canva-core-workflow-b description Execute Canva asset management, brand template autofill, and folder organization.
Use when uploading assets, autofilling brand templates with dynamic data,
or organizing designs into folders via the Connect API.
Trigger with phrases like "canva assets", "canva brand template",
"canva autofill", "canva folders", "canva upload image".
allowed-tools Read, Write, Edit, Bash(npm:*), Grep version 1.5.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","design","canva"] compatibility Designed for Claude Code
Canva Core Workflow B — Assets, Autofill & Folders
Overview
Secondary workflow: upload assets to Canva, autofill brand templates with dynamic data (text, images, charts), and organize content with folders. Autofill requires a Canva Enterprise organization.
Prerequisites
Completed canva-install-auth with valid access token
Scopes: asset:read, asset:write, brandtemplate:meta:read, brandtemplate:content:read, design:content:write, folder:read, folder:write
Asset Management
Upload an Asset (Binary)
import { readFileSync } from 'fs' ;
async function uploadAsset (
filePath : string ,
name : string ,
token : string
): Promise <{ id : string ; status : string }> {
const nameBase64 = Buffer .from (name).toString ('base64' );
const fileData = readFileSync (filePath);
const res = await fetch ('https://api.canva.com/rest/v1/asset-uploads' , {
: ,
: {
: ,
: ,
: . ({ : nameBase64 }),
},
: fileData,
});
(!res. ) ( );
res. ();
}
uploadJob = ( , , token);
method
'POST'
headers
'Authorization'
`Bearer ${token} `
'Content-Type'
'application/octet-stream'
'Asset-Upload-Metadata'
JSON
stringify
name_base64
body
if
ok
throw
new
Error
`Upload failed: ${res.status} `
return
json
const
await
uploadAsset
'./hero-banner.png'
'Hero Banner Q1'
Upload an Asset via URL
const { job } = await canvaAPI ('/url-asset-uploads' , token, {
method : 'POST' ,
body : JSON .stringify ({
name : 'Product Photo' ,
url : 'https://example.com/images/product-shot.jpg' ,
}),
});
Get, Update, Delete Assets
const asset = await canvaAPI (`/assets/${assetId} ` , token);
await canvaAPI (`/assets/${assetId} ` , token, {
method : 'PATCH' ,
body : JSON .stringify ({ name : 'Updated Name' , tags : ['brand' , 'q1' ] }),
});
await canvaAPI (`/assets/${assetId} ` , token, { method : 'DELETE' });
Brand Template Autofill
Step 1: List Available Brand Templates
const templates = await canvaAPI ('/brand-templates' , token);
for (const tmpl of templates.items ) {
console .log (`${tmpl.title} — ID: ${tmpl.id} ` );
}
Step 2: Get Template Dataset (Autofillable Fields)
const { dataset } = await canvaAPI (
`/brand-templates/${templateId} /dataset` , token
);
for (const [field, config] of Object .entries (dataset)) {
console .log (`Field: ${field} , Type: ${config.type } ` );
}
Step 3: Create Design from Template via Autofill
const { job } = await canvaAPI ('/autofills' , token, {
method : 'POST' ,
body : JSON .stringify ({
brand_template_id : templateId,
title : 'March Newsletter — Generated' ,
data : {
headline : {
type : 'text' ,
text : 'Spring Collection Is Here' ,
},
hero_image : {
type : 'image' ,
asset_id : uploadedAssetId,
},
price : {
type : 'text' ,
text : '$29.99' ,
},
},
}),
});
let autofillJob = job;
while (autofillJob.status === 'in_progress' ) {
await new Promise (r => setTimeout (r, 2000 ));
const poll = await canvaAPI (`/autofills/${autofillJob.id} ` , token);
autofillJob = poll.job ;
}
if (autofillJob.status === 'success' ) {
const newDesign = autofillJob.result .design ;
console .log (`Autofilled design: ${newDesign.id} ` );
console .log (`Edit: ${newDesign.urls.edit_url} ` );
}
Autofill with Chart Data const { job } = await canvaAPI ('/autofills' , token, {
method : 'POST' ,
body : JSON .stringify ({
brand_template_id : templateId,
title : 'Q1 Report' ,
data : {
sales_chart : {
type : 'chart' ,
chart_data : {
rows : [
{ cells : [{ type : 'string' , value : 'Jan' }, { type : 'number' , value : 45000 }] },
{ cells : [{ type : 'string' , value : 'Feb' }, { type : 'number' , value : 52000 }] },
{ cells : [{ type : 'string' , value : 'Mar' }, { type : 'number' , value : 61000 }] },
],
},
},
},
}),
});
Folder Management
const { folder } = await canvaAPI ('/folders' , token, {
method : 'POST' ,
body : JSON .stringify ({
name : 'Q1 Campaign Assets' ,
parent_folder_id : 'root' ,
}),
});
console .log (`Folder created: ${folder.id} ` );
const items = await canvaAPI (`/folders/${folder.id} /items` , token);
await canvaAPI ('/folders/move' , token, {
method : 'PATCH' ,
body : JSON .stringify ({
item_id : designId,
to_folder_id : folder.id ,
}),
});
Error Handling Error Cause Solution 400 Design title invalid Title empty or > 255 chars Validate input 403 Forbidden Not Enterprise org (autofill) Requires Canva Enterprise 404 Not Found Template ID doesn't exist Verify template ID file_too_bigAsset exceeds size limit Compress or resize import_failedUnsupported file format Check supported formats autofill_errorField name mismatch Check dataset first
Resources
Next Steps For common errors, see canva-common-errors.