Hi,
I let ChatGPT create a ‚good morning‘ message and send it to me via Telegram. The process overall works. But ChatGPT repeats itself almost every day.
My question: how can I teach the bot not to repeat itself.
My config as follows:
OpenAI Conversation configured basically as per default instructions provided here.
Furthermore, I created an automation to use ChatGPT response as follows:
alias: "‘Good morning‘ telegram_to_all message"
description: ""
trigger:
- platform: time
at: "04:30:00"
condition: []
action:
- service: conversation.process
data:
agent_id: 289ccb...[...]
text: >-
Write a personal "good morning" message mentioning the weather for the
day, sun rise and sun set details at my current location, which is {{
state_attr('person.user1', 'latitude') }}, {{
state_attr('person.user1', 'longitude') }}.
Also, tell some interesting "fun fact". Do not repeat the fun facts from previous days.
response_variable: chatgpt_response
- service: notify.telegram_to_me
data:
message: "{{ chatgpt_response.response.speech.plain.speech }}"
mode: single
Any suggestions?
Thanks!