Are you sure that you haven’t mixed up the bot trigger event with your appscript parameter?
Your screenshot looks as it the parameter being passed into your script will be either true or false whereas I would expect that to be the condition for whether the bot triggers or not?