# Umay iFrame

## Step 1 - Integration

* Simply Include IFrame Script,
* You can call any function you want from the injected umayApi.

## Step 1.1 - Frame Script

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

* Add Listener Frame,
* You can simply use iframes as “listen” and “content”.

## Step 1.2 - Listener Frame

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

<figure><img src="/files/0Bm7oVktMfT1NXoDMItH" alt=""><figcaption></figcaption></figure>

* Connect
* For example, you can use the wallet connection For example, you can use the wallet connection by calling the “connect” function in umayApi.

## Step 1.3 - Call Connect code in your wallet connection event

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

When you connect you can use these features:

## Step 1.4 - Edit Profile

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

## Step 1.5 - View Profile

<figure><img src="/files/1xQcNWw6ZjGkOhNp0tKm" alt=""><figcaption></figcaption></figure>

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

## Step 1.6 - Optional: Size of the IFrame

<figure><img src="/files/7hk7B9rrXK6VICsV3fl6" alt=""><figcaption></figcaption></figure>


---

# 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://umay-protocol.gitbook.io/umay-protocol/protocol/umay-iframe.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.
