Not sure how you developed the plugin but the solution would be to use action code on the plugin editor section.
This will allow you to use if statements and you can pass a Boolean that would determine if the code will run an advance call or basic call.
Otherwise if using API connector you’ll have to define an if statement in your buttons to run separate workflows using conditional statements either by a toggle/checkbox etc.