Telegram bot & Alexa tts

Hi all, I have a question. i have 2 things working separately but I cannot get it working combined…

What does work:

  1. Telegram bot works, I can send commands and control devices and I can receive snapshots on telegram:
    I send “Black” and the bot sends back “Jack”:


    I send a command and a device or scene is turned on:
    image
    And I have several other thing running in telegram and node-red.

  2. Alexa tts works. I use the HA integration and can have Alexa speak up and control volume upon doorbell trigger etc. like this:



So far so good…

But what I now want to achieve is that when I send “Alexa” to telegram it asks me “what to say” and when I reply alexa has to speak it out… But cant get the “payload of telegram” into the alexa one…

What I tried:



Nothing is being said :frowning: Or rubbish comes out :-).

I also tried to manually insert some payload like this and that works…
Like this:
image
and in svc: notify:Alex_media_xxxx:
image

But how do I pass the outcome from “get reply” to the next one?

Solved by using this in the svc: alexa_media:

{"message":"{{payload.content}}","data":{"type":"tts"}}