> For the complete documentation index, see [llms.txt](https://docs.stoobly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoobly.com/guides/how-to-record-requests/how-to-create-scenarios.md).

# How to Create Scenarios

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

## Background

{% content-ref url="/pages/-MaqwgidRyGQ24EvuqhN" %}
[Request](/core-concepts/mock-api/requests.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MaqwD0Jo7DUdY95\_N3w" %}
[Scenarios](/core-concepts/mock-api/scenarios.md)
{% endcontent-ref %}

## Prerequisites

1. [Install the agent](/getting-started/install-and-run.md)

## Creating a Scenario

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

{% content-ref url="/pages/xglcrCBgjHoadxMKQvrw" %}
[Creating from the UI](/guides/how-to-record-requests/how-to-create-scenarios/creating-from-the-ui.md)
{% endcontent-ref %}

{% content-ref url="/pages/lycztZNFepbfbJCBxGJD" %}
[Creating from the CLI](/guides/how-to-record-requests/how-to-create-scenarios/creating-from-the-cli.md)
{% endcontent-ref %}

## Notes

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

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