# AI Lens

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

## Simulation with AI Lens

Aisera AI Lens is a tool that allows Administrators to simulate their conversational bot with a webchat channel.\
\
**NOTE:** If you are a user with a custom role, make sure your role has at least the following permissions, which are required to view conversations with AI Lens:

* `intent` – **Read**
* `channels` – **Read**
* `AiseraGPT` – **Read**

### Getting Started <a href="#getting-started-pre-reqs-general-intro" id="getting-started-pre-reqs-general-intro"></a>

* Webchat channel is the default channel associated with the bot
* Select correct bot
* Login with a user

### Conversation Window <a href="#conversation-window" id="conversation-window"></a>

AI Lens lets you simulate the interaction with your bot. The simulated input **Requests** are not captured within the **Request Details** page. AI Lens is similar to runtime analysis.&#x20;

<figure><img src="/files/132bpbgzMBGGUu2LlUe0" alt="" width="563"><figcaption></figcaption></figure>

**To use AI Lens:**

1. Choose **AI Lens** in your Aisera Admin UI.
2. Select your bot from the pull-down list at the top of the **AI Lens** window. You will see a bot interface on the AI Lens window.
3. Add a **Request**. (AI Lens requests will not be recorded in Aisera analytics.)\
   \
   ![](https://support.aisera.com/hc/article_attachments/36681664138637)
4. After you add a **Request**, you will see the bot functions on the right side of your window.

<figure><img src="/files/13fO69IS9Ro4n2cbWfTr" alt=""><figcaption><p>Bot Functions Show Up on the Right Side</p></figcaption></figure>

#### Debug Workflows and Hyperflows Using AI Lens <a href="#h_01jvdp4syxhjhbrgnempxzmq0w" id="h_01jvdp4syxhjhbrgnempxzmq0w"></a>

You can use **AI Lens** to see the debug information for your bot **Workflows** and **Hyperflows** while the bot is running.

<div align="left"><figure><img src="https://support.aisera.com/hc/article_attachments/36681664138381" alt="" width="563"><figcaption><p>Viewing flowDebugInfo While Bot is Running</p></figcaption></figure></div>

&#x20;Choose the **Show More** link to see the **flowDebugInfo** and **flowDebugInfo2** methods as they are running.

<div align="left"><figure><img src="https://support.aisera.com/hc/article_attachments/36681664139533" alt="" width="563"><figcaption><p>Show More Button</p></figcaption></figure></div>

{% hint style="warning" %}
You can also test Workflows and Hyperflows using the [**Test the Node**](/aisera-platform/ai-automation-optimize-flow/ai-workflow-studio/testing-workflows.md#pdf-page-bwlrvkqhijiqw0zetekc-best-practices) button on the **AI** **Automation > AI Workflow Studio window.**
{% endhint %}

### AI Lens with Copilot Applications

Applications/bots that are using the Copilot channel default to Copilot mode in AI Lens. Applications without a Copilot channel correctly default to Webchat mode.

<img src="https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FiZkLJr3EjXkd2tHYiQJP%2Fblobs%2FKmnuopYd9soCsY3hB5xT%2FUnknown%2520image&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=ea3a116f&#x26;sv=2" alt="" height="436" width="748">

<br>


---

# 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://docs.aisera.com/aisera-platform/ai-workbench-optimize-conversations/ai-lens.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.
