I’m using conversation.process to create an alert that is played at a specific time. Today conversation.process took 10 minutes to return an error. Is there a way to move on if conversation.process hasn’t returned a response in a given time? I think a wait template would work but I can’t figure out how to use it. I’d like something that calls conversation.process, and if it doesn’t return in 15 seconds use a canned response instead. Here’s what is in place:
action:
- service: conversation.process
data:
agent_id: myagentidhere
text: >-
my open ai chat prompt here
response_variable: gptagent
- service: tts.cloud_say
data:
entity_id: media_player.living_room_mini
message: "{{ gptagent.response.speech.plain.speech }}"
I’d think I could wait for a trigger, with the trigger being gptagent.response.response_type == action_done, but it’s going to get stuck before I get to the wait for trigger.