int-reference

bởi microsoft

Bảng tham chiếu cho việc soạn thảo YAML trong Copilot Studio: trình kích hoạt, hành động, biến, thực thể, hàm Power Fx, mẫu. Được tải sẵn bởi tác giả và khắc phục sự cố…

npx skills add https://github.com/microsoft/skills-for-copilot-studio --skill int-reference

Copilot Studio YAML Reference

Core File Types

FilePurpose
agent.mcs.ymlMain agent metadata (kind: GptComponentMetadata)
settings.mcs.ymlAgent settings and configuration
connectionreferences.mcs.ymlConnector references
topics/*.mcs.ymlConversation topics (kind: AdaptiveDialog)
actions/*.mcs.ymlConnector-based actions (kind: TaskDialog)
knowledge/*.mcs.ymlKnowledge sources (kind: KnowledgeSourceConfiguration)
variables/*.mcs.ymlGlobal variables (kind: GlobalVariableComponent)
agents/*.mcs.ymlChild agents (kind: AgentDialog)

Trigger Types

Topics with OnRecognizedIntent have two routing mechanisms — which one matters depends on the orchestration mode:

  • modelDescription — used by generative orchestration (GenerativeActionsEnabled: true). The AI orchestrator reads this to decide routing. Primary mechanism for generative agents.
  • Trigger phrases (triggerQueries) — used by classic orchestration. Pattern-matched against the user's utterance. Secondary hints when generative orchestration is enabled.

System triggers (OnConversationStart, OnUnknownIntent, OnError, etc.) fire automatically and don't use either mechanism.

KindPurpose
OnRecognizedIntentTrigger phrases matched
OnConversationStartConversation begins
OnUnknownIntentNo topic matched (fallback)
OnEscalateUser requests human agent
OnErrorError handling
OnSystemRedirectTriggered by redirect only
OnSelectIntentMultiple topics matched (disambiguation)
OnSignInAuthentication required
OnToolSelectedChild agent invocation
OnKnowledgeRequestedCustom knowledge source search triggered (YAML-only, no UI)
OnGeneratedResponseIntercept AI-generated response before sending
OnOutgoingMessageNon-functional (2026-03-15) — exists in schema but does not fire at runtime. Do not use.

YAML-Only Features

These features work at runtime but are not visible in the Copilot Studio UI. Warn users that UI edits may silently remove them.

FeatureNotes
triggerCondition on knowledge sourcesThe UI only exposes this as an on/off toggle (=false to exclude from UniversalSearchTool). Arbitrary Power Fx expressions (e.g., =Global.UserDepartment = "HR") work at runtime but can only be set via YAML. Use with caution. (2026-03-16)

Action Types

KindPurpose
SendActivitySend a message
QuestionAsk user for input
SetVariableSet/compute a variable (Power Fx expression, prefix =)
SetTextVariableSet a text variable using template interpolation ({}). Useful for converting non-text types (e.g., Number) to text: "You have {Topic.Count} items"
ConditionGroupBranching logic
BeginDialogCall another topic
ReplaceDialogReplace current topic
EndDialogEnd current topic
CancelAllDialogsCancel all topics
ClearAllVariablesClear variables
SearchAndSummarizeContentGenerative answers (grounded in knowledge)
AnswerQuestionWithAIAI answer (conversation history + general knowledge only)
EditTableModify a collection
CSATQuestionCustomer satisfaction
LogCustomTelemetryEventLogging
OAuthInputSign-in prompt
SearchKnowledgeSourcesSearch knowledge sources (returns raw results, no AI summary)
CreateSearchQueryAI-generated search query from user input

Connector Actions (TaskDialog)

Connector actions (kind: TaskDialog) invoke external connector operations. They are stored in actions/ and require a connection reference in connectionreferences.mcs.yml.

Use /add-action to create new actions from available connectors. The schema describes the structural properties of TaskDialog and InvokeConnectorTaskAction, but the specific inputs and outputs for each connector operation are connector-specific — use the connector lookup script (connector-lookup.bundle.js) to get the full operation details.

Action Structure

FieldPurpose
kind: TaskDialogIdentifies this as a connector action
inputsInputs: AutomaticTaskInput (AI-provided) or ManualTaskInput (fixed value)
modelDisplayNameDisplay name for AI orchestrator routing
modelDescriptionDescription for AI orchestrator routing
outputsOutput property names returned by the connector
action.kindAlways InvokeConnectorTaskAction for connector actions
action.connectionReferenceLogical name of the connection (registered in connectionreferences.mcs.yml)
action.connectionProperties.modeMaker (maker's credentials) or Invoker (end user's credentials)
action.operationIdThe connector's specific operation identifier
outputModeUsually All — exports all operation outputs

Input Types

Input KindUse WhenNotes
AutomaticTaskInputThe AI orchestrator should provide the value based on contextIncludes description for the AI to understand what to provide
ManualTaskInputA fixed/hardcoded value (e.g., timezone, folder path)Can only hardcode strings. Non-string values (IDs, enums) should be reviewed by the user after pushing

$-Prefixed Property Names (SharePoint, OData)

Some connectors (notably SharePoint) use OData parameters like $filter, $orderby, $top. These require special quoting in TaskDialog YAML — both single and double quotes:

# TaskDialog (actions/*.mcs.yml) — CORRECT
- kind: ManualTaskInput
  propertyName: "'$filter'"
  value: "Status eq 'Active'"

"'$filter'" means: the outer "" are YAML string delimiters; the inner '' are part of the literal value sent to the runtime. Using $filter, "$filter", or '$filter' alone will fail.

InvokeConnectorAction (inline in topics) uses a different format — the parameters/ prefix with no inner single quotes:

# InvokeConnectorAction (inside topics) — CORRECT
- kind: InvokeConnectorAction
  operationId: GetItems
  input:
    parameters/$filter: "Status eq 'Active'"

Never mix these two formats.

System Variables

VariableDescription
System.Bot.NameAgent's name
System.Activity.TextUser's current message
System.Conversation.IdConversation identifier
System.Conversation.InTestModeTrue if in test chat
System.FallbackCountNumber of consecutive fallbacks
System.Error.MessageError message
System.Error.CodeError code
System.SignInReasonWhy sign-in was triggered
System.Recognizer.IntentOptionsMatched intents for disambiguation
System.Recognizer.SelectedIntentUser's selected intent
System.SearchQueryAI-rewritten search query (available in OnKnowledgeRequested)
System.KeywordSearchQueryKeyword version of search query (available in OnKnowledgeRequested)
System.SearchResultsTable to populate with custom search results — schema: Content, ContentLocation, Title (available in OnKnowledgeRequested)
System.ContinueResponseSet to false in OnGeneratedResponse to suppress auto-send
System.Response.FormattedTextThe AI-generated response text (available in OnGeneratedResponse)

Variable Scopes

PrefixScopeLifetime
Topic.<name>Topic variableCurrent topic only
Global.<name>Global variableEntire conversation (defined in variables/ folder)
System.<name>System variableBuilt-in, read-only

Global variables are defined as YAML files in variables/<Name>.mcs.yml (kind: GlobalVariableComponent). aIVisibility accepts UseInAIContext (orchestrator can read and reason about the value) or Hidden (orchestrator unaware — use for flags and internal bookkeeping).

Prebuilt Entities

EntityUse Case
BooleanPrebuiltEntityYes/No questions
NumberPrebuiltEntityNumeric inputs
StringPrebuiltEntityFree text
DateTimePrebuiltEntityDate/time
EMailPrebuiltEntityEmail addresses

Power Fx Expression Reference

Only use functions from the supported list below. Copilot Studio supports a subset of Power Fx — using unsupported functions will cause errors.

# Arithmetic
value: =Text(Topic.number1 + Topic.number2)

# Date formatting
value: =Text(Now(), DateTimeFormat.UTC)

# Conditions
condition: =System.FallbackCount < 3
condition: =Topic.EndConversation = true
condition: =!IsBlank(Topic.Answer)
condition: =System.Conversation.InTestMode = true
condition: =System.SignInReason = SignInReason.SignInRequired
condition: =System.Recognizer.SelectedIntent.TopicId = "NoTopic"

# String interpolation in activity (uses {} without =)
activity: "Error: {System.Error.Message}"
activity: "Error code: {System.Error.Code}, Time (UTC): {Topic.CurrentTime}"

# Record creation
value: "={ DisplayName: Topic.NoneOfTheseDisplayName, TopicId: \"NoTopic\", TriggerId: \"NoTrigger\", Score: 1.0 }"

# Variable initialization (first assignment uses init: prefix)
variable: init:Topic.UserEmail
variable: init:Topic.CurrentTime
# Subsequent assignments omit init:
variable: Topic.UserEmail

Supported Power Fx Functions

These are all the Power Fx functions available in Copilot Studio. Do NOT use any function not on this list.

Math: Abs, Acos, Acot, Asin, Atan, Atan2, Cos, Cot, Degrees, Exp, Int, Ln, Log, Mod, Pi, Power, Radians, Rand, RandBetween, Round, RoundDown, RoundUp, Sin, Sqrt, Sum, Tan, Trunc

Text: Char, Concat, Concatenate, EncodeHTML, EncodeUrl, EndsWith, Find, Left, Len, Lower, Match, MatchAll, Mid, PlainText, Proper, Replace, Right, Search, Split, StartsWith, Substitute, Text, Trim, TrimEnds, UniChar, Upper, Value

Date/Time: Date, DateAdd, DateDiff, DateTime, DateTimeValue, DateValue, Day, EDate, EOMonth, Hour, IsToday, Minute, Month, Now, Second, Time, TimeValue, TimeZoneOffset, Today, Weekday, WeekNum, Year

Logical: And, Coalesce, If, IfError, IsBlank, IsBlankOrError, IsEmpty, IsError, IsMatch, IsNumeric, IsType, Not, Or, Switch

Table: AddColumns, Column, ColumnNames, Count, CountA, CountIf, CountRows, Distinct, DropColumns, Filter, First, FirstN, ForAll, Index, Last, LastN, LookUp, Patch, Refresh, RenameColumns, Sequence, ShowColumns, Shuffle, Sort, SortByColumns, Summarize, Table

Aggregate: Average, Max, Min, StdevP, VarP

Type conversion: AsType, Boolean, Dec2Hex, Decimal, Float, GUID, Hex2Dec, JSON, ParseJSON

Other: Blank, ColorFade, ColorValue, Error, Language, OptionSetInfo, RGBA, Trace, With

Available Templates

Templates are bundled with the plugin. Skills that use templates reference them via ${CLAUDE_SKILL_DIR}/../../templates/.

TemplateFilePattern
Greetingtemplates/topics/greeting.topic.mcs.ymlOnConversationStart welcome
Fallbacktemplates/topics/fallback.topic.mcs.ymlOnUnknownIntent with escalation
Arithmetictemplates/topics/arithmeticsum.topic.mcs.ymlInputs/outputs with computation
Question + Branchingtemplates/topics/question-topic.topic.mcs.ymlQuestion with ConditionGroup
Knowledge Searchtemplates/topics/search-topic.topic.mcs.ymlSearchAndSummarizeContent fallback
Custom Knowledge Sourcetemplates/topics/custom-knowledge-source.topic.mcs.ymlOnKnowledgeRequested with custom API (YAML-only)
Remove Citationstemplates/topics/remove-citations.topic.mcs.ymlOnGeneratedResponse citation stripping
Authenticationtemplates/topics/auth-topic.topic.mcs.ymlOnSignIn with OAuthInput
Error Handlertemplates/topics/error-handler.topic.mcs.ymlOnError with telemetry
Disambiguationtemplates/topics/disambiguation.topic.mcs.ymlOnSelectIntent flow
Agenttemplates/agents/agent.mcs.ymlGptComponentMetadata
Connector Action (generic)templates/actions/connector-action.mcs.ymlTaskDialog with connector (structural reference)
Knowledge (Public Website)templates/knowledge/public-website.knowledge.mcs.ymlPublicSiteSearchSource
Knowledge (SharePoint)templates/knowledge/sharepoint.knowledge.mcs.ymlSharePointSearchSource
Global Variabletemplates/variables/global-variable.variable.mcs.ymlGlobalVariableComponent

Thêm skills từ microsoft

oss-growth
microsoft
Cá tính tăng trưởng OSS
official
microsoft-foundry
microsoft
Triển khai, đánh giá và quản lý các agent Foundry từ đầu đến cuối: xây dựng Docker, đẩy lên ACR, tạo agent lưu trữ/agent nhắc nhở, khởi động container, đánh giá hàng loạt, đánh giá liên tục, quy trình tối ưu hóa nhắc nhở, agent.yaml, quản lý bộ dữ liệu từ dấu vết. SỬ DỤNG CHO: triển khai agent lên Foundry, agent lưu trữ, tạo agent, gọi agent, đánh giá agent, chạy đánh giá hàng loạt, đánh giá liên tục, giám sát liên tục, trạng thái đánh giá liên tục, tối ưu hóa nhắc nhở, cải thiện nhắc nhở, trình tối
officialdevelopmentdevops
azure-ai
microsoft
Sử dụng cho Azure AI: Tìm kiếm, Giọng nói, OpenAI, Xử lý tài liệu. Hỗ trợ tìm kiếm, tìm kiếm vector/kết hợp, chuyển giọng nói thành văn bản, chuyển văn bản thành giọng nói, phiên âm, OCR. KHI: AI Search, truy vấn tìm kiếm, tìm kiếm vector, tìm kiếm kết hợp, tìm kiếm ngữ nghĩa, chuyển giọng nói thành văn bản, chuyển văn bản thành giọng nói, phiên âm, OCR, chuyển đổi văn bản thành giọng nói.
officialdevelopmentapi
azure-deploy
microsoft
Thực thi triển khai Azure cho các ứng dụng ĐÃ ĐƯỢC CHUẨN BỊ có sẵn tệp .azure/deployment-plan.md và tệp cơ sở hạ tầng. KHÔNG sử dụng kỹ năng này khi người dùng yêu cầu TẠO ứng dụng mới — hãy sử dụng azure-prepare thay thế. Kỹ năng này chạy các lệnh azd up, azd deploy, terraform apply và az deployment với khả năng phục hồi lỗi tích hợp. Yêu cầu .azure/deployment-plan.md từ azure-prepare và trạng thái đã xác thực từ azure-validate. KHI: "chạy azd up", "chạy azd deploy", "thực thi triển khai",...
officialdevopsaws
azure-storage
microsoft
Dịch vụ Lưu trữ Azure bao gồm Blob Storage, File Shares, Queue Storage, Table Storage và Data Lake. Trả lời các câu hỏi về các tầng truy cập lưu trữ (hot, cool, cold, archive), thời điểm sử dụng từng tầng và so sánh các tầng. Cung cấp lưu trữ đối tượng, chia sẻ tệp SMB, nhắn tin không đồng bộ, NoSQL key-value và phân tích dữ liệu lớn. Bao gồm quản lý vòng đời. SỬ DỤNG CHO: blob storage, file shares, queue storage, table storage, data lake, tải lên tệp, tải xuống blob, tài khoản lưu trữ, các tầng truy cập,...
officialdevelopmentdatabase
azure-diagnostics
microsoft
Gỡ lỗi các vấn đề sản xuất trên Azure bằng AppLens, Azure Monitor, tình trạng tài nguyên và phân loại an toàn. KHI: gỡ lỗi vấn đề sản xuất, khắc phục sự cố app service, app service CPU cao, lỗi triển khai app service, khắc phục sự cố container apps, khắc phục sự cố functions, khắc phục sự cố AKS, kubectl không kết nối được, lỗi kube-system/CoreDNS, pod đang chờ, crashloop, node chưa sẵn sàng, lỗi nâng cấp, phân tích nhật ký, KQL, thông tin chi tiết, lỗi kéo image, vấn đề khởi động nguội, lỗi health probe,...
officialdevopsdevelopment
azure-prepare
microsoft
Chuẩn bị ứng dụng Azure để triển khai (hạ tầng Bicep/Terraform, azure.yaml, Dockerfiles). Sử dụng để tạo/hiện đại hóa hoặc tạo+triển khai; không dùng cho di chuyển đa đám mây (sử dụng azure-cloud-migrate). KHÔNG DÙNG CHO: ứng dụng copilot-sdk (sử dụng azure-hosted-copilot-sdk). KHI: "tạo ứng dụng", "xây dựng ứng dụng web", "tạo API", "tạo HTTP API serverless", "tạo frontend", "tạo backend", "xây dựng dịch vụ", "hiện đại hóa ứng dụng", "cập nhật ứng dụng", "thêm xác thực", "thêm bộ nhớ đệm", "lưu trữ trên Azure", "tạo và...
officialdevelopmentdevops
azure-validate
microsoft
Kiểm tra trước khi triển khai để đảm bảo sẵn sàng trên Azure. Chạy kiểm tra sâu về cấu hình, hạ tầng (Bicep hoặc Terraform), phân công vai trò RBAC, quyền của managed identity và các điều kiện tiên quyết trước khi triển khai. KHI NÀO: xác thực ứng dụng của tôi, kiểm tra mức độ sẵn sàng triển khai, chạy kiểm tra trước khi triển khai, xác minh cấu hình, kiểm tra xem đã sẵn sàng triển khai chưa, xác thực azure.yaml, xác thực Bicep, kiểm tra trước khi triển khai, khắc phục lỗi triển khai, xác thực Azure Functions, xác thực function app, xác th
officialdevopstesting