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

Cannot receive any activity type other than 'message' type. #555

Open
yagasoft opened this issue Nov 30, 2024 · 0 comments
Open

Cannot receive any activity type other than 'message' type. #555

yagasoft opened this issue Nov 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yagasoft
Copy link

yagasoft commented Nov 30, 2024

Describe the bug
I am trying to send a 'command' from Copilot, but for some reason, I cannot receive it on the front end. I will describe below what I have tried.

To Reproduce

  1. Set up an Omnichannel chat channel (workstream).
  2. Add a Copilot bot built using Copilot Studio to the workstream.
  3. In the 'Conversation Start' topic, add any of the following:
    a. Custom 'Channel' data to a 'message' node.
    b. Custom 'Value' data to a 'message' node.
    c. 'Command' activity.
    d. 'Event' activity.
    e. 'Invoke' activity.
  4. Listen on the front end using one of the following methods:
    a. Add a handler using onNewMessage.
    b. Add a middleware and intercept 'DIRECT_LINE/INCOMING_ACTIVITY'.
    c. Add a middleware and intercept 'DIRECT_LINE/CONNECT_FULFILLED' and add a handler to 'directLine.activity$'.

Expected behavior
I expected to receive any of the items described in point 3 above.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 131.0.6778.86

Additional context
I received none of the items in point 3 in the reproduction steps. The only thing I seem to be able to catch is activities of type 'message' only, with the default channel data (none of the custom values) and no 'value'.

I tried to scan the source code for any filtering, and I found in 'newMessageEventHandler' file a filter to only handle 'message' activities. Even when I removed this condition, the behaviour was exactly the same!

@yagasoft yagasoft added the bug Something isn't working label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant