generate the dict whenever the bot receives an input