# Sources

The sources section helps you prepare an option list for an input. There are 2 types of sources,

| Type    | Description                                   |
| ------- | --------------------------------------------- |
| static  | pre-defined and fixed option list             |
| dynamic | request a dynamic option list via an API call |

### Create Source <a href="#create-source" id="create-source"></a>

![mini-app2](https://docs.uchat.com.au/assets/img/app2-57.8ba3ec27.png)

Follow steps 1 to 7 in the above screenshot to create a source and start editing. Once a source type is selected, you are unable to change it.

### Static Source <a href="#static-source" id="static-source"></a>

![mini-app2](https://docs.uchat.com.au/assets/img/app2-58.334f5488.png)

Click on **Add Item** to add as many options as needed. The label is what to display to users and the value is what will be actually stored in the app field.

### Dynamic Source <a href="#dynamic-source" id="dynamic-source"></a>

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

Configure the [external request](/help-center/flow-builder/advanced-actions/external-request.md) to get the option list.

Specify the path for the whole list first, and the **relative** paths for getting the value and label in each item of the list.

### Use Source <a href="#use-source" id="use-source"></a>

Sources can be used wherever you edit an input item:

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

Choose **Select** in the input type and pick a source in the drop-down list.

This is the user interface for a static source and dynamic source in a web form:

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

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


---

# 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.rapidbott.com/help-center/mini-apps/mini-app-2.0/sources.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.
