A reusable Power Platform snippet

MSN Weather - Current Weather (Action with AI Generated Message)

This is a snippet that demonstrates how to use the MSN Weather - Get current weather action in a plugin action. It uses the AI generated text as output.

Copilot Studio
Preview PNG
Last updated
Jul 7, 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 a plugin action. It uses the AI generated text as output.

A view of examples of the get current weather action where the user asks for the weather for Utrecht in celsius

Authors

Snippet Author(s)
MSN Weather - Current Weather (Action with AI Generated Message) 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 pane

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.