AI HelpCenter | YourGPT

Find answers to your questions

Customising Chat Widget using Code
Add branding, legal info, and customise to fit your site’s experience

This cookbook recipe will help you customise the appearance and behaviour of the YourGPT Chatbot widget on your website. We also provide Chatbot SDK customise the widget styling according to your need.


Whether you want to change its look, add custom text, or include important disclaimers—this guide will walk you through it step-by-step.


✏️ Section 1: Show a Notice Before the Chat Starts

You may want to inform users that using the chatbot means accepting your terms, privacy policy, or disclaimers.

This section shows how to display a notice message below the chat input without altering the core widget code.


📦 What This Does

  • Replaces the default .brandingBar below the input box

  • Adds your custom message or link (e.g. Privacy Policy)

  • Visible before the user starts chatting


🛠️ Steps to Implement

Customising branding
  1. Go the Widget Setting

  2. Scroll to the Branding Section

  3. Add the Javascript Code:

document.querySelector(".brandingBar").innerHTML = "<p style='margin: 0 0 2px 0; font-size: 12px;'>By using the Chatbot you agree to our <a href='#' style='color: #0066cc; text-decoration: underline; font-weight: 500;'>Privacy Policy</a></p>";
  1. Save the Changes.


📝 Example Output

This script will show the following message inside the widget interface:

Example

By using the Chatbot you agree to our [Privacy Policy]

You can change the message and link as needed.


🧩 More Customisation Options (Coming Soon)

Want to do more with your widget? Upcoming sections will include:

  • Full Widget Customisation

  • Add animated Backgrounds

  • & more

Was this article helpful?
©2025
Powered by YourGPT