Action ability to request user input during execution
Issue by mkorpela Friday Jan 19, 2024 at 13:16 GMT Originally opened as https://github.com/robocorp/robocorp/issues/174
Description
The fact that we are running HTTP server and on the background running the action in a separate process, would allow requesting user input during execution. This is an opportunity.
It can allow things like this
@action
def greeter(name: str) -> str:
place = request_input(f"Ask from the user: Where are you from {name}?")
return f"Hello {name} from {place}!"
Describe the solution you'd like
https://github.com/robocorp/actions-cookbook/tree/master/example-user-input
Describe alternatives you've considered
No response
Comment by tonnitommi
Tuesday Jan 23, 2024 at 12:14 GMT
Assuming AI Actions are used from another interface such as chatbot/assistant, why would you suddenly move user interaction somewhere else? Or am I missing something? Why would you not split the action and let the "host" system deal with user interaction?