# How to Create Scenarios

This page provides a guide on how to create Stoobly Scenarios.

## Background

{% content-ref url="../../core-concepts/mock-api/requests" %}
[requests](https://docs.stoobly.com/core-concepts/mock-api/requests)
{% endcontent-ref %}

{% content-ref url="../../core-concepts/mock-api/scenarios" %}
[scenarios](https://docs.stoobly.com/core-concepts/mock-api/scenarios)
{% endcontent-ref %}

## Prerequisites

1. [Install the agent](https://docs.stoobly.com/getting-started/install-and-run)

## Creating a Scenario

A scenario can be created from either the UI or the CLI:

{% content-ref url="how-to-create-scenarios/creating-from-the-ui" %}
[creating-from-the-ui](https://docs.stoobly.com/guides/how-to-record-requests/how-to-create-scenarios/creating-from-the-ui)
{% endcontent-ref %}

{% content-ref url="how-to-create-scenarios/creating-from-the-cli" %}
[creating-from-the-cli](https://docs.stoobly.com/guides/how-to-record-requests/how-to-create-scenarios/creating-from-the-cli)
{% endcontent-ref %}

## Notes

{% hint style="info" %}
Newly created scenarios will have no requests inside.

See our guides on [How to Record Requests](https://docs.stoobly.com/guides/how-to-record-requests) to learn how to populate scenarios.
{% endhint %}
