As I said, just following this tutorial should be enough (Maybe restart from the beginning in case of any doubt). Then use the code from here to make up your site (the one on the documentation page is not complete).
Be sure to replace the placeholders with the right values (<CANVAS CLIENT APP ID>, <TENANT ID>, <BOT ID>). Also set accordingly the scope values in onSignInClick() method.
Then use the developer tool in the browser when navigating to the page to be sure that no errors are present.