Browser based bot API framework