# Workflow Environment

Workflow app (UI) connects to an [Inference Server](https://inference.roboflow.com/) to:

* Fetch available Workflow Blocks (including their IO definitions, icons, etc.)
* Run the Workflow (using the `Run` button). In that case, UI sends over workflow definition and input (eg video file) to the server, which does workflow execution and returns back the results to the UI.

By default, Workflow app (UI) will connect to [Serverless API](/deploy/serverless-hosted-api-v2.md), which can be found on the top-left corner of the Workflow editor:

<figure><img src="/files/0XujNJA94wEaMxlflYgH" alt=""><figcaption></figcaption></figure>

If you click on the "Serverless API" text, you'll be able to select which Infernece Server you want to connect to:

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

### Troubleshooting

#### Local Device

In case you self-host the inference server on `localhost` , you might get a "Error connecting" message. Reasons we have seen this happen:

* You're using Brave browser which blocks localhost requests. In this case, turn off Brave Shields (the lion button next to the URL)
* Privacy extensions (like NoScript)
* Enterprise browser policies


---

# 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.roboflow.com/workflows/workflow-environment.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.
