> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/tutorials-1/understanding-flow-types/how-to-set-up-a-configuration-flow-in-fastn/setting-up-a-configuration-flow-with-custom-selection-options.md).

# Setting up a Configuration Flow with Custom Selection Options

If you want to create a file picker with a more flexible and dynamic interface, use a **Custom Configuration Flow** as your **Selection Type**.

With **Custom Configuration Flows**, you can design any kind of configuration flow, adding your own fields, layouts, and UI elements. This makes it ideal for cases where you need more control over the interface and logic than standard dropdown selectors can provide.

### Configure Custom Selector

* In the **Options** section, choose the **Custom** Selector type.
* Select a file picker:
  * Google Drive File Picker
  * Dropbox File Picker
  * Microsoft OneDrive File Picker

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

### **Using Custom Flow for Advanced File Picker**

> In this case, we’re using a **Custom Flow** to build a **File Picker**, because the UI is more customizable and allows you to define the exact structure and behavior you need. You can add any fields, apply your own design, and adjust the flow dynamically to fit your use case.

### Add File Type Restrictions

* After choosing your file picker, click the **File Types (+) icon**.
* Add file types (e.g., `.csv`, `.xlsx`, `.pdf`, `.jpg`).
* Save your settings.

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

{% hint style="info" %}
This ensures the widget will only accept the file types you’ve defined.
{% endhint %}

### Map Output to a Field

If you have a widget field (e.g., **files**), map the file picker output to it. The selected files will be stored in this field, and the restrictions will enforce allowed file types.

<figure><img src="/files/8KbTut0NfhPju1VeGAvc" alt=""><figcaption></figcaption></figure>

> **Result:** The widget can now collect files from users while respecting the restrictions you set.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fastn.ai/tutorials-1/understanding-flow-types/how-to-set-up-a-configuration-flow-in-fastn/setting-up-a-configuration-flow-with-custom-selection-options.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
