# 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 %}


---

# 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.stoobly.com/guides/how-to-record-requests/how-to-create-scenarios.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.
