# BF Streaming Proxy

{% hint style="info" %}
The streaming proxy allows you to stream generative AI directly into a BF app via messaging.
{% endhint %}

#### Workflow

1. Back end (FMS) generates the prompt and data needed for the LLM API plus the target channel for the results
2. Streaming Proxy forwrds request to the LLM
3. LLM Streams results back to proxy
4. Streaming Proxy sends messages to the target channel and calls a named action to handle the results
5. The browser receives the messges and processes results.

**Notes:**

Currently there is not rate throttling on the Proxy as the LLM generation is generally much slower than message rate limits. There can be bottle next when u\[dating the front end UI if there is a lot of post processing though.


---

# 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.klai.studio/engineering-reference-docs/bf-streaming-proxy.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.
