# Enabling from the UI

{% stepper %}
{% step %}
**Visit UI**

Visit <http://localhost:4200>
{% endstep %}

{% step %}
**Configure Intercept Mode**

First change the agent mode to Mock. On the top left of the UI, expand the dropdown and choose Mock.

<figure><img src="https://3980092275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLvhXOE-py5MDUOXDKD%2Fuploads%2Fgit-blob-59a8537cbcea22875a93d3b09bb82ba1db2e4e5a%2FScreen%20Shot%202023-04-05%20at%204.38.38%20PM.png?alt=media" alt="" width="369"><figcaption><p>Figure 1. Changing agent mode</p></figcaption></figure>
{% endstep %}

{% step %}
**Configure Policy**

Similar to recording requests, click the cog icon button on the right in the navigation menu.

<div align="center"><img src="https://3980092275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLvhXOE-py5MDUOXDKD%2Fuploads%2Fgit-blob-461ab70cfc3ca1957c6bcd958a56f92f44dbce6e%2FScreen%20Shot%202023-04-05%20at%204.37.17%20PM.png?alt=media" alt="Figure 2. Agent UI navigation menu" width="375"></div>

This will take you to the **Proxy Settings** page. Optionally set which **Scenario** to mock from, otherwise all requests ever recorded will be eligible for mocking.

{% hint style="info" %}
While not required, we recommend specifying a scenario to mock requests from
{% endhint %}

<div align="left"><img src="https://3980092275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLvhXOE-py5MDUOXDKD%2Fuploads%2Fgit-blob-0ac80bd3c4b41faa3bc63ab1b35c52dd956052dc%2FScreen%20Shot%202023-04-05%20at%204.41.29%20PM.png?alt=media" alt="Figure 3. Mock General Settings"></div>
{% endstep %}

{% step %}
**Enable Intercept**

Click the **Run button** in Figure 2. to start mocking.

<div align="center"><img src="https://3980092275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLvhXOE-py5MDUOXDKD%2Fuploads%2Fgit-blob-9849379a1b438c785b04279fa422241d1b1932ae%2FScreen%20Shot%202023-04-05%20at%204.43.11%20PM.png?alt=media" alt="Figure 4. Agent set to mock requests" width="375"></div>
{% endstep %}

{% step %}
**Test**

Sending any request that was previously recorded will now return the recorded response. If the request was not recorded, a "Request not found" message will be returned. To learn more on how a request is matched, visit here.
{% endstep %}
{% endstepper %}
