Issue with Hold and Resume Setting

Hi Team ,
I am trying to edit hold and resume setting where bot will ask user confirmation before switching.
My requirement is to add buttons along with the above message.
When i am trying to edit it in java script ,<< current-intent >> variable is not working.
Could you please help how to use kore predefined variables like << list of language >> , << current intent>> using java script

@ruchi2912
We checked with product management team. Use of < > tags are not allowed inside advance JS mode to stop some possible security attacks.

You can try to print the context variable from advanced JS tab and see if you can use some information from the bot-context.

print(JSON.stringify(context));

cc: @yogaramya.mendu