Chatbot in Dialogflow

I am trying to implement a chatbot in dialogflow CX, and I have never done it before.
I want to customise the buttons that appear in the chat and a couple more things as the background.
I already know that I have to use javascript files and the code for that is here. The thing is… how do implement that in the dialogflow CX? Thank you