Service to call OpenAI Conversation agent

Being able to call the OpenAI Conversation agent via a Service call would enable a lot of useful scenarios. This would be similar to the recently added service call to call Dall-E.

This would enable me to otherwise use the Home Assistant conversation agent, but also enable OpenAI conversations by creating an automation with a trigger like ā€œWhen the sentence ā€˜Ask OpenAI about {question}ā€™ is saidā€, then passing the {question} to OpenAI and playing the answer via a media player.

Or am I missing something and this is already available?

Yes you are and yes it is: conversation.process

3 Likes

Thank you very much, had completely missed that!

1 Like

:slight_smile:

PS. btw. this is the first answer for the search ā€œAsk OpenAIā€ā€¦ :wink: