The Wayback Machine - https://web.archive.org/web/20201201100016/https://github.com/aws-amplify/amplify-js/issues/4967
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

How can I force a click on the Microphone button without the user having to click it #4967

Open
aravindkaws opened this issue Feb 22, 2020 · 2 comments

Comments

@aravindkaws
Copy link

@aravindkaws aravindkaws commented Feb 22, 2020

** Which Category is your question related to? **
Interactions
** What AWS Services are you utilizing? **
Cognito, Lex

I'd like to be able to do a face auth and if a valid user is found, I'd like to simulate a click of the Microphone button without the user having to do so. How can this be done with the existing Chatbot component ?

@Ashish-Nanda
Copy link
Contributor

@Ashish-Nanda Ashish-Nanda commented Mar 5, 2020

@aravindkaws which platform are you using Web or React Native?

I've added this as a feature request. Could you provide more details with regards to what the API would look like.

Also let us know if you would like to put in a PR for this and we can help you with it.

@aravindkaws
Copy link
Author

@aravindkaws aravindkaws commented Mar 5, 2020

I am using React Web.
So this is a use case for having the Bot initiate the conversation with the client. There are use cases where the Client does not have to Initiate a conversation (like a Client approaching a character in a VR scene). I was able to use the Lex PutSession API in the Chatbot.jsx to get this going. Do let me know how I can add a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.