miro-core-workflow-b
Manage Miro connectors, images, embeds, app cards, and document items via REST API v2. Use for visual workflows, embedding content, and building rich board layouts. Trigger with phrases like "miro connectors", "miro embed", "miro app card", "miro image upload", "connect miro items".
What this skill does
# Miro Core Workflow B — Connectors, Embeds & Rich Items
## Overview
Advanced item operations: connectors between items, image uploads, embedded content, app cards for custom integrations, and document items — all via the Miro REST API v2.
## Prerequisites
- Completed `miro-core-workflow-a` (boards and basic items)
- Access token with `boards:read` and `boards:write` scopes
## Connectors
Connectors are lines that visually link two items on a board. They replaced "lines" from the v1 API.
### Create a Connector
```typescript
// POST https://api.miro.com/v2/boards/{board_id}/connectors
const connector = await miroFetch(`/v2/boards/${boardId}/connectors`, 'POST', {
startItem: {
id: startItemId,
position: {
x: 1.0, // 0.0–1.0 relative position on item boundary
y: 0.5, // 0.0 = top/left, 1.0 = bottom/right
},
// or use snapTo: 'right' | 'left' | 'top' | 'bottom' | 'auto'
},
endItem: {
id: endItemId,
snapTo: 'left',
},
captions: [
{
content: 'depends on',
position: 0.5, // 0.0–1.0 along the connector line
textAlignVertical: 'top', // 'top' | 'middle' | 'bottom'
},
],
shape: 'curved', // 'straight' | 'elbowed' | 'curved'
style: {
color: '#1a1a2e',
fontSize: 12,
strokeColor: '#1a1a2e',
strokeWidth: 2,
strokeStyle: 'normal', // 'normal' | 'dashed' | 'dotted'
startStrokeCap: 'none', // 'none' | 'stealth' | 'diamond' | 'filled_diamond' | etc.
endStrokeCap: 'stealth', // arrow-style endpoint
},
});
console.log(`Connector ${connector.id}: ${startItemId} → ${endItemId}`);
```
### List All Connectors on a Board
```typescript
// GET https://api.miro.com/v2/boards/{board_id}/connectors
const connectors = await miroFetch(`/v2/boards/${boardId}/connectors?limit=50`);
for (const c of connectors.data) {
console.log(`${c.startItem.id} --[${c.captions?.[0]?.content ?? ''}]--> ${c.endItem.id}`);
}
```
### Update a Connector
```typescript
// PATCH https://api.miro.com/v2/boards/{board_id}/connectors/{connector_id}
await miroFetch(`/v2/boards/${boardId}/connectors/${connectorId}`, 'PATCH', {
captions: [{ content: 'blocks', position: 0.5 }],
style: { strokeColor: '#ff0000', endStrokeCap: 'filled_triangle' },
});
```
### Delete a Connector
```typescript
// DELETE https://api.miro.com/v2/boards/{board_id}/connectors/{connector_id}
await miroFetch(`/v2/boards/${boardId}/connectors/${connectorId}`, 'DELETE');
```
## Images
### Upload Image from URL
```typescript
// POST https://api.miro.com/v2/boards/{board_id}/images
const image = await miroFetch(`/v2/boards/${boardId}/images`, 'POST', {
data: {
url: 'https://example.com/architecture-diagram.png',
title: 'System Architecture',
},
position: { x: 500, y: 0 },
geometry: { width: 400 }, // height auto-calculated from aspect ratio
});
```
### Upload Image from Base64 Data URL
```typescript
import fs from 'fs';
// Read file and convert to data URL
const imageBuffer = fs.readFileSync('diagram.png');
const base64 = imageBuffer.toString('base64');
const dataUrl = `data:image/png;base64,${base64}`;
const image = await miroFetch(`/v2/boards/${boardId}/images`, 'POST', {
data: { url: dataUrl, title: 'Local Diagram' },
position: { x: 0, y: 400 },
});
```
## Embed Items
Embed external content (URLs rendered as previews).
```typescript
// POST https://api.miro.com/v2/boards/{board_id}/embeds
const embed = await miroFetch(`/v2/boards/${boardId}/embeds`, 'POST', {
data: {
url: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
mode: 'inline', // 'inline' | 'modal'
previewUrl: '', // optional custom preview image
},
position: { x: -400, y: 400 },
geometry: { width: 480, height: 270 },
});
```
## App Cards
App cards display custom data from your integration, with structured fields and status indicators.
```typescript
// POST https://api.miro.com/v2/boards/{board_id}/app_cards
const appCard = await miroFetch(`/v2/boards/${boardId}/app_cards`, 'POST', {
data: {
title: 'JIRA-1234: Fix login bug',
description: 'Users unable to log in after password reset',
status: 'connected', // 'disconnected' | 'connected' | 'disabled'
fields: [
{ value: 'High', iconUrl: '', fillColor: '#ff0000', iconShape: 'round', tooltip: 'Priority' },
{ value: 'In Progress', fillColor: '#ffd700', iconShape: 'square', tooltip: 'Status' },
{ value: 'John Doe', tooltip: 'Assignee' },
],
},
style: { cardTheme: '#2d9bf0' },
position: { x: 600, y: 200 },
});
```
### Update App Card Status
```typescript
// PATCH https://api.miro.com/v2/boards/{board_id}/app_cards/{item_id}
await miroFetch(`/v2/boards/${boardId}/app_cards/${appCardId}`, 'PATCH', {
data: {
status: 'connected',
fields: [
{ value: 'Done', fillColor: '#00c853', tooltip: 'Status' },
],
},
});
```
## Document Items
```typescript
// POST https://api.miro.com/v2/boards/{board_id}/documents
const doc = await miroFetch(`/v2/boards/${boardId}/documents`, 'POST', {
data: {
url: 'https://example.com/spec.pdf',
title: 'Technical Specification v2',
},
position: { x: -600, y: 0 },
});
```
## Building a Visual Workflow
Complete example: Kanban-style board with frames, cards, and connectors.
```typescript
async function buildKanbanBoard(boardId: string) {
// Create column frames
const todoFrame = await miroFetch(`/v2/boards/${boardId}/frames`, 'POST', {
data: { title: 'To Do', format: 'custom' },
position: { x: 0, y: 0 },
geometry: { width: 400, height: 800 },
});
const doingFrame = await miroFetch(`/v2/boards/${boardId}/frames`, 'POST', {
data: { title: 'In Progress', format: 'custom' },
position: { x: 500, y: 0 },
geometry: { width: 400, height: 800 },
});
const doneFrame = await miroFetch(`/v2/boards/${boardId}/frames`, 'POST', {
data: { title: 'Done', format: 'custom' },
position: { x: 1000, y: 0 },
geometry: { width: 400, height: 800 },
});
// Add cards inside frames
const card1 = await miroFetch(`/v2/boards/${boardId}/cards`, 'POST', {
data: { title: 'Design API schema', description: 'OpenAPI 3.1 spec' },
position: { x: 0, y: -200 }, // Inside todo frame
parent: { id: todoFrame.id },
});
const card2 = await miroFetch(`/v2/boards/${boardId}/cards`, 'POST', {
data: { title: 'Implement auth', description: 'OAuth 2.0 flow' },
position: { x: 500, y: -200 },
parent: { id: doingFrame.id },
});
// Connect cards to show dependency
await miroFetch(`/v2/boards/${boardId}/connectors`, 'POST', {
startItem: { id: card1.id, snapTo: 'right' },
endItem: { id: card2.id, snapTo: 'left' },
captions: [{ content: 'blocks' }],
style: { endStrokeCap: 'stealth', strokeStyle: 'dashed' },
});
}
```
## Error Handling
| Error | Status | Cause | Solution |
|-------|--------|-------|----------|
| `connectorStartItemNotFound` | 404 | Start item deleted | Verify both items exist |
| `connectorEndItemNotFound` | 404 | End item deleted | Verify both items exist |
| `invalidImageUrl` | 400 | URL inaccessible | Check URL is publicly reachable |
| `imageTooLarge` | 400 | File exceeds size limit | Resize image before upload |
| `embedUrlNotSupported` | 400 | URL cannot be embedded | Check Miro's supported embed providers |
## Resources
- [Work with Connectors](https://developers.miro.com/docs/work-with-connectors)
- [Create Connector](https://developers.miro.com/reference/create-connector)
- [App Card Use Cases](https://developers.miro.com/docs/app-card-use-cases)
- [Create Image from Data URL](https://developers.miro.com/docs/create-an-image-from-a-data-url-source)
## Next Steps
For common errors and troubleshooting, see `miro-common-errors`.
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.