Here we code online agents in JavaScript to perform in certain environments. The bot could be an actual robot that has tasks and must accomplish goals, or the bot you code could perform a particular role in an autonomous RPG.