为 Power Apps 代码应用添加 Copilot Studio 连接器,便于调用智能体与集成回复。
该技能材料显示其为开源的纯提示型 Skill,本身不直接要求密钥、远程端点或本机代码执行能力,整体风险较低。需注意其用途是指导开发者为 Power Apps 接入 Microsoft Copilot Studio 连接器,实际接入后会涉及对微软服务的调用与业务数据传递,但这些能力未在该 Skill 自身材料中表现为异常红旗。
材料与客观检查项均表明该 Skill 本身不需要密钥或环境变量;README 仅提到复用现有 Power Apps/Copilot Studio connection ID,并未要求用户提供额外 token,也未出现收集、回传或滥用凭证的迹象。
该 Skill 被判定为 prompt-only,未声明自身连接任何远程主机;文档中仅描述后续人工配置会涉及 make.powerapps.com 与 api.powerplatform.com 等微软相关服务,但未显示此 Skill 自身执行数据外发。
从提供材料看,该 Skill 主要输出操作指引与命令示例,例如 npx power-apps add-data-source;没有证据表明 Skill 自身会在本机启动进程、执行代码或获得额外系统权限。
材料未显示该 Skill 自身读取、写入或上传本地文件/数据;README 提到检查 power.config.json、memory-bank.md 和生成的服务文件,属于说明性引用,未体现其自动访问数据或请求过度授权。
来源为 GitHub 上的微软 power-platform-skills 开源仓库,可审计性是正面因素;但许可证未声明、社区 star 为 0、维护状态未知,且 README 含对共享指令文件与上下文流程的引用,仍建议在采用前人工复核仓库内容与最近更新情况。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "add-mcscopilot" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/code-apps/skills/add-mcscopilot/SKILL.md 2. 保存为 ~/.claude/skills/add-mcscopilot/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为我的 Power Apps 代码应用添加 Microsoft Copilot Studio 连接器,并提供示例代码,用于向名为 SupportAgent 的智能体发送用户问题并显示回复。
包含连接器接入步骤、配置说明,以及调用智能体并渲染回复的示例代码。
帮我在 Power Apps 代码应用中接入 Copilot Studio 连接器,根据表单输入动态拼接提示词,发送给 SalesAgent,并返回结构化结果。
生成可复用的调用逻辑,支持动态提示词构造、请求发送与结构化响应处理。
请添加 Copilot Studio 连接器,并示范如何在 Power Apps 代码应用中处理智能体返回的成功、空结果和错误状态。
提供连接器集成方案,以及覆盖常见响应状态的错误处理与界面反馈示例。
📋 Shared Instructions: shared-instructions.md - Cross-cutting concerns.
Check for memory-bank.md per shared-instructions.md.
First, find the connection ID (see connector-reference.md):
Run the /list-connections skill. Find the Microsoft Copilot Studio connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from power.config.json or a prior step): https://make.powerapps.com/environments/<environment-id>/connections → + New connection → search for the connector → Create.
npx power-apps add-data-source -a microsoftcopilotstudio -c <connection-id>
Ask the user which Copilot Studio agent they want to invoke and what operations they need.
Agent Setup Prerequisites (manual steps the user must complete in Copilot Studio):
https://...api.powerplatform.com/copilotstudio/dataverse-backed/authenticated/bots/cr3e1_myAgent/conversations?... — the agent name is cr3e1_myAgent.ExecuteCopilotAsyncV2 -- execute an agent and wait for the response:
Use the ExecuteCopilotAsyncV2 operation (path: /proactivecopilot/executeAsyncV2). This is the only endpoint that reliably returns agent responses synchronously. It is the same endpoint used by Power Automate's "Execute Agent and wait" action.
const result = await MicrosoftCopilotStudioService.ExecuteCopilotAsyncV2({
message: "Your prompt or data here", // Can be a JSON string
notificationUrl: "https://notificationurlplaceholder" // Required by API but unused; any URL works
});
// Response structure:
// result.responses — Array of response strings from the agent
// result.conversationId — The conversation ID
// result.lastResponse — The last response from the agent
// result.completed — Boolean indicating if the agent finished
Important: Agents often return responses as JSON strings. Parse the responses array to extract meaningful data:
const agentResponse = result.responses?.[0];
if (agentResponse) {
const parsed = JSON.parse(agentResponse);
// Extract specific fields, e.g., parsed.trend_summary
}
Use Grep to find specific methods in the generated service file (generated files can be very large — see connector-reference.md).
/execute) -- fire-and-forget, only returns ConversationId, not the actual response. Do NOT use this./executeAsync) -- returns 502 "Cannot read server response" errors. Do NOT use this./conversations/{ConversationId}) -- only works after /execute, which doesn't provide responses. Do NOT use this.conversationId, ConversationId, conversationID.npm run build
Fix TypeScript errors before proceeding. Do NOT deploy yet.
Update memory-bank.md with: connector added, agent name configured, configured operations, build status.
对已部署的 Power Pages 站点执行安全扫描并生成通俗风险摘要。
帮助你快速搭建 Power Platform 管道,实现 Power Pages 自动化部署。
检查并配置 Power Pages 站点安全响应头,定位风险并指导修复设置。
对 Power Pages 站点执行端到端安全审查,并汇总生成完整 HTML 报告。
用于对已部署的 Power Pages 网站进行运行时浏览、爬取与接口验证测试。
帮助你将 Power Automate 云端流程接入 Power Pages 站点并生成调用代码
为 Power Apps 代码应用快速接入任意 Power Platform 连接器。
为 Power Apps 代码应用添加 Teams 连接器,实现消息发送与频道协作集成。
为 Power Apps 代码应用接入 Azure DevOps 连接器,便于查询工单、提报缺陷与管理流水线。
为 Power Apps 代码应用添加 Excel Online 连接器,便于读写 OneDrive 或 SharePoint 中的表格数据。
为 Power Apps 代码应用接入 SharePoint,支持列表、文档与站点集成
为 Power Apps 代码应用接入 Office 365 Outlook,实现邮件、日历与事件管理。