Sema4AI / actions

AI Actions connect Agents to your existing enterprise systems and applications - all in 🐍 Python.
https://sema4.ai/
Apache License 2.0
45 stars 5 forks source link

Action ability to request user input during execution #46

Open kariharju opened 3 weeks ago

kariharju commented 3 weeks ago

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

kariharju commented 3 weeks ago

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?