A reusable Power Platform snippet

MSN Weather - Current Weather (Action with Adaptive Card)

This is a snippet that demonstrates how to use the MSN Weather - Get current weather action in an action.

Copilot Studio
Preview PNG
Last updated
Feb 18, 2024
Category
Community snippet

From idea to implementation

Make it your own.

Check this snippet's prerequisites, permissions, and licensing before using it. The documentation below comes directly from the snippet README.

This is a snippet that demonstrates how to use the MSN Weather - Get current weather action in an action. It uses an adaptive card as an output.

A view of examples of the get current weather action where the user asks for the weather in Ottawa, Miami and La Palma

Authors

Snippet Author(s)
MSN Weather - Current Weather (Action with Adaptive Card) Daniel Laskewitz (@laskewitz)

Minimal path to awesome

  1. Open a copilot in Copilot Studio

  2. Select Actions

  3. Select + Add an action

  4. Search for Get Current Weather and select the Search button

  5. Select the Get Current Weather action from the MSN Weather connector

  6. Select Next

  7. Select Finish

  8. Select the MSN Weather - Get Current Weather action in the list (select the name)

  9. Select the ... in the upper right corner and select Open code editor

  10. Make sure to copy the name of the connection reference

    View of the code editor with a red line around the connection reference name

  11. Paste the contents of the YAML-file in the code editor

  12. Replace { REPLACE-WITH-CONNECTION-REFERENCE-NAME } with the connection reference name you copied two steps earlier

  13. Save the action

  14. Select Generative AI

  15. Scroll down to Dynamic Chaining with generative actions (preview) and enable it by flipping the toggle on

  16. Test out the action by using the Test copilot section and send What's the current weather in Amsterdam

  17. When you get the Amsterdam weather, you're done!

    View of the plugin action where the user asks for the current weather in Amsterdam and the copilot responds with the weather in Amsterdam, including a cloud to indicate that it's cloudy

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.