Popup AI Chatbot

The popup AI Chatbot can be embedded in your product to provide users with a convenient assistant that answers questions using information from your docs. You can customize how it looks and how it is triggered by your user from within your product.

It displays as a popup on your screen.

Image alt text
Image alt text

Installation Code

Insert the script below into the head of your product's index.html file.

Script to Insert

Inserted Script in index.html

Popup AI Chatbot Script

html
                  

Mount Properties

These are the properties you pass in when mounting your Umbria component as shown above. They are used to initialize and stylize your Umbria component. 

Required Properties

Property

Description

Data Type

siteId

The id of the site you wish your chatbot to pull answers from; can be found in your Site Settings

string

hotkey

Key(s) to press to trigger chatbot

TKeyCombo

TKeyCombo

This data type specifies a hotkey combination. An example for the hotkey Ctrl + c is provided below.

      
Style Properties (Optional)

These optional properties allow you to customize the Fullscreen AI Chatbot including changes to theme colors, wording, and size.

Property

Description

Data Type

Default

zIndex

Control the stacking order of the chatbot on the webpage

number

9999

width

Width of the chatbot

number

500

height

Height of the chatbot

number

500

right

Positions chatbot relative to right-hand side of screen 

number

0

bottom

Positions chatbot relative to bottom side of screen 

number

0

headerColor

Color of header background in chatbot

string: can be entered as rgb or hex

'#000000'

headerIconColor

Color of icon in header of chatbot

string: can be entered as rgb or hex

'#FFFFFF'

headerTextColor

Color of header text in chatbot

string: can be entered as rgb or hex

'#FFFFFF'

entryIconColor

Color of icons in chatbot answers

string: can be entered as rgb or hex

'#000000'

entryIconBorderColor

Color of border on icons in chatbot answers

string: can be entered as rgb or hex

'#000000'

searchButtonIconColor

Color of search button icon in chatbot

string: can be entered as rgb or hex

'#FFFFFF'

searchButtonBackgroundColor

Color of search button background in chatbot

string: can be entered as rgb or hex

'#000000'

title

Title found at the top of the chatbot

string

'AI Documentation Assistant'

initialPrompt

The initial message from the chatbot to the user

string

'Hello, how can I help you?'

searchPlaceholder

The message that is a placeholder in the search bar

string

'What do you need?'

searchButtonIconColor

The color of the magnifying glass icon found to the right of the search bar

string: can be entered as rgb or hex

'#FFFFFF'

searchButtonIconBackgroundColor

The color of the background of the magnifying glass icon found to the right of the search bar

string: can be entered as rgb or hex

'#000000'

headerText

The title found at the top of the chatbot

string

'AI Documentation Assistant

initialPrompt

The text of the initial message sent by the chatbot

string

'Hello, how can I help you?

searchPlaceholder

The placeholder in the chatbot searchbar

string

What do you need?

showFloatingBadge

Whether or not to show the floating circular badge which can be used to trigger the chatbot

bool

false

floatingBadgeBackgroundColor

Background color of the floating badge

string: can be entered as rgb or hex

'#000000'

floatingBadgeTextColor

Color of the icon of the floating badge

string: can be entered as rgb or hex

'#FFFFFF'

floatingBadgeRight

Positions floating badge relative to right-hand side of screen 

number

10

floatingBadgeBottom

Positions floating badge relative to bottom of screen 

number

10

floatingBadgeRadius

Radius of floating badge

number

30

Event Functions

You can use Event Functions to trigger restyle or control your chatbot from your code.

Open Chatbot

The open-chatbot-popup event function can be invoked to make this chatbot appear.

For example, this function can be called when clicking an icon or button to trigger this chatbot.

file.tsx

java
 
Update Chatbot

The update-chatbot-popup event function can be invoked to restyle the chatbot programmatically. This event function takes any subset of the style parameters above.

For example, this function can be called to restyle the chatbot for light-mode or dark-mode programmatically or to customize the title of the chatbot to use your user.

file.tsx

java
 

Full Example

In the example below, we mount the chatbot-popup component to our site 663bce9d7c83fec5f654479a, configure it to be opened with the hotkey ctrl + alt + 2, stylize the width to be 500, stylize the height to be 350, and set the floating badge to appear so users can use the popup chatbot at any time by clicking the badge.

Popup AI Chatbot Script with Customization

java
                           
Last Updated On 2024-05-13
Was this page helpful?
Last Updated On 2024-05-13
Was this page helpful?

Popup AI Chatbot

The popup AI Chatbot can be embedded in your product to provide users with a convenient assistant that answers questions using information from your docs. You can customize how it looks and how it is triggered by your user from within your product.

It displays as a popup on your screen.

Image alt text
Image alt text

Installation Code

Insert the script below into the head of your product's index.html file.

Script to Insert

Inserted Script in index.html

Popup AI Chatbot Script

html
                  

Mount Properties

These are the properties you pass in when mounting your Umbria component as shown above. They are used to initialize and stylize your Umbria component. 

Required Properties

Property

Description

Data Type

siteId

The id of the site you wish your chatbot to pull answers from; can be found in your Site Settings

string

hotkey

Key(s) to press to trigger chatbot

TKeyCombo

TKeyCombo

This data type specifies a hotkey combination. An example for the hotkey Ctrl + c is provided below.

      
Style Properties (Optional)

These optional properties allow you to customize the Fullscreen AI Chatbot including changes to theme colors, wording, and size.

Property

Description

Data Type

Default

zIndex

Control the stacking order of the chatbot on the webpage

number

9999

width

Width of the chatbot

number

500

height

Height of the chatbot

number

500

right

Positions chatbot relative to right-hand side of screen 

number

0

bottom

Positions chatbot relative to bottom side of screen 

number

0

headerColor

Color of header background in chatbot

string: can be entered as rgb or hex

'#000000'

headerIconColor

Color of icon in header of chatbot

string: can be entered as rgb or hex

'#FFFFFF'

headerTextColor

Color of header text in chatbot

string: can be entered as rgb or hex

'#FFFFFF'

entryIconColor

Color of icons in chatbot answers

string: can be entered as rgb or hex

'#000000'

entryIconBorderColor

Color of border on icons in chatbot answers

string: can be entered as rgb or hex

'#000000'

searchButtonIconColor

Color of search button icon in chatbot

string: can be entered as rgb or hex

'#FFFFFF'

searchButtonBackgroundColor

Color of search button background in chatbot

string: can be entered as rgb or hex

'#000000'

title

Title found at the top of the chatbot

string

'AI Documentation Assistant'

initialPrompt

The initial message from the chatbot to the user

string

'Hello, how can I help you?'

searchPlaceholder

The message that is a placeholder in the search bar

string

'What do you need?'

searchButtonIconColor

The color of the magnifying glass icon found to the right of the search bar

string: can be entered as rgb or hex

'#FFFFFF'

searchButtonIconBackgroundColor

The color of the background of the magnifying glass icon found to the right of the search bar

string: can be entered as rgb or hex

'#000000'

headerText

The title found at the top of the chatbot

string

'AI Documentation Assistant

initialPrompt

The text of the initial message sent by the chatbot

string

'Hello, how can I help you?

searchPlaceholder

The placeholder in the chatbot searchbar

string

What do you need?

showFloatingBadge

Whether or not to show the floating circular badge which can be used to trigger the chatbot

bool

false

floatingBadgeBackgroundColor

Background color of the floating badge

string: can be entered as rgb or hex

'#000000'

floatingBadgeTextColor

Color of the icon of the floating badge

string: can be entered as rgb or hex

'#FFFFFF'

floatingBadgeRight

Positions floating badge relative to right-hand side of screen 

number

10

floatingBadgeBottom

Positions floating badge relative to bottom of screen 

number

10

floatingBadgeRadius

Radius of floating badge

number

30

Event Functions

You can use Event Functions to trigger restyle or control your chatbot from your code.

Open Chatbot

The open-chatbot-popup event function can be invoked to make this chatbot appear.

For example, this function can be called when clicking an icon or button to trigger this chatbot.

file.tsx

java
 
Update Chatbot

The update-chatbot-popup event function can be invoked to restyle the chatbot programmatically. This event function takes any subset of the style parameters above.

For example, this function can be called to restyle the chatbot for light-mode or dark-mode programmatically or to customize the title of the chatbot to use your user.

file.tsx

java
 

Full Example

In the example below, we mount the chatbot-popup component to our site 663bce9d7c83fec5f654479a, configure it to be opened with the hotkey ctrl + alt + 2, stylize the width to be 500, stylize the height to be 350, and set the floating badge to appear so users can use the popup chatbot at any time by clicking the badge.

Popup AI Chatbot Script with Customization

java
                           
Last Updated On 2024-05-13}
Was this page helpful?
Last Updated On 2024-05-13}
Was this page helpful?

Popup AI Chatbot

The popup AI Chatbot can be embedded in your product to provide users with a convenient assistant that answers questions using information from your docs. You can customize how it looks and how it is triggered by your user from within your product.

It displays as a popup on your screen.

Image alt text
Image alt text

Installation Code

Insert the script below into the head of your product's index.html file.

Script to Insert

Inserted Script in index.html

Popup AI Chatbot Script

html
                  

Mount Properties

These are the properties you pass in when mounting your Umbria component as shown above. They are used to initialize and stylize your Umbria component. 

Required Properties

Property

Description

Data Type

siteId

The id of the site you wish your chatbot to pull answers from; can be found in your Site Settings

string

hotkey

Key(s) to press to trigger chatbot

TKeyCombo

TKeyCombo

This data type specifies a hotkey combination. An example for the hotkey Ctrl + c is provided below.

      
Style Properties (Optional)

These optional properties allow you to customize the Fullscreen AI Chatbot including changes to theme colors, wording, and size.

Property

Description

Data Type

Default

zIndex

Control the stacking order of the chatbot on the webpage

number

9999

width

Width of the chatbot

number

500

height

Height of the chatbot

number

500

right

Positions chatbot relative to right-hand side of screen 

number

0

bottom

Positions chatbot relative to bottom side of screen 

number

0

headerColor

Color of header background in chatbot

string: can be entered as rgb or hex

'#000000'

headerIconColor

Color of icon in header of chatbot

string: can be entered as rgb or hex

'#FFFFFF'

headerTextColor

Color of header text in chatbot

string: can be entered as rgb or hex

'#FFFFFF'

entryIconColor

Color of icons in chatbot answers

string: can be entered as rgb or hex

'#000000'

entryIconBorderColor

Color of border on icons in chatbot answers

string: can be entered as rgb or hex

'#000000'

searchButtonIconColor

Color of search button icon in chatbot

string: can be entered as rgb or hex

'#FFFFFF'

searchButtonBackgroundColor

Color of search button background in chatbot

string: can be entered as rgb or hex

'#000000'

title

Title found at the top of the chatbot

string

'AI Documentation Assistant'

initialPrompt

The initial message from the chatbot to the user

string

'Hello, how can I help you?'

searchPlaceholder

The message that is a placeholder in the search bar

string

'What do you need?'

searchButtonIconColor

The color of the magnifying glass icon found to the right of the search bar

string: can be entered as rgb or hex

'#FFFFFF'

searchButtonIconBackgroundColor

The color of the background of the magnifying glass icon found to the right of the search bar

string: can be entered as rgb or hex

'#000000'

headerText

The title found at the top of the chatbot

string

'AI Documentation Assistant

initialPrompt

The text of the initial message sent by the chatbot

string

'Hello, how can I help you?

searchPlaceholder

The placeholder in the chatbot searchbar

string

What do you need?

showFloatingBadge

Whether or not to show the floating circular badge which can be used to trigger the chatbot

bool

false

floatingBadgeBackgroundColor

Background color of the floating badge

string: can be entered as rgb or hex

'#000000'

floatingBadgeTextColor

Color of the icon of the floating badge

string: can be entered as rgb or hex

'#FFFFFF'

floatingBadgeRight

Positions floating badge relative to right-hand side of screen 

number

10

floatingBadgeBottom

Positions floating badge relative to bottom of screen 

number

10

floatingBadgeRadius

Radius of floating badge

number

30

Event Functions

You can use Event Functions to trigger restyle or control your chatbot from your code.

Open Chatbot

The open-chatbot-popup event function can be invoked to make this chatbot appear.

For example, this function can be called when clicking an icon or button to trigger this chatbot.

file.tsx

java
 
Update Chatbot

The update-chatbot-popup event function can be invoked to restyle the chatbot programmatically. This event function takes any subset of the style parameters above.

For example, this function can be called to restyle the chatbot for light-mode or dark-mode programmatically or to customize the title of the chatbot to use your user.

file.tsx

java
 

Full Example

In the example below, we mount the chatbot-popup component to our site 663bce9d7c83fec5f654479a, configure it to be opened with the hotkey ctrl + alt + 2, stylize the width to be 500, stylize the height to be 350, and set the floating badge to appear so users can use the popup chatbot at any time by clicking the badge.

Popup AI Chatbot Script with Customization

java
                           
Last Updated On 2024-05-13
Was this page helpful?
Last Updated On 2024-05-13
Was this page helpful?
ON THIS PAGE
Popup AI Chatbot
Installation Code
Mount Properties
Required Properties
TKeyCombo
Style Properties (Optional)
Event Functions
Open Chatbot
Update Chatbot
Full Example
Back to top