create-structured-output
БесплатноБез исполняемых скриптовНе проверенDesign, create, inspect, update, attach, detach, preview, execute, and verify reusable Vapi Structured Outputs through public API or Server SDK workflows. Use…
от VapiAI★ 71 звезда на GitHubОб этом скилле
Vapi Structured Output Creation
Build the smallest reusable post-call extraction that represents the user's actual downstream contract. Keep definition creation, assistant attachment, execution, and result retrieval separate: success at one stage does not prove the next stage occurred.
Source and Safety Rules
- Use the configured Vapi documentation MCP when available. Otherwise use current public Vapi API documentation and API Examples. Revalidate request fields and SDK methods before final implementation.
- Use a private Vapi API key only on a trusted server. Read it from
VAPI_API_KEY; never print, request in chat, or embed it in source, client-side code, or examples. - Never invent resource IDs, call IDs, extraction fields, enum values, data-retention requirements, or customer data.
- Do not enable
compliancePlan.forceStoreOnHipaaEnabledunless the user explicitly requests it and confirms that the output cannot contain PHI or other sensitive data. - Treat call transcripts, messages, tool results, and extracted values as sensitive customer data. Minimize what is logged or reproduced.
Procedure
Choose the output mode.
- For a schema, payload, review, or implementation example, return an artifact without calling Vapi. State that nothing was saved, attached, or executed.
- For a reusable saved definition, use
POST /structured-outputonly when the user asks to create or save it and credentials are available. - For a one-call experiment that does not need a saved definition, pass a transient
structuredOutputtoPOST /structured-output/runwithpreviewEnabled: true. - Treat attachment, detachment, and execution against existing calls as separate requested actions. Do not infer them from creation alone.
Define the extraction contract.
- Identify the downstream consumer, required fields, optional fields, allowed categories, formats, and behavior when evidence is absent or ambiguous.
- Ask only for missing facts that materially change the schema. State safe assumptions for the rest.
- Split unrelated outputs when they have different consumers, retention policies, or iteration cycles. Keep one output when the fields form one stable business record.
Choose AI or regex.
- Use
type: "ai"for meaning, classification, summarization, sentiment, outcome detection, normalization, or facts expressed in varied language. - Use
type: "regex"only for deterministic transcript matching with a stable pattern. Use RE2-compatible syntax and choose a top-level schema type that matches the documented regex result: boolean, string, number/integer, or array. - Do not use regex to infer meaning. Do not use AI when a literal, stable pattern is the entire requirement.
- Use
Design the smallest useful JSON Schema.
- Include only fields the caller can provide or the call evidence can support.
- Add concise descriptions that distinguish semantically similar fields.
- Use
enumfor a closed category set,formatorpatternfor externally validated strings, and numeric bounds when the business contract defines them. - Mark a field required only when every valid call should produce it. Make conditionally available values optional instead of forcing guesses.
- Prefer a primitive schema for a single value and an object only for a cohesive record. Avoid deep nesting unless the downstream contract needs it.
- Validate the schema with a standard JSON Schema validator before sending it.
Create, inspect, or update the definition.
- Keep saved names between 1 and 40 characters.
- On create, send
nameandschema; addtype,description,regex,model, orcompliancePlanonly when intentional. - On inspect, resolve the exact resource with list filters or a verified ID, then use
GET /structured-output/{id}. Do not guess from a partial name. - On update, read the current definition first and send only fields that should change. Use
schemaOverride=trueonly when intentionally changing the schema's top-level type; otherwise do not use it to bypass schema safety. - Re-fetch after mutation and compare the requested fields. A successful HTTP status without the expected returned state is not verified success.
Attach or detach safely.
- Prefer the saved Structured Output's documented
assistantIdsrelationship for attachment. Read its currentassistantIds, add or remove exactly the resolved assistant ID, and preserve every unrelated ID. - Patch only
assistantIdson the Structured Output for this operation. Re-fetch the Structured Output and assistant; verify the relationship and the assistant'sartifactPlan.structuredOutputIdswhen returned. - If the implementation instead patches the assistant, first read the assistant and send the complete existing
artifactPlanwith onlystructuredOutputIdschanged. Preserve recording, logging, transcript, scorecard, storage, and other artifact settings.
- Prefer the saved Structured Output's documented
Установить create-structured-output в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл create-structured-output?
Design, create, inspect, update, attach, detach, preview, execute, and verify reusable Vapi Structured Outputs through public API or Server SDK workflows. Use for post-call extraction, typed call artifacts, AI-versus-regex extraction, JSON Schema design, backfilling existing calls, or retrieving structured results programmatically.
Как установить скилл create-structured-output?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-structured-output запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic