> For the complete documentation index, see [llms.txt](https://docs.nlx.ai/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nlx.ai/platform/developers/conversation-sdk/examples/advanced/embedded-mode.md).

# Embedded mode

Normally Touchpoint shows up as a launch icon in the bottom right corner of your webpage and then as floating UI on top of your existing content (in text and voice mode covering up a substantial portion of your UI).

However, this may not be suitable for every app: sometimes you may want to control both the layout as well as the exact way the application is opened. Embedded mode is designed to solve this problem.

<pre class="language-html"><code class="lang-html">&#x3C;!doctype html>
&#x3C;html lang="en">
  &#x3C;head>
    &#x3C;meta charset="UTF-8" />
    &#x3C;title>Touchpoint&#x3C;/title>
  &#x3C;/head>

  &#x3C;body
    style="
      background-image: url(https://platform.nlx.ai/onboarding-bg/voiceplus.webp);
      background-size: cover;
      color: white;
    "
  >
    &#x3C;div style="width: 40vw; height: 80vh; margin: auto; padding-top: 10vh">
<strong>      &#x3C;nlx-touchpoint
</strong><strong>        id="touchpoint"
</strong><strong>        style="display: block; height: 100%"
</strong><strong>      >&#x3C;/nlx-touchpoint>
</strong>    &#x3C;/div>
    &#x3C;script type="module">
      import "https://unpkg.com/@nlxai/touchpoint-ui/lib/index.js?module";

      document.addEventListener("DOMContentLoaded", () => {
<strong>        touchpoint.touchpointConfiguration = {
</strong><strong>          config: {
</strong>          applicationUrl: "REPLACE_WITH_APPLICATION_URL",
          headers: {
            "nlx-api-key": "REPLACE_WITH_API_KEY"
<strong>            },
</strong><strong>            languageCode: "en-US",
</strong><strong>          },
</strong><strong>        };
</strong>      });
    &#x3C;/script>
  &#x3C;/body>
&#x3C;/html>

</code></pre>

This will result in the following:

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

As you can see, we have complete control via HTML on where and when the touchpoint UI will be rendered.


---

# 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://docs.nlx.ai/platform/developers/conversation-sdk/examples/advanced/embedded-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.
