Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to send arbitrary event/invoke with a JSON Payload #2174

Closed
chrimc62 opened this issue Jul 31, 2020 · 4 comments · Fixed by #2213
Closed

Be able to send arbitrary event/invoke with a JSON Payload #2174

chrimc62 opened this issue Jul 31, 2020 · 4 comments · Fixed by #2213
Labels
Enhancement New feature or request to evolve an additional feature

Comments

@chrimc62
Copy link
Contributor

chrimc62 commented Jul 31, 2020

Problem

There is no way to send arbitrary events or invoke using the emulator. We need to support these to enable transcript-based testing as well as to allow triggering custom events. One issue is that some events might need to be before or instead of the event sent on restart conversation. For example, SetTestOptions event sets a random seed and that needs to have the conversation id sent by updateConversation but also need to be before it so the bot response to updateConversation is not random.

Solution

Please add to the Conversation send activity menu a way to send an event or invoke with an arbitrary JSON payload.

[enhancement]

@ghost
Copy link

ghost commented Aug 4, 2020

I have had exactly this problem recently when trying to emulate the webchat/join event specified in the microsoft documentation and referenced in this issue:
microsoft/BotFramework-WebChat#2120 (comment)

I've had to emulate using a razor page and a bot registration routing to an ngrok endpoint in order to reliably test this. We're using the webchat/join even to indicate the page the webchat is being activated on to provide a more contextual experience.

@tonyanziano
Copy link
Contributor

This feature will be available in tonight's nightly build. Check out #2213 for details

@tonyanziano
Copy link
Contributor

There is currently an issue with the nightly pipeline that we are working to fix. Stay tuned

@tonyanziano
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request to evolve an additional feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants