Skip to content

Add proactive samples for JavaScript and Python - #709

Open
Joel Mut (sw-joelmut) wants to merge 3 commits into
mainfrom
southworks/add/proactive-samples
Open

Add proactive samples for JavaScript and Python#709
Joel Mut (sw-joelmut) wants to merge 3 commits into
mainfrom
southworks/add/proactive-samples

Conversation

@sw-joelmut

Copy link
Copy Markdown
Collaborator

Addresses #682

Description

This PR adds customer-facing proactive samples for JavaScript and Python and aligns the existing .NET sample with the same experience. The samples show how to store a conversation, send an activity later, continue a conversation from saved data, and export conversation data for an HTTP request.

The three samples now use the same sample name, commands, route names, welcome content, manifest structure, and customer documentation.

Changes

Proactive samples

  • Add the JavaScript proactive sample.
  • Add the Python proactive sample.
  • Align the existing .NET proactive sample with JavaScript and Python.
  • Add the same commands in all languages:
    • -s
    • -c
    • -c <conversation-id>
    • -convo
    • proactive echo for other text
  • Add POST /proactive/sendActivity/{conversationId}.
  • Add POST /proactive/continue.

Customer experience and documentation

  • Add a left-aligned Adaptive Card welcome message.
  • Improve command descriptions and stored-conversation guidance.
  • Add aligned README files, environment templates, Teams manifests, and route response guidance.
  • Document customer security requirements for proactive HTTP routes and caller authorization.
  • Add the proactive sample parity report.

Configuration and cleanup

  • Align proactive route authentication behavior across the samples.
  • Add the required Python Bot Framework scope configuration.
  • Remove Playground-only behavior from the shipped samples.

Testing

The proactive flow was tested manually in Microsoft 365 Agents Playground for JavaScript and .NET. The tests covered the welcome message, -s, both -c forms, -convo, proactive echo, sendActivity, and continue.

The following images show the tested .NET, JavaScript, and Python proactive flows:

image image image

@github-actions github-actions Bot added the Samples Changes to Samples label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Samples Changes to Samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant