Add structured output to AI med notification prompts

This commit is contained in:
2025-10-03 19:29:07 -04:00
parent f7ac1b915b
commit 83c3c10a5a

View File

@@ -1742,6 +1742,12 @@ tony_morning_meds:
}}. }}.
task_name: Tony Morning Medication Reminder Snarky task_name: Tony Morning Medication Reminder Snarky
entity_id: ai_task.google_ai_task entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tony's phone
required: true
selector:
text:
response_variable: response response_variable: response
else: else:
- alias: Generate reminder - alias: Generate reminder
@@ -1752,6 +1758,12 @@ tony_morning_meds:
lines. lines.
task_name: Tony Morning Medication Reminder task_name: Tony Morning Medication Reminder
entity_id: ai_task.google_ai_task entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tony's phone
required: true
selector:
text:
response_variable: response response_variable: response
- delay: - delay:
hours: 0 hours: 0
@@ -1765,7 +1777,7 @@ tony_morning_meds:
who: tony who: tony
type: alert type: alert
title: Morning Meds title: Morning Meds
message: '{{ response.data }}' message: '{{ response.data.notification_text }}'
tag: tony-morning-meds tag: tony-morning-meds
actions: actions:
- action: TONY_MORNING_MEDS_TAKEN - action: TONY_MORNING_MEDS_TAKEN
@@ -1791,7 +1803,7 @@ tony_morning_meds:
data: data:
who: common_areas who: common_areas
type: alert type: alert
message: '{{ response.data }}' message: '{{ response.data.notification_text }}'
action: script.speech_engine action: script.speech_engine
else: else:
- delay: - delay:
@@ -2058,6 +2070,12 @@ tony_afternoon_meds:
}}. }}.
task_name: Tony Afternoon Medication Reminder Snarky task_name: Tony Afternoon Medication Reminder Snarky
entity_id: ai_task.google_ai_task entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tony's phone
required: true
selector:
text:
response_variable: response response_variable: response
else: else:
- alias: Generate reminder - alias: Generate reminder
@@ -2068,6 +2086,12 @@ tony_afternoon_meds:
lines. lines.
task_name: Tony Afternoon Medication Reminder task_name: Tony Afternoon Medication Reminder
entity_id: ai_task.google_ai_task entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tony's phone
required: true
selector:
text:
response_variable: response response_variable: response
- delay: - delay:
hours: 0 hours: 0
@@ -2081,7 +2105,7 @@ tony_afternoon_meds:
who: tony who: tony
type: alert type: alert
title: Afternoon Meds title: Afternoon Meds
message: '{{ response.data }}' message: '{{ response.data.notification_text }}'
tag: tony-afternoon-meds tag: tony-afternoon-meds
actions: actions:
- action: TONY_AFTERNOON_MEDS_TAKEN - action: TONY_AFTERNOON_MEDS_TAKEN
@@ -2107,7 +2131,7 @@ tony_afternoon_meds:
data: data:
who: common_areas who: common_areas
type: alert type: alert
message: '{{ response.data }}' message: '{{ response.data.notification_text }}'
action: script.speech_engine action: script.speech_engine
else: else:
- delay: - delay:
@@ -3118,6 +3142,12 @@ tina_morning_meds:
}}. }}.
task_name: Tina Morning Medication Reminder Snarky task_name: Tina Morning Medication Reminder Snarky
entity_id: ai_task.google_ai_task entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tina's phone
required: true
selector:
text:
response_variable: response response_variable: response
else: else:
- alias: Generate reminder - alias: Generate reminder
@@ -3128,6 +3158,12 @@ tina_morning_meds:
lines. lines.
task_name: Tina Morning Medication Reminder task_name: Tina Morning Medication Reminder
entity_id: ai_task.google_ai_task entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tina's phone
required: true
selector:
text:
response_variable: response response_variable: response
- delay: - delay:
hours: 0 hours: 0
@@ -3139,7 +3175,7 @@ tina_morning_meds:
who: tina who: tina
type: alert type: alert
title: Morning Meds title: Morning Meds
message: '{{ response.data }}' message: '{{ response.data.notification_text }}'
tag: tina-morning-meds tag: tina-morning-meds
actions: actions:
- action: TINA_MORNING_MEDS_TAKEN - action: TINA_MORNING_MEDS_TAKEN
@@ -3208,6 +3244,12 @@ tina_night_meds:
}}. }}.
task_name: Tina Night Medication Reminder Snarky task_name: Tina Night Medication Reminder Snarky
entity_id: ai_task.google_ai_task entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tina's phone
required: true
selector:
text:
response_variable: response response_variable: response
else: else:
- alias: Generate reminder - alias: Generate reminder
@@ -3217,6 +3259,12 @@ tina_night_meds:
instructions: Remind Tina to take her night meds. Use a maximum of two lines. instructions: Remind Tina to take her night meds. Use a maximum of two lines.
task_name: Tina Night Medication Reminder task_name: Tina Night Medication Reminder
entity_id: ai_task.google_ai_task entity_id: ai_task.google_ai_task
structure:
notification_text:
description: The text to send in the notification to Tina's phone
required: true
selector:
text:
response_variable: response response_variable: response
- delay: - delay:
hours: 0 hours: 0
@@ -3228,7 +3276,7 @@ tina_night_meds:
who: tina who: tina
type: alert type: alert
title: Night Meds title: Night Meds
message: '{{ response.data }}' message: '{{ response.data.notification_text }}'
tag: tina-night-meds tag: tina-night-meds
actions: actions:
- action: TINA_NIGHT_MEDS_TAKEN - action: TINA_NIGHT_MEDS_TAKEN