A reusable Power Platform snippet

Timeout Message (Topic)

This is a snippet that demonstrates a sample message for when a copilot session times out. It includes two Power Fx expressions for formatting of the time and date.

Copilot Studio
Preview PNG
Last updated
Mar 21, 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 a sample message for when a copilot session times out. It includes two Power Fx expressions for formatting of the time and date.

  1. The current time, e.g 01:36PM
  2. The current date, e.g Thursday, March 21

A view of the message out for when a copilot session times out

Authors

Snippet Author(s)
Timeout Message (Topic) Elaiza Benitez (@benitezhere)

Minimal path to awesome

  1. Open an agent in Copilot Studio

  2. Select Topics

  3. Select + Add a topic

  4. Select Create from blank

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

  6. Click inside the code editor and CTL + A for Windows or Command-A for Mac to select all rows.

  7. Paste the contents of the YAML-file inside the code editor.

    View of the code editor

  8. Enter a Name for your Topic.

  9. Select Save

  10. Test out the Timeout Message by publishing your agent to Microsoft Teams and enter a trigger phase for one of your Topics.

  11. After receiving a response from your agent, do not enter a message and leave idle for 10 minutes.

  12. After 10 minutes, the trigger for inactivity will be executed and the timeout message will be displayed, you're done!

    View of the timeout message after the condition has been met

Note

If you want to change the timeout duration, select the ellipsis (. . .) icon in the trigger. The Inactivity properties pane will load and the inactivity duration value can be updated. Convert desired minutes into seconds. For example 10 minutes is 600 seconds.

Inactivity duration

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.