This panel is already connected to the widget button. To launch the real assistant, just insert your chat page URL into AI_CHAT_URL at the bottom of the file.
The simplest setup is an external page or chat service that can be opened inside an iframe.