> For the complete documentation index, see [llms.txt](https://how.doopage.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://how.doopage.com/api/embed-mode.md).

# Embed mode

Embed mode currently supports only for limited partners who have a reasonable design to embed our center into their application. If you are looking for embedding our Center into your software, feel free to drop us an email to <info@doopage.com> which describe your reason and your domain to embed our Center.

Example HTML code:

```
<iframe src="https://center.doopage.com/?embed=true"></iframe>
```

Parameters:

* embed = true (required)
* viewMode = single | multiple (optional)\
  Display multiple chat mode or single chat mode. Default is user recent chosen.
* companyId = \<company\_id> (optional)\
  Load a specified company. If not provided, user recent authorized company will be displayed.
* disableInboxList = true | false (optional)\
  Hide inbox list, this is useful when combining with i parameter below. Which does not allow user to switch to another inbox. Default is false.&#x20;
* i = array of inbox\_id separated by comma (optional)\
  Open these inboxes by default.

## Examples

Embed a multiple chat UIs to your website that will auto open a inbox with id `174794`

```
<iframe src="https://center.doopage.com/home?embed=true&i=174794&viewMode=multiple"></iframe>
```

<figure><img src="/files/VDevj4qYQiGczjrc92oc" alt=""><figcaption><p>Embed UI with multiple columns and auto open an inbox</p></figcaption></figure>


---

# 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 dynamically by asking a question.

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

```
GET https://how.doopage.com/api/embed-mode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
