question

LuciaCasucci-9483 avatar image
0 Votes"
LuciaCasucci-9483 asked GiftA-MSFT edited

How can I wipe out my conversation with the user in teams using Azure Bot service?

Hello,

I wanted to know if it is possible to have the entire conversation of the user and bot that I deployed in teams deleted once let's say a week is gone.
This way , once the user wants to ask more questions to the bot, he will see the introduction again and start all from the beginning of the waterfall dialogue, forgetting about what was asked a week ago.
I made my bot with the qnA and deployed it in teams.

office-teams-windows-itprooffice-teams-app-devazure-bot-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered LuciaCasucci-9483 commented

Hi @LuciaCasucci-9483

Do you mean you want to update or delete your message from Bot in Teams?

Our forum is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your question is more related to Azure Bot Service., which we do not support. The following suggestion is only for your reference.

In the Bot Framework, every message has its unique activity identifier. Messages can be deleted using the Bot Framework's DeleteActivity method. For more details about its code example, you could refer to:

https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/update-and-delete-bot-messages?tabs=dotnet#delete-messages


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LuciaCasucci-9483

It has been a while, how is everything going?
If you have any update about this issue, please feel free to post back.

0 Votes 0 ·

Thank you for the reply!

I was actually trying to take an easier route, by just following this tutorial to restart the conversation after a certain inactive time.
However, there seem to be some issues in the code provided because a lot of references are missing :/


https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-expire-conversation?view=azure-bot-service-4.0&tabs=csharp

0 Votes 0 ·