It depends on the site. You'll need to make the bot load the page, if needed register by clicking on the buttons and typing in the needed information, sign up and save login details, go a chatroom and type text with the type action.
Tutorials are below: https://wiki.bablosoft.com/doku.php https://wiki.bablosoft.com/doku.php?id=tutorial1
Maybe not the best way to do it but you can scrape all possible urls on the page and then add all to a new list then you can take a random line from the list and click it. That would 100% work.