microsoft / microsoft/BotFramework-WebChat

Sample: Card action trigger JavaScript

Open
#2,172 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area-docs backlog feature-request Sample
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Build a sample that the user can use card action (suggested actions or rich card), to trigger a function in JavaScript. It could be based on "openUrl" to "about:blank#action-name" and we use a middleware to catch that.

This mechanism is currently being used in SSO sample.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing SSO sample, then inspect how card actions and the middleware mechanism are handled. Build a sample showing a suggested action or rich card triggering a JavaScript function through the described openUrl mechanism, and verify that the action is demonstrated end to end.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.