Agent Skill · Microsoft 365 Copilot

add-node

Add or modify a node in an existing Copilot Studio topic. Use when the user asks to add a question, message, condition, variable, or other node to a topic. Do NOT use this for generative answers or knowledge search — use /add-generative-answers instead.

Provider: Microsoft 365 Copilot Path in repo: skills/add-node/SKILL.md

Skill body

Add Node to Topic

Add a new node to an existing Copilot Studio topic, or modify an existing one.

In Copilot Studio, the elements inside a topic’s actions array are nodes (SendActivity, Question, ConditionGroup, etc.). These are different from actions (actions/*.mcs.yml), which are connector-based TaskDialogs. This skill handles nodes within topics.

For generative answers (SearchAndSummarizeContent, AnswerQuestionWithAI), use the /add-generative-answers skill instead — it has the specific patterns, follow-up ConditionGroup logic, and disambiguation guidance needed to set them up correctly.

Instructions

  1. Auto-discover the agent directory:
    Glob: **/agent.mcs.yml
    

    NEVER hardcode an agent name.

  2. Parse the arguments to identify:
    • The node type (SendActivity, Question, SetVariable, ConditionGroup, etc.)
    • The target topic file
    • If modifying an existing node, which node to modify
  3. Look up the node schema:
    node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js resolve <NodeType>
    
  4. Read the existing topic file to understand its current structure.

  5. Generate or modify the node with:
    • A unique ID (format: <nodeType>_<6-8 random alphanumeric>)
    • All required properties from the schema
    • Appropriate default values
  6. Determine the correct insertion point in the actions array and present the plan to the user before writing.

Common Node Types

Node Purpose Key Properties
SendActivity Send message kind, id, activity
Question Ask user input kind, id, variable, prompt, entity
SetVariable Set/compute value kind, id, variable, value
SetTextVariable Set text with interpolation (YAML-only, no canvas) kind, id, variable, value
ConditionGroup Branching logic kind, id, conditions
BeginDialog Call another topic kind, id, dialog
EndDialog End topic kind, id
CancelAllDialogs Cancel all topics kind, id

Generative Orchestration Guidelines

When the agent has GenerativeActionsEnabled: true:

Power Fx Quick Reference

Example: Adding a Question Node

- kind: Question
  id: question_k7xPm2
  variable: init:Topic.UserName
  prompt: What is your name?
  entity: StringPrebuiltEntity
  alwaysPrompt: true
  interruptionPolicy:
    allowInterruption: false

Important Notes

Skill frontmatter

user-invocable: false argument-hint: to allowed-tools: Bash(node *schema-lookup.bundle.js *), Read, Write, Edit, Glob context: fork agent: copilot-studio-author

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/add-node"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.