How to increase 5 seconds respond timeout of task module submit action?

Hasit Parmar 5 Reputation points
2024-10-09T06:32:01.5133333+00:00

We are building teams bot app involves task module rendering adaptive card and our functionality includes 2-3 screens.

When I click button from first screen task module submit activity invoked and Teams expecting the response within 5 seconds, but my app takes longer time to process user's request, so how can I achieve that? Task module respond timeout is configurable? Can I show loader here using adaptive card which automatically removes upon completion of user request?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,353 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sayali-MSFT 2,751 Reputation points Microsoft Vendor
    2024-10-09T08:25:02.9166667+00:00

    @Hasit Parmar- The response timeout for task modules in Teams is not configurable. Typically, Teams expects a response within 10 to 15 seconds. If your app takes longer to process the user's request, you might encounter timeout issues. Unfortunately, there is no way to modify this response time.

    See more at [https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-long-operations-guidance?view=azure-bot-service-4.0](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbot-service%2Fbot-builder-howto-long-operations-guidance%3Fview%3Dazure-bot-service-4.0&data=05%7C01%7Cv-sadange%40microsoft.com%7Ce0656815d01c43595f6d08da9b0f270e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637992786679013116%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=q2z6JniqaXudxSC%2BEktULDvro3Y5Gf%2BMP8fGrM4Cobw%3D&reserved=0"Original URL: https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-long-operations-guidance?view=azure-bot-service-4.0. Click or tap if you trust this link.")


  2. Sayali-MSFT 2,751 Reputation points Microsoft Vendor
    2024-10-09T08:26:20.93+00:00

    The response timeout for task modules in Teams is not configurable. Typically, Teams expects a response within 10 to 15 seconds. If your app takes longer to process the user's request, you might encounter timeout issues. Unfortunately, there is no way to modify this response time.

    See more at -https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-howto-long-operations-guidance?view=azure-bot-service-4.0


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.