> For the complete documentation index, see [llms.txt](https://docs.locoia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.locoia.com/embed-white-label-portal/embed-admin-setup/5.-testing/testing-example.md). Agents can also search and read this documentation through its [MCP server](https://docs.locoia.com/~gitbook/mcp).

# Testing example

How to test Embed configuration with a local file

For simplicity, the testing example uses Embed with one Flow and a local HTML file.

1. Build Embed Flow, keep all Connector Auth empty

<figure><img src="https://291121471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McrRFZHYH27bqKzOVDd%2Fuploads%2F3E54FHbWfGyangOhkjHd%2FEmbed_Flow.png?alt=media&amp;token=8447ba6d-2980-41da-adb7-e1522f5d9f99" alt=""><figcaption></figcaption></figure>

2. Create an Embed with one Group, specify the recently created Flow, set **file://\*** in  Allowed domains.

<figure><img src="https://291121471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McrRFZHYH27bqKzOVDd%2Fuploads%2FSvmkNMn7QcA2R8BozNcp%2FAllowed_domains.png?alt=media&amp;token=7fbea671-f77b-489d-9547-b5a94c793ef7" alt=""><figcaption></figcaption></figure>

3. Generate JWT, e.g. using the free website  <https://jwt.io/>. You just need to paste a [payload](https://docs.locoia.com/pages/-MdTSrokY-822qYwl9qO#2.-creating-jwt) and a [secret generated in Embed](https://docs.locoia.com/embed-white-label-portal/embed-admin-setup/2.-configure-embed.md).
4. Replace the **token** variable in the iframe code with JWT generated in the previous step.
5. Prepare an **.html** file on your local machine (in this example, text.html) and insert the iframe code in there.
6. Open the **.html** fil&#x65;**.** If you set it as required in the Embed settings, you'll see a Consent screen first. After consent, Groups and Flows from embed settings should be displayed. Here you can set up the integrations and check whether they work as expected.

<figure><img src="https://291121471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McrRFZHYH27bqKzOVDd%2Fuploads%2FaJs4UsWrYa1AJcsNPcC0%2FTest_Ebmed_File.png?alt=media&amp;token=fd1c143d-53d4-46f5-9dd0-a3e789a2b5d4" alt=""><figcaption></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 by asking a question.

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

```
GET https://docs.locoia.com/embed-white-label-portal/embed-admin-setup/5.-testing/testing-example.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.
