extended_openai_conversation icon indicating copy to clipboard operation
extended_openai_conversation copied to clipboard

Trigger automation with voice

Open pjuhl2313 opened this issue 11 months ago • 4 comments

I was wondering if it is possible to trigger an automation with using Extended Open AI as your conversation agent?

pjuhl2313 avatar Mar 11 '24 20:03 pjuhl2313

link

pajeronda avatar Mar 12 '24 18:03 pajeronda

Which one do you mean?

  1. automation trigger → conversation agent
  2. conversation agent → automation

If what you asked is the first one, you can achieve it by conversation.process service.

jekalmin avatar Mar 24 '24 13:03 jekalmin

Which one do you mean?

1. automation trigger → conversation agent

2. conversation agent → automation

If what you asked is the first one, you can achieve it by conversation.process service.

I'm trying to get the second one to work.

pjuhl2313 avatar Mar 24 '24 13:03 pjuhl2313

You can use script function to change state of entities or trigger events like below.

- spec:
    name: trigger_event
    description: trigger event
    parameters:
      type: object
      properties:
        dummy:
          type: string
          description: Nothing
  function:
    type: script
    sequence:
      - event: "your_event_name"
        event_data: {}

You can modify name and description of spec, and event of function to fit your case. Then add event trigger to your automation.

jekalmin avatar Mar 24 '24 13:03 jekalmin

Closing the issue. Feel free to reopen it.

jekalmin avatar Jan 31 '25 16:01 jekalmin