created this automation to help me create other automations, sensors, generating data from the sensor,etc. It uses ai_tasks. So, everywhere you just need to change the instructions and wait a moment and the answer will appear on the side panel
alias: autoautomatizace
description: ""
triggers:
- trigger: state
entity_id:
- input_button.ai_task #if you create a helper, otherwise run directly
to: null #in automation, top right corner three dots
conditions: []
actions:
- action: ai_task.generate_data
metadata: {}
data:
task_name: yourname
instructions: >+
your data
entity_id: ai_task.your_ai_task
response_variable: airesponse
- action: notify.persistent_notification
metadata: {}
data:
message: "{{ airesponse.data }}"
data:
"[object Object]": null