Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Here is my answer, based on the documentation and a test with a standard-harness agent in the Copilot Studio test chat, Teams (web), and Microsoft 365 Copilot.
I couldn't find a way for a topic to remove or replace a message after it's sent. The node that sends other activity types has no type for updating or deleting a message either. So there's no single method that shows a status text and then hides it on every channel. The options are:
- Typing activity (no text, nothing stays). In your wait loop, add the node that sends an activity (under Advanced) and set its type to Typing. It adds nothing to the conversation, but how it shows depends on the channel. In my test, I sent a message and then a Typing activity. The typing indicator stayed after the message for about 4 seconds in the test chat and about 25 seconds in Teams, and then disappeared by itself. In Microsoft 365 Copilot, no indicator appeared after the message. The indicator times out, so a single Typing activity won't cover a long wait.
- Message node (text stays). Send "Checking your device…" as a normal message when the status changes. It was shown in all three channels and stays in the conversation.
- Event activity (custom website only; from the documentation, not tested). The channel decides whether to use an event activity, and the documented use is a customized Web Chat control. On your own page, Web Chat code can show the status and remove it when the final answer arrives. Teams and Microsoft 365 Copilot don't give you a client you can customize this way.
If you need one behavior on every channel, combining 1 and 2 is the closest: send the Typing activity while waiting, and send only the status changes that are fine to keep in the conversation.
References: