SharedSamples.org
SPFx Copilot Component

Choice Relay

Follow a user choice from Copilot into SPFx, back into the conversation, and into a second interactive component.

Choice Relay
Choice Relay screenshot 2 Choice Relay screenshot 3 Choice Relay screenshot 4

About this sample

Choice Relay is a compact teaching sample with two SharePoint Framework Copilot Components. Copilot generates typed arguments for an interactive choice component, the user selects one option locally, and the component sends that selection back as a readable user turn.

Copilot can then select a second tool and render one grounded next action. The sample also demonstrates revisions initiated from either the SPFx component or the normal Copilot composer, with a collapsed inspector that makes tool input, host context, and outbound messages visible.

Products & metadata

SharePointMicrosoft 365 CopilotSPFx-CopilotComponentReact1.24.0-beta.2