Full Screen ChatGPT Chatbot

Full Screen ChatGPT Chatbot

We're working with an interesting client these days who wants to create a "go to landing page" for information related to his industry. To accomplish this the client doesn't want his AI chatbot to render a button you need to click to access it, but rather have a chatbot resembling ChatGPT.

The point being that he wants a single landing page in his website, where people can ask questions related to his industry, with the incentives for him being that he can sell products for his vertical. This allows the client to position himself as a source for general information related to his industry, resulting in his company getting more clients and selling more products related to the industry.

It's an experimental feature for the time being, but in the video below I am demonstrating the basics of how it works.

How it works

There are two new optional QUERY parameters for the chatbot embed script you'll need to apply to make this work. These are as follows.

  • parent_node - This is the ID of some HTML page on your page
  • render_button - Set this to false to remove the "chatbot button"

In addition to the above additional QUERY parameters, you'll need to create a "host HTML element" where the chatbot is injected. Below is an example taken from the video above.

<div id="foo">
</div>

If you apply all the above changes, the chatbot button will not render on your page, and the chatbot will initialise inside the host HTML element, making it initially visible such as illustrated in the above video. In the above host HTML the `ID`` of your element is "foo", implying your embed script should resemble the following.

/include-javascript?parent_node=foo&render_button=false&css=scandinavian-chocolate-inline.....

Notice, for the time being we only have one theme that actually support this, but we will be adding additional themes in the future. We will also add UI in the embed form of your dashboard allowing you to parametrise your embed script automatically. But for the time being the process is a little bit manual and requires some basic understanding of HTML to implement.

The only theme you can do this with for the time being is our "scandinavian-chocolate-inline" theme. If you're CSS savvy, you can easily create your own theme based upon the existing themes and add the following to your custom theme at the bottom of your CSS file.

/* This is the ONLY thing you need to add to an existing theme to have it become "inline" */
.aista-chat-wnd {
  width: 100% !important;
  max-width: 100% !important;
  overflow: auto !important;
  position: relative !important;
  display: block !important;
  z-index: unset !important;
}
.aista-chat-close-btn {
  display: none !important;
}

What the above CSS does is basically to "undo" the absolute positioning of your chatbot, for then to hide the close button, preventing the user from being able to close the chatbot.

Thomas Hansen

Thomas Hansen I am the CEO and Founder of AINIRO.IO, Ltd. I am a software developer with more than 25 years of experience. I write about Machine Learning, AI, and how to help organizations adopt said technologies. You can follow me on LinkedIn if you want to read more of what I write.

Published 29. Sep 2023

WFM Labs, using AI to Retain Employees

There's a lot of talk about AI replacing human workers, but at WFM Labs they're using AI to prioritize employees first and create better ROI.

Read More

Improving Chatbot Response time 30x

We have just improved our chatbot's response time 30x. It works by implementing OpenAI 'streaming' which returns one word at the time.

Read More

Our Shopify ChatGPT Chatbot sold product for $8,237.6 in 7 days

We're now starting to see real figures on our ChatGPT chatbot and how much extra sales it generates,and the numbers are unbelievable

Read More