Call a javascript function to read querystring from URL

I have seen examples of calling javascript function to read query string in Blocks.load with input and output specified. What I would like is to call javascript function in Blocks.load without any UI (input and output) since I am using ChatBot. Can anybody please help?

hi @tariqzack ,

That’s possible, but you still need a dummy component to get the url param value,
then you can read it from the chatbot component

here is an example
just type read query to make the chatbot return the onload query param state.

Thanks for the solution…@radames

1 Like