extended_openai_conversation icon indicating copy to clipboard operation
extended_openai_conversation copied to clipboard

Expose service to call AI assistant to generate message in automatisation (Feature)

Open jmorille opened this issue 9 months ago • 1 comments

Expose a service like the image generation, that call the AI service just for generate a message with the home context.

For coding automatisation, like a welcome message different each day. A service call permit to add some additional information like weather forecast or whatever.

I dont find in home assistant native API a service to call directly Voice Assist feature.

jmorille avatar Apr 26 '24 20:04 jmorille

You can do this once you've set up a voice assistant entity with the following service call:

alias: "Process Command via Conversation"
sequence:
- service: conversation.process
  data_template:
    text: "{{ chat command }}"
    agent_id: <get this by calling the service under Developer Tools/Services and editing in YAML >

You can get responses as well - look at the docs for conversation!

Stklingner avatar May 10 '24 08:05 Stklingner