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

[FEATURE] Ability to automatically send a question from another app when opening the UI #2404

Open
Evenaar opened this issue May 14, 2024 · 0 comments

Comments

@Evenaar
Copy link

Evenaar commented May 14, 2024

Describe the feature you'd like
I have a use case where a user types his question in another app, which then should link to Flowise. It would therefore be great, if that question typed in the other app would somehow be transferable to Flowise.
Ideally this would be done through the use of an url parameter, which could maybe be configurable in the "Share Chatbot" Popup.

Additional context
The current workaround for my problem is to get the textinput field and setting its value through JS by running:
document.querySelector("#root > flowise-fullchatbot").shadowRoot.querySelector("div > div > div.flex.flex-col.w-full.h-full.justify-start.z-0 > div.w-full.px-5.pt-2.pb-1 > div > textarea").value = "User's Question"
And then sending that message via the button with:
document.querySelector("#root > flowise-fullchatbot").shadowRoot.querySelector("div > div > div.flex.flex-col.w-full.h-full.justify-start.z-0 > div.w-full.px-5.pt-2.pb-1 > div > button").click()

That solution is really not preferable though.

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

No branches or pull requests

1 participant