Control with OpenAI assistant

I have some ideas of how this could work. You could send chatgpt a message like this as system

If the user requests to control devices, call a home assistant service by responding with “/service/data1/data2/etc…”

And then it could also have another message explaining the services

data1 - brightness
data2 - color in hex

The reason why I chose slashes is because they are easiest to work with. For example:

if response.startswith("/"):
    command = response.split("/")[1]
    data1 = response.split("/")[2]

I would really like to see something like this implemented