# Embedded Chat Widgets

{% hint style="info" %}
GenAI Studio lets you embed chat widgets into your website using a simple `<script>`tag. This provides a seamless way for users to interact with your chatbot directly from your website.
{% endhint %}

## Configuration Options <a href="#configuration-options" id="configuration-options"></a>

When creating an embedded chat widget, you have several configuration options available to customize its behavior and appearance.

<figure><img src="/files/jjLZJtXCtjAVp385pQmn" alt=""><figcaption></figcaption></figure>

### Workspace <a href="#workspace" id="workspace"></a>

The workspace setting determines which workspace your chat window will be based on. All defaults will be inherited from the selected workspace unless overridden by the specific configuration options.

### Allowed Chat Method <a href="#allowed-chat-method" id="allowed-chat-method"></a>

You can set how your chatbot should operate using the allowed chat method. There are two options:

* <mark style="color:blue;">**Chat**</mark><mark style="color:blue;">: The chatbot will respond to all questions regardless of context.</mark>
* <mark style="color:blue;">**Query**</mark><mark style="color:blue;">: The chatbot will only respond to chats related to documents in the workspace.</mark>

### Restrict Requests from Domains <a href="#restrict-requests-from-domains" id="restrict-requests-from-domains"></a>

This filter allows you to block any requests that come from domains other than the specified list. Leaving this field empty means anyone can use your embedded chat widget on any site.

### Max Chats per Day <a href="#max-chats-per-day" id="max-chats-per-day"></a>

You can limit the number of chats this embedded chat widget can process in a 24-hour period. Setting this value to zero means unlimited chats per day.

### Max Chats per Session <a href="#max-chats-per-session" id="max-chats-per-session"></a>

You can limit the number of chats a session user can send with this embedded chat widget in a 24-hour period. Setting this value to zero means unlimited chats per session.

### Enable Dynamic Model Use <a href="#enable-dynamic-model-use" id="enable-dynamic-model-use"></a>

By enabling dynamic model use, you allow the setting of the preferred LLM model to override the workspace default.

### Enable Dynamic LLM Temperature <a href="#enable-dynamic-llm-temperature" id="enable-dynamic-llm-temperature"></a>

Enabling dynamic LLM temperature allows the setting of the LLM temperature to override the workspace default.

### Enable Prompt Override <a href="#enable-prompt-override" id="enable-prompt-override"></a>

By enabling prompt override, you allow the setting of the system prompt to override the workspace default.

## <mark style="color:blue;">Embedding the Chat Widget</mark> <a href="#embedding-the-chat-widget" id="embedding-the-chat-widget"></a>

<figure><img src="/files/Wqx89Y4xb13fukMIFtpu" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">After creating an embedded chat widget, you will be provided with a link that you can publish on your website using a simple</mark> <mark style="color:blue;"></mark><mark style="color:blue;">`<script>`</mark> <mark style="color:blue;"></mark><mark style="color:blue;">tag. This allows you to easily integrate the chat widget into your website's HTML code.</mark>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://genai-studio.gitbook.io/docs/system-configuration/tools/embedded-chat-widgets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
