> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/en/build/choose-channel/web-chat/website.md).

# Connect a Conversation Platform: Website

Connect a website channel—create a Website channel, configure its name and Agent, set up auto-replies and login, and get the website embed code.

## <mark style="color:blue;">1. Open the Settings Page</mark> <a href="#navigate-to-settings" id="navigate-to-settings"></a>

### 1. Option 1: Add a Web Customer Service Chat <a href="#path-add-web-chat" id="path-add-web-chat"></a>

In the left menu, click “ <mark style="color:blue;">Customer Service > Channels</mark>”, click “<mark style="color:blue;">＋Connect Channel</mark>” in the upper right, and select “ <mark style="color:blue;">Website</mark> ”.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-b363369406b30ab309948bb844041f929a0d865b%2Fwebsite-channel-list-add.png?alt=media" alt="Channel list with the Connect Channel button in the upper right outlined in red"><figcaption><p>Channel list: click “Connect Channel” in the upper right</p></figcaption></figure>

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-8c14c3191ba03e76504cdd15fda7ba3e2491cabd%2Fwebsite-new-channel-select.png?alt=media" alt="Select Platform step for connecting a channel, with Website outlined in red alongside LINE, Messenger, Instagram, and other platforms"><figcaption><p>“Select Platform” step: select Website</p></figcaption></figure>

### 2. Option 2: Channels Linked to an Agent <a href="#path-ai-agent-link-channel" id="path-ai-agent-link-channel"></a>

Go to <mark style="color:blue;">AI Features</mark> → <mark style="color:blue;">AI Assistants</mark> in the left sidebar, select the Agent to configure, and switch to the <mark style="color:blue;">Channels</mark> tab. Find the website channel you want to adjust and click <mark style="color:blue;">Platform Settings</mark>.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-5e4cbe8c4ddea1cd989636458fe4d4b495d9b6d9%2Fai-agent-channel-platform-settings-prod.png?alt=media" alt="Agent Channels tab, where each platform card has a Platform Settings button"><figcaption><p>Click “Platform Settings” on the Agent’s Channels tab.</p></figcaption></figure>

After configuring the channel, click <mark style="color:blue;">Back to AI Assistant Settings</mark> at the top of the page to return to the original Agent’s <mark style="color:blue;">Channels</mark> tab. This return link remains available when you switch between <mark style="color:blue;">Basic</mark>, <mark style="color:blue;">Quota</mark>, and <mark style="color:blue;">Auto-Reply Settings</mark>.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-23b4840e7805af70d9060e4db1f4166b1fc2020a%2Finbox-back-to-ai-agent-settings-prod.png?alt=media" alt="Button at the top of the channel settings page for returning to Agent settings"><figcaption><p>After configuring the channel, return directly to the original Agent’s settings page.</p></figcaption></figure>

{% hint style="info" %} <mark style="color:blue;">Back to AI Assistant Settings</mark> appears only when you enter from an Agent’s <mark style="color:blue;">Channels</mark> tab. If you enter directly from <mark style="color:blue;">Channels</mark> in the left menu, the page keeps its usual navigation.
{% endhint %}

#### Use Case: Return to an Agent After Adjusting Website Customer Service <a href="#scenario-return-to-agent" id="scenario-return-to-agent"></a>

A customer service manager needs to update the website customer service settings for the “Product Inquiry Assistant.” She clicks <mark style="color:blue;">Platform Settings</mark> on this Agent’s <mark style="color:blue;">Channels</mark> tab. After making her changes, she clicks <mark style="color:blue;">Back to AI Assistant Settings</mark> to return to the same Agent’s channel list and check other customer service entry points, without having to find the Agent again in the Agent list.

### 3. Option 3: Channel Actions <a href="#path-channel-management" id="path-channel-management"></a>

Go to “ <mark style="color:blue;">Customer Service > Channels</mark> ” in the left sidebar, find the channel you want to configure, and click the <mark style="color:blue;">Edit</mark> icon in that row’s “ <mark style="color:blue;">Actions</mark> ” column to open its configuration.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-2c01ec9accadb8f7ca338ef2b14162e7bdbfbb8a%2Fwebsite-channel-list-actions.png?alt=media" alt="Channel list with the edit, analytics, and delete icons in the first row’s Actions column outlined in red"><figcaption><p>The first icon in the “Actions” column is “Edit”</p></figcaption></figure>

## <mark style="color:blue;">2. Basic Settings</mark> <a href="#basic-settings" id="basic-settings"></a>

Each of the five categories in the “General” group on the “Basic” tab has its own detailed guide:

### 1. General Settings <a href="#general-settings" id="general-settings"></a>

For the platform name, Agent, return URL, custom domain, allowed embed domains, public access URL, and three embedding methods, see [Basic Settings](/maiagent-user-guide/en/build/conversation-settings/platform-settings/basic-settings.md).

#### Allowed Embed Domains <a href="#allowed-embed-origins" id="allowed-embed-origins"></a>

For how the embed allowlist works, configuration steps, and a checklist before enabling it, see [Basic Settings: Allowed Embed Domains](/maiagent-user-guide/en/build/conversation-settings/platform-settings/basic-settings.md#allowed-embed-origins).

### 2. Appearance Settings <a href="#appearance-settings" id="appearance-settings"></a>

For the logo, avatar, display settings, and light/dark theme colors, see [Appearance Settings](/maiagent-user-guide/en/build/conversation-settings/platform-settings/appearance-settings.md).

### 3. Feature Settings <a href="#feature-settings" id="feature-settings"></a>

For enabling the channel, file uploads, document citations, OCR, starter question option display modes, and AI awareness settings, see [Feature Settings](/maiagent-user-guide/en/build/conversation-settings/platform-settings/function-settings.md). Configure the tool display mode under [Reply Loading Display](/maiagent-user-guide/en/build/conversation-settings/platform-settings/loading-display.md#narrative-tool-display).

### 4. Interaction Settings <a href="#interaction-settings" id="interaction-settings"></a>

For greetings, conversation starters, including greeting options in Agent context, conversation display settings, satisfaction surveys, and quota exhaustion messages, see [Interaction Settings](/maiagent-user-guide/en/build/conversation-settings/platform-settings/interaction-settings.md).

#### Include Greeting Options in Agent Context <a href="#include-greeting-in-context" id="include-greeting-in-context"></a>

For behavior before and after enabling this option, use cases, and considerations, see [Interaction Settings: Include Greeting Options in Agent Context](/maiagent-user-guide/en/build/conversation-settings/platform-settings/interaction-settings.md#include-greeting-in-context).

### 5. Login Settings <a href="#login-settings" id="login-settings"></a>

**Configure an SSO Login Source**

* MaiAgent currently supports SSO (Single Sign-On) through Keycloak integration.
* Switch sources in the “ <mark style="color:blue;">Login Source</mark> ” dropdown.
* Turn on “ <mark style="color:blue;">Enable Login</mark> ”, then choose an authentication method such as AD, MaiAgent, or Keycloak under “ <mark style="color:blue;">Login Source</mark> ”. For details on each method, see [Web Chat: Login Methods](/maiagent-user-guide/en/build/choose-channel/web-chat.md#login-methods).

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-315142127e60be714106184a853579214e465358%2Fwebsite-login-source.png?alt=media" alt="Login settings with Enable Login turned on and the Login Source dropdown showing AD, MaiAgent, and Keycloak"><figcaption><p>Turn on “Enable Login,” then choose an authentication method under “Login Source”</p></figcaption></figure>

**Chat Without Logging In from an Embedded Client**

If you embed Web Chat on your website and users have already logged in to your site, turn on “ <mark style="color:blue;">Allow Embedded Clients to Chat Without Login Using Source ID</mark> ” so they can chat directly. For configuration and signature integration details, see [Chat Without Login Using a Contact Source ID](/maiagent-user-guide/en/build/choose-channel/web-chat/source-id-access.md).

**Use the Keycloak Login Identity for Tool Calls**

When Keycloak is selected as the login source, turn on “ <mark style="color:blue;">Use Keycloak Login Identity for Tool Calls</mark> ” to automatically include the visitor’s own Keycloak login credentials when the Agent calls MCP/API tools. For configuration and considerations, see [Use the Keycloak Login Identity for Tool Calls](/maiagent-user-guide/en/build/choose-channel/web-chat.md#keycloak-token-passthrough).

## <mark style="color:blue;">3. Auto-Reply Settings</mark> <a href="#auto-reply-settings" id="auto-reply-settings"></a>

Set the hours during which the bot replies here.

* Click the toggle next to each day to choose which days of the week to reply.
* Set a time range: choose the start and end times.
* Add a time range: if you need multiple ranges, click “ <mark style="color:blue;">+Add Time Range</mark> ” and configure the additional range.
* Click <mark style="color:blue;">Update</mark> to save your settings.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-573a60f91909a7ed0d8b9ad2abaa3fc28abc1033%2Fwebsite-auto-reply-settings.png?alt=media" alt="Auto-Reply Settings tab with a toggle, a 00:00 to 00:00 time range, and Add Time Range for each day from Monday through Sunday, plus an Update button in the lower right"><figcaption><p>“Auto-Reply Settings” tab: configure each day’s toggle and reply hours</p></figcaption></figure>

Auto-reply hours are configured separately for each channel. Channels on messaging platforms such as LINE, Messenger, and Instagram use the same tab. New channels default to automatic replies all day, seven days a week, and the <mark style="color:blue;">Auto-Reply Hours</mark> column in the channel list shows “24-hour replies.”

### What Happens Outside Auto-Reply Hours <a href="#outside-auto-reply-hours" id="outside-auto-reply-hours"></a>

The schedule only determines whether AI replies automatically; customer service staff can reply at any time. When a message arrives outside these hours, if the conversation has no assigned staff member, is not queued for a human, and still has auto-replies enabled:

* **AI does not reply**: the message appears in <mark style="color:blue;">All Conversations</mark> as usual, but the Agent does not answer.
* **No human handoff or offline message**: human handoff is evaluated only when AI processes a message, so it does not trigger outside auto-reply hours. The conversation is not automatically assigned to staff, and the <mark style="color:blue;">Offline Message</mark> in [Human Handoff Settings: Service Hours](/maiagent-user-guide/en/build/conversation-settings/human-handoff.md#service-hours) is not sent.
* **The conversation remains “Unassigned” until staff take over**: the conversation status bar shows “Outside AI reply hours · Awaiting staff,” and the conversation list displays an icon indicating that staff action is needed (hover text: “Outside AI reply hours. AI will not reply; staff action is required”). Staff can click <mark style="color:blue;">Take Over</mark> or <mark style="color:blue;">Assign Staff</mark>; see [Human Customer Service Takeover and Replies: Unassigned Conversations](/maiagent-user-guide/en/serve/daily-operations/human-handoff-operations.md#unassigned-queue).

If a conversation already has an assigned staff member, messages received outside auto-reply hours remain assigned to that person. Conversations queued for a human also remain queued and do not become “Unassigned.”

For example, a LINE channel has auto-reply hours set to weekdays from 09:00–18:00. When a customer asks about business hours on Saturday morning, the Agent does not answer. The conversation appears under <mark style="color:blue;">Unassigned</mark>, with the status bar showing “Outside AI reply hours · Awaiting staff.” The staff member on duty clicks <mark style="color:blue;">Take Over</mark> and replies. After 09:00 on Monday, the Agent replies to other new conversations as usual. For this conversation, which staff have already taken over, the Agent resumes replying only after staff click <mark style="color:blue;">Resolve</mark> or <mark style="color:blue;">Return to AI Agent</mark>.

{% hint style="info" %}
Conversations that call the Agent directly through the [API](https://docs.maiagent.ai/api) are not restricted by auto-reply hours.
{% endhint %}

### Use Case: Human Customer Service Only, Without AI <a href="#human-only-mode" id="human-only-mode"></a>

To let staff reply to customers in MaiAgent while temporarily keeping AI from answering (for example, just after migrating from another customer service system), turn off auto-reply hours for all seven days on this channel:

1. Open the channel’s <mark style="color:blue;">Auto-Reply Settings</mark> tab.
2. Turn off the toggles for Monday through Sunday.
3. Click <mark style="color:blue;">Update</mark>.

If you have not created a channel yet, leave <mark style="color:blue;">AI Assistant</mark> unselected during creation, then turn off the schedule afterward. AI will not reply from the moment the channel is created (creating a LINE channel switches its Webhook immediately; see [Migrate to MaiAgent from Another Platform](/maiagent-user-guide/en/build/choose-channel/line.md#migrate-from-other-line-service)).

After saving, the <mark style="color:blue;">Auto-Reply Hours</mark> column in the channel list shows “-”, and each subsequent incoming conversation is handled as described in [Outside Auto-Reply Hours](#outside-auto-reply-hours):

* **No automatic assignment**: every new conversation stays <mark style="color:blue;">Unassigned</mark>. Arrange for staff to check regularly, click <mark style="color:blue;">Take Over</mark> in a conversation before replying, or use <mark style="color:blue;">Assign Staff</mark> to assign it to a specific colleague.
* **The status bar shows “Outside AI reply hours · Awaiting staff”**: AI will not reply and someone needs to handle the conversation. It is not marked as being handled by AI.
* **To enable AI later**: return to <mark style="color:blue;">Auto-Reply Settings</mark>, enable the required days and times, and click <mark style="color:blue;">Update</mark>. The channel must have an AI assistant selected. The Agent replies to new conversations; conversations already taken over by staff remain with staff until they click <mark style="color:blue;">Resolve</mark> or <mark style="color:blue;">Return to AI Agent</mark>.

For example, a retail brand migrates its LINE Official Account to MaiAgent. While its AI answers are still being adjusted, it lets staff handle all replies. When creating the LINE channel, it leaves AI Assistant unselected, then immediately turns off auto-reply hours for all seven days. Incoming customer messages then appear under <mark style="color:blue;">Unassigned</mark>, and staff click <mark style="color:blue;">Take Over</mark> to reply. Two weeks later, once AI adjustments are complete, the brand selects an AI assistant for the channel and enables weekday auto-reply hours. The Agent then replies to new conversations.

{% hint style="warning" %}
Auto-reply hours only control MaiAgent’s AI. Native platform auto-replies, such as LINE Official Account auto-response messages and Meta Business Suite offline auto-replies, are unaffected. Disable them in the respective platform’s administration console; see [Receiving LINE Auto-Response Messages](/maiagent-user-guide/en/build/choose-channel/line.md#line-auto-response) and [FB Messenger: Customers Still Receive Automated Messages](/maiagent-user-guide/en/build/choose-channel/fb.md#faq-meta-auto-reply).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/en/build/choose-channel/web-chat/website.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
