Lifespan of conversation id created between bot and user

Hasit Parmar 0 Reputation points
2024-02-29T13:36:53.0533333+00:00

We are using botframework-connector SDK for python for implementating bot, in that we would like to retrive user's conversation ID whenever user install teams bot in personal scope or groupchat. To get conversation id we were listening on_installation_update_add event of botbuilder.core.teams.TeamsActivityHandler and using turn_context.activity.conversation.id to that get conversation id.

  1. Is there any expiry time for this conversation ID?
  2. Can i believe that conversation id would be unique globally (Across multiple orgs)? which refers unique connection between user and bot.
  3. Can i flooded a message (adaptive card) on the same conversation id within teams bot limits.
Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
747 questions
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.
2,847 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 13,160 Reputation points
    2024-02-29T18:28:40.65+00:00

    Conversation IDs in the Bot Framework are unique within the scope of a specific channel and bot interaction. They remain valid as long as the conversation is active and not deleted. Regarding uniqueness, while they are unique per channel and bot, they are not necessarily globally unique across all organizations or instances. You can send messages, including adaptive cards, to a conversation ID in Teams within the limits set by the Bot Framework and Microsoft Teams.

    1 person found this answer helpful.