How to get a value from google voice controls

Hi,
I have integrated Google home with Home assistant.
I would like to know if there is a way that I can get a value from my voice input in google home into a script in home assistant.
for example:
By now the only way I have to change the channel on my tv is with two scripts next/previous channel.
I want to change the tv channel on my tv to a random channel so I ask google “change channel too 502 on tv” is there a way I can get that 502 value inside a script in home assistant?

Just build ur own action or use IFTTT to trigger a webhook