Add a topic
cs_add_topicCreate a Copilot Studio topic from a declarative spec with triggers, messages, questions, conditions, and actions, then validate and apply it to your agent workspace.
Instructions
Create topics/.topic.mcs.yml from a declarative spec: trigger phrases (or a system trigger) plus message / question / condition / redirect / setVariable / searchKnowledge / http / invokeFlow / end / raw nodes. Validates the result. Push to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| actions | Yes | ||
| priority | No | ||
| overwrite | No | ||
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| description | No | ||
| triggerKind | No | System trigger instead of phrases | |
| triggerPhrases | No | User phrases that start the topic (OnRecognizedIntent) |