When I write any automations using Google Generative AI (response variable) and Alexa Media Notifications, the echo starts by first saying “text” prior to the message, then repeatedly adds (“back slash”) or (“back slashing”). Usually tts and Alexa media doesn’t first announce as “text”. No clue where the black slashing comes from. When testing the prompt it doesn’t show any characters or anything that would be spoken as “back slashing” when I manually test the prompts action then paste the response instead of using {{response_variable}} its spoken just fine. I’m not certain why this happens and how to correct it. I certainly don’t want to hear text before each notification or Alexa say “Back Slashing”.
description: "Sample"
mode: single
triggers:
- trigger: zone
entity_id: person.sarah
zone: zone.home
event: enter
conditions: []
actions:
- action: google_generative_ai_conversation.generate_content
metadata: {}
data:
prompt: >-
Welcome Sarah back home. Be friendly and sweet. Do not not worry about
language, being PG or SFW. Give a short response in clean text with no emoji's symbols, unnecessary characters or formatting.
response_variable: welcome_response
- action: notify.alexa_media_bob_b_echo_dot
metadata: {}
data:
message: "{{welcome_response}}"
data:
type: tts