-
Notifications
You must be signed in to change notification settings - Fork 186
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
[Dev support]: How to start a new turn with previous user message in the onUserSignInSuccess sign-in success callback #2091
Comments
Might be related to #885 |
You could abstract away logic for the |
Thanks for your time @singhk97 |
Hi @Benjiiim, May I ask what you are planning to do with the turn and user input after the user is signed in? Another idea is registering an |
I should have mentioned in my previous messages that I'm thinking about the auto sign in feature, which means that the app will trigger the sign in flow even if the user is sending a message not related to authentication at all. That can lead to weird exchanges such as: User > I need help to do something That's why I'm looking for a way to have the user message processed by the app after a successful sign-in. Does that make more sense? |
Yup, that makes more sense, thank you for clarifying Unfortunately there is no straightforward way to begin a new turn during this callback. For auto-sign in, this scenario is primarily useful if the user should be signed in (by default) before they attempt to interact with the bot. I would suggest only following this route if that is the desired scenario The only workaround I can think of as of now is to register some form of activity handler within the callback (though I know you mentioned you wanted to pipe this directly into the AI class) |
auto-sign in is very important in the projects I'm working with: B2B SaaS ISVs/Startups' apps deployed through the Teams store.
And even before the AI class, as the logic that choose between the activity handlers and the AI Module might be needed. Even before that actually, to the Before Turn handler for example as it might be useful to be rerun now that the user is authenticated. That's why I talked about the need to create a new turn, hoping that it would be possible. |
Gotcha, thank you for clarifying For all sign-in flows, the final part is the |
Hi @lilyydu, The project I'm working (a multi-tenant ISV application published in the store) has just been approved for publication. :-) From the user's perspective, these suggestions are rendered meaningless since the agent skips directly to the sign-in process. This creates confusion and frustration, especially for new users who may interpret this as a bug or a lack of responsiveness from the bot. I understand that nothing can be done today but is there anything I can contribute to help prioritize the work needed to address this? |
Is there a way to start a new turn with previous user message in the onUserSignInSuccess sign-in success callback?
I know how to get the message through the context.activity.text but I don't know what to do with it.
Thanks a lot
The text was updated successfully, but these errors were encountered: