Skip to main content

Overview

Quraite provides a built-in adapter for Flowise. This adapter allows you to connect any Flowise flow to Quraite and run evaluations on it. The adapter simply calls your deployed Flowise HTTP endpoint and converts requests/responses into Quraite’s agent format.

Prerequisites

  • Flowise instance with a deployed flow (and its prediction endpoint URL).
  • Quraite dependencies: quraite (Flowise support is built into the core package).
  • Any authentication needed for your Flowise deployment (e.g., an API key).

Configure Your Flowise Flow

In Flowise, build and deploy your flow as usual. Once deployed, copy its prediction API endpoint and any required headers. For example:
  • API URL: https://cloud.flowiseai.com/api/v1/prediction/<YOUR_FLOW_ID>
  • Headers: {"Authorization": "Bearer <YOUR_API_KEY>"}

Create the Flowise Adapter

In your Python app, instantiate a FlowiseAdapter with the Flowise endpoint details:
from quraite.adapters import FlowiseAdapter


flowise_adapter = FlowiseAdapter(
    api_url="https://cloud.flowiseai.com/api/v1/prediction/<YOUR_FLOW_ID>",
    headers={"Authorization": "Bearer <YOUR_API_KEY>"},
)

Run the Flow

Once you have the adapter, expose it using Quraite’s run_agent helper:
if __name__ == "__main__":
    from quraite import run_agent

    run_agent(
        flowise_adapter,
        port=8080,
        host="0.0.0.0",
        tunnel="cloudflare",
    )

End-to-End Examples