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.

- 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.

Authors
| Snippet | Author(s) |
|---|---|
| MSN Weather - Current Weather (Action with AI Generated Message) | Daniel Laskewitz (@laskewitz) |
Minimal path to awesome
Open a copilot in Copilot Studio
Select Actions
Select + Add an action
Search for Get Current Weather and select the Search button
Select the Get Current Weather action from the MSN Weather connector
Select Next
Select Finish
Select the MSN Weather - Get Current Weather action in the list (select the name)
Select the ... in the upper right corner and select Open code editor
Make sure to copy the name of the connection reference

Paste the contents of the YAML-file in the code editor
Replace { REPLACE-WITH-CONNECTION-REFERENCE-NAME } with the connection reference name you copied two steps earlier
Save the action
Select Generative AI
Scroll down to Dynamic Chaining with generative actions (preview) and enable it by flipping the toggle on
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.