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

Example where we prompt for a specific input within a plugin #170

Open
Netizine opened this issue Jan 29, 2024 · 2 comments
Open

Example where we prompt for a specific input within a plugin #170

Netizine opened this issue Jan 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Netizine
Copy link

We have a use case where we have a plan with certain inputs, but I'm unsure how to add logic to requests for additional information from a user based on a certain logic flow.

It would be great if, in a plan, we could provide feedback to request certain information from the user. For example, we have a get prices plugin, but based on the number of possible prices (result in record count), we need to ask for certain filters from the user, such as country and report type, if we have more than three possible prices. If there are three or fewer, we can continue without asking for additional input.

I have tried putting the inputs as optional arguments, but they are only required based on a record count, so we may not have them when required, but I don't want to start the whole flow again.

It would be great if one of the sample plans prompted the user for additional information within the code to have a reference implementation where the decision to ask for additional information is handled within the plugin, and then the plan can continue.

@ShilinHe
Copy link
Collaborator

Hi @Netizine, we're currently working on this feature and please stay tuned. Thanks!

@ShilinHe ShilinHe added the enhancement New feature or request label Jan 29, 2024
@Coderpsh
Copy link

Coderpsh commented Feb 5, 2024

We have also encountered the same scenario and look forward to your features!

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

No branches or pull requests

3 participants