Logo van New Topic

New Topic

Organisatie
microsoft
new-topic

Create a new Copilot Studio topic YAML file. Use when the user asks to create a new topic, conversation flow, or dialog for their agent.

Overzicht

Uitgevermicrosoft
Repositoryskills-for-copilot-studio
Skillnaamnew-topic
Sterren
478
Forks
101
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door microsoft op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill New Topic in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/microsoft/skills-for-copilot-studio/tree/main/skills/new-topic
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/microsoft/skills-for-copilot-studio.git /tmp/skills-for-copilot-studio
mkdir -p .claude/skills
cp -r /tmp/skills-for-copilot-studio/skills/new-topic .claude/skills/new-topic
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel New Topic in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt New Topic automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is New Topic niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Create New Topic

Generate a new Copilot Studio topic YAML file based on user requirements.

Instructions

  1. Auto-discover the agent directory:

    Glob: **/agent.mcs.yml

    If multiple agents found, ask which one. NEVER hardcode an agent name.

  2. Check for matching templates in ${CLAUDE_SKILL_DIR}/../../templates/topics/ first:

    • greeting.topic.mcs.yml — OnConversationStart greeting
    • fallback.topic.mcs.yml — OnUnknownIntent fallback with escalation
    • arithmeticsum.topic.mcs.yml — Topic with inputs/outputs and computation
    • question-topic.topic.mcs.yml — Question with branching logic
    • search-topic.topic.mcs.yml — Generative answers from knowledge
    • auth-topic.topic.mcs.yml — Authentication flow
    • error-handler.topic.mcs.yml — Error handling
    • disambiguation.topic.mcs.yml — Multiple topics matched If a template matches, use it as the starting point.
  3. MANDATORY: Verify ALL kind: values against the schema before writing them:

    bash
    node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js kinds                    # List all valid kind values
    node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js resolve AdaptiveDialog   # Resolve trigger structure
    node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js resolve <TriggerType>    # Resolve specific trigger
    node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js search <ActionKind>      # Verify an action kind exists

    NEVER write a kind: value you haven't verified exists in the schema. This is the #1 source of hallucination errors. If schema-lookup.bundle.js search <kind> returns no results, the kind does NOT exist — do not use it.

  4. Determine the trigger type from the user's description:

    • OnRecognizedIntent — For topics triggered by user phrases (most common)
    • OnConversationStart — For welcome/greeting topics
    • OnUnknownIntent — For fallback topics
    • OnEscalate — For escalation to human agent
    • OnError — For error handling
  5. Generate the topic YAML with:

    • A # Name: comment at the top
    • kind: AdaptiveDialog
    • Appropriate beginDialog with correct trigger
    • Unique IDs for ALL nodes (format: <nodeType>_<6-8 random alphanumeric>)
    • If using a template, replace ALL _REPLACE placeholders with unique IDs
  6. Check settings.mcs.yml for GenerativeActionsEnabled. Read the agent's settings.mcs.yml to check.

  7. Save to the agent's topics/<topic-name>.topic.mcs.yml directory

  8. MANDATORY: Validate the generated file after saving:

    Step A: Schema validation — always run this first:

    bash
    node ${CLAUDE_SKILL_DIR}/../../scripts/schema-lookup.bundle.js validate <saved-file.yml>

    Step B: LSP-based validation — also run this if the agent has .mcs/conn.json: Read .mcs/conn.json to get connection details, then:

    bash
    node ${CLAUDE_SKILL_DIR}/../../scripts/manage-agent.bundle.js validate \
      --workspace "<path-to-agent-folder>" \
      --tenant-id "<tenantId>" \
      --environment-id "<envId>" \
      --environment-url "<envUrl>" \
      --agent-mgmt-url "<mgmtUrl>"

    Both validations are complementary: schema validation checks structural correctness (action kinds, property placement), while LSP validation checks Power Fx expressions, cross-file references, and environment-specific rules. If either fails, fix the issues before reporting success to the user.

Generative Orchestration Guidelines

When the agent has GenerativeActionsEnabled: true in settings:

Use Topic Inputs (AutomaticTaskInput) instead of Question nodes to auto-collect user info. Place inputs at the AdaptiveDialog root level (NOT inside beginDialog):

yaml
kind: AdaptiveDialog
inputs:                    # <-- at AdaptiveDialog root, NOT inside beginDialog
  - kind: AutomaticTaskInput
    propertyName: userName
    description: "The user's name"
    entity: StringPrebuiltEntity
    shouldPromptUser: true
beginDialog:
  kind: OnRecognizedIntent
  id: main
  actions:
    - ...
  • The orchestrator auto-collects inputs based on the description — no explicit Question node needed.
  • Still use Question nodes when: conditional asks (ask X only if Y), or end-of-flow confirmations.

Use Topic Outputs instead of SendActivity for final results. Use outputType at the root level and SetVariable to set output values — do NOT use TaskOutput (which is only valid in TaskDialog connector actions):

yaml
kind: AdaptiveDialog
inputs:
  - ...
beginDialog:
  kind: OnRecognizedIntent
  id: main
  actions:
    - kind: SetVariable
      id: setVar_abc123
      variable: Topic.result
      value: ="computed value"
outputType:                # <-- at AdaptiveDialog root
  properties:
    result:
      displayName: result
      description: The computed result
      type: String
  • The orchestrator generates the user-facing message from outputs.
  • Do NOT use SendActivity to show final outputs (rare exceptions: precise mid-flow messages).

Include inputType/outputType schemas at the AdaptiveDialog root level when using inputs/outputs:

yaml
inputType:
  properties:
    userName:
      displayName: userName
      description: "The user's name"
      type: String
outputType:
  properties:
    result:
      displayName: result
      type: String

Topic-Action Chaining Under Generative Orchestration

When a topic exists alongside other topics or other actions (i.e. TaskDialog), think carefully about the topic outputs — it directly affects whether the orchestrator will chain to an action.

Two scenarios:

  1. Topic is self-contained (e.g., reservation confirmation, calculation result): The topic does the work itself. It can gather the inputs too or just ask for those, but work is executed into the topic. In such case, output a confirmation/status message. The orchestrator treats the task as done or not, depending on the confirmation — this is correct.

  2. Topic gathers data for an action to consume (e.g., collecting a complaint that a Teams action should send, without manually calling the action into the topic): The topic output must be the data itself, not a confirmation. If you output "Your complaint has been sent!", the orchestrator assumes the job is done and will NOT invoke the action which means the complaint will never be sent. Instead, output the complaint text so the orchestrator can see there's an action to send it and feed it to such action.

Ask yourself: Does this topic complete the task on its own, or does it prepare data for an action/other topic? If the latter, output the data, not a status message.

Alternative approaches for data-gathering topics:

  • Remove the topic entirely and tailor the action's input descriptions for the specific use case (simplest). Basically the action will gather the data directly via its inputs, no topic needed. Useful for simple data collection (i.e. one-shot).
  • Use a global variable: the topic sets it (one-shot or by asking multiple questions and consolidating into the same variable via PowerFX), and the action's body references it via Power FX. This is more complex but can be useful for multi-turn data gathering that feeds somewhere else, especially if you need to do some logic on the data before sending it.
  • Output the collected data in a topic output variable so the orchestrator can pass it to the next action/topic.

Power Fx Quick Reference

  • Expressions start with =: value: =Text(Topic.num1 + Topic.num2)
  • String interpolation uses {}: activity: "Hello {Topic.UserName}"
  • Common functions: Text(), Now(), IsBlank(), !IsBlank(), DateTimeFormat.UTC
  • Variable init: variable: init:Topic.MyVar (first assignment uses init:)
  • Type coercion to text: Use SetTextVariable instead of SetVariable to convert non-text types (Number, DateTime, etc.) to text via template interpolation: value: "Guests: {Topic.NumberOfGuests}"

Veelgestelde vragen

Wat doet de AI-skill New Topic?

Create a new Copilot Studio topic YAML file. Use when the user asks to create a new topic, conversation flow, or dialog for their agent.

Waarom New Topic gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. New Topic bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik New Topic in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/microsoft/skills-for-copilot-studio/tree/main/skills/new-topic. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen New Topic gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met New Topic gebruiken?

Zoveel als je wilt. Je kunt New Topic gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill New Topic gratis?

Ja. Deze skill is door microsoft op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇