MS Teams Bot icon

MS Teams Bot

Interact with Microsoft Teams Bot Framework

Actions9

Streaming → Continue Stream

AI-generated

Summary

Send a streaming update message with cumulative content to an existing Microsoft Teams Bot streaming session in a specified conversation.

Inputs

  • Service URL (required) — The Bot Framework service URL from the activity context (e.g., https://smba.trafficmanager.net/amer/).
  • Conversation ID (required) — The conversation ID where the streaming message will be sent.
  • Stream ID (required) — The stream identifier returned from the initial Start Stream operation, defining which stream to continue.
  • Stream Sequence (required) — The incrementing sequence number of this streaming update (2, 3, 4, etc.), which must increase with each update.
  • Message Text (required) — The full cumulative text content to send in the stream, including all previous messages in the stream.

Output shape

a single JSON object representing the HTTP response from the Bot Framework, typically containing confirmation of the message sending; includes no pagination or additional envelopes.

The operation posts a new streaming message with type 'streaming' and updates the stream sequence accordingly. The message text must be cumulative and include all prior streaming content; otherwise the stream state on the client might be inconsistent. The response includes the stream activity ID and other metadata returned by the Bot Framework API.

Examples

Example 1: Sending a second chunk of progressive text in an ongoing streaming message to a Teams conversation.

Provide the serviceUrl, the targeted conversationId, the streamId from the initial streaming start, increment the streamSequence to '2', and set the messageText to include all text sent so far.

Links

Discussion