Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 2.59 KB

File metadata and controls

35 lines (22 loc) · 2.59 KB

Adaptive cards gallery

Setup Note

To get the Adaptive cards gallery working after you install the Copilot Studio Kit solution, you will need to go to the Adaptive Card Gallery Agent that was installed in the solution file.

  • Open Copilot Studio in your current environment
  • Open the Adaptive Card Gallery Agent that was deployed in the solution file
  • Publish the Adaptive Card Gallery Agent
  • Open the mobile app channel to view the published token endpoint for this Agent
  • Copy the token endpoint and then update the Agent Token Endpoint environment variable
    • You can find this environment variable by opening up the Default Solution and then filtering to the Environment Variables.
    • Paste the token endpoint value into the Agent Token Endpoint
  • Reload the Adaptive cards gallery page and you should be up and running now!

About adaptive cards

Adaptive Cards are a lightweight UI framework that enables developers to create dynamic and interactive content that can be rendered consistently across different platforms and applications. They are defined using a JSON-based schema, allowing for flexibility in layout and interactivity while adapting to the look and feel of the host application.

Learn more about adaptive cards from here.

Adaptive cards gallery overview

Adaptive cards gallery is a collection of adaptive cards demonstrating different scenarios with the focus being on Copilot Studio custom agent interactions.

adaptivecards1

Each sample adaptive card comes with a template and sample data. Adaptive cards are all implemented in a Copilot Studio custom agent as well, which can be activated for live preview, by entering its token endpoint in an environment variable Agent Token Endpoint. Open in Copilot Studio opens a topic associated with the selected adaptive card from the custom agent into a new tab so that backend implementation details can be studied and copied.

adaptivecards2

Note

By default, emulator is used to preview the adaptive cards. To preview the adaptive cards using a real Copilot Studio webchat, publish the "Adaptive Card Gallery"-agent that ships with Copilot Studio Kit, and set the environment variable cat_AgentTokenEndpoint to its Token Endpoint. The token endpoint of Copilot Studio custom agent can be copied from Channels -> Mobile app.

Back to the landing page