Loading...
Loading...
Adds Microsoft Copilot Studio connector to a Power Apps code app. Use when invoking Copilot Studio agents, sending prompts to agents, or integrating agent responses.
npx skill4agent add microsoft/power-platform-skills add-mcscopilotmemory-bank.md/list-connectionspower.config.jsonhttps://make.powerapps.com/environments/<environment-id>/connectionspwsh -NoProfile -Command "pac code add-data-source -a microsoftcopilotstudio -c <connection-id>"https://...api.powerplatform.com/copilotstudio/dataverse-backed/authenticated/bots/cr3e1_myAgent/conversations?...cr3e1_myAgentExecuteCopilotAsyncV2/proactivecopilot/executeAsyncV2const 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 finishedresponsesconst agentResponse = result.responses?.[0];
if (agentResponse) {
const parsed = JSON.parse(agentResponse);
// Extract specific fields, e.g., parsed.trend_summary
}Grep/executeConversationId/executeAsync/conversations/{ConversationId}/executeconversationIdConversationIdconversationIDnpm run buildmemory-bank.md