# Flowise

Flowise is a low-code visual tool for building LLM applications and AI agents using a drag-and-drop interface.

## Prerequisites

* A Flowise instance (self-hosted or cloud)
* Your Tensorix API key from [app.tensorix.ai](https://app.tensorix.ai)

## Configuration

Flowise connects to Tensorix through the **ChatOpenAI Custom** node, which allows you to specify a custom OpenAI-compatible endpoint.

### Step 1: Add ChatOpenAI Custom Node

1. Open your Flowise canvas
2. In the left sidebar, navigate to **Chat Models**
3. Drag the **ChatOpenAI Custom** node onto your canvas

### Step 2: Configure the Node

Configure the ChatOpenAI Custom node with these settings:

| Parameter      | Value                         |
| -------------- | ----------------------------- |
| **Base Path**  | `https://api.tensorix.ai/v1`  |
| **Model Name** | `deepseek/deepseek-chat-v3.1` |

{% hint style="info" %}
Use the full model ID including the provider prefix (e.g., `deepseek/deepseek-chat-v3.1`, `z-ai/glm-5.1`).
{% endhint %}

### Step 3: Create API Credential

1. Click the **Credential** field and select **Create New**
2. Select **OpenAI API** as the credential type
3. Enter your Tensorix API key
4. Save the credential

### Step 4: Adjust Optional Parameters

You can customize these optional settings:

| Parameter       | Description                | Default       |
| --------------- | -------------------------- | ------------- |
| **Temperature** | Controls randomness (0-1)  | 0.7           |
| **Max Tokens**  | Maximum response length    | Model default |
| **Streaming**   | Enable streaming responses | true          |

## Example Configurations

### General Chat

```
Base Path: https://api.tensorix.ai/v1
Model Name: deepseek/deepseek-chat-v3.1
Temperature: 0.7
```

### Code Generation

For code-related tasks, use a coding-optimized model:

```
Base Path: https://api.tensorix.ai/v1
Model Name: z-ai/glm-5.1
Temperature: 0.3
```

{% hint style="info" %}
**Recommended Coding Models:**

* `z-ai/glm-5.1` - Best for tool calling and structured outputs
* `minimax/minimax-m2.5` - Best for complex reasoning tasks
  {% endhint %}

### Reasoning Tasks

```
Base Path: https://api.tensorix.ai/v1
Model Name: minimax/minimax-m2.5
Temperature: 0.5
```

## Building a Chatflow

Here's how to create a basic chatflow with Tensorix:

1. Add a **ChatOpenAI Custom** node and configure as shown above
2. Add a **Chat Input** node
3. Connect Chat Input → ChatOpenAI Custom
4. Add a **Chat Output** node
5. Connect ChatOpenAI Custom → Chat Output
6. Click **Save Chatflow**

## Building an AI Agent

To create an agent with tools:

1. Add a **ChatOpenAI Custom** node configured for Tensorix
2. Add an **Agent** node (e.g., OpenAI Functions Agent)
3. Connect your model to the Agent's LLM input
4. Add tool nodes (Calculator, Web Search, etc.)
5. Connect tools to the Agent
6. Add Chat Input and Chat Output nodes

{% hint style="warning" %}
For agent workflows that require tool calling, use `z-ai/glm-5.1` as it has the best tool calling support.
{% endhint %}

## Available Models

Browse all available models at [app.tensorix.ai/models](https://app.tensorix.ai/models).

| Model ID                      | Best For                           |
| ----------------------------- | ---------------------------------- |
| `deepseek/deepseek-chat-v3.1` | General chat, balanced performance |
| `z-ai/glm-5.1`                | Tool calling, code generation      |
| `minimax/minimax-m2.5`        | Reasoning, functions               |
| `moonshotai/kimi-k2.5`        | Vision, long context               |
| `openai/gpt-4.1`              | Premium quality                    |

## Troubleshooting

### "Invalid API Key" Error

* Verify your API key at [app.tensorix.ai](https://app.tensorix.ai)
* Ensure the credential type is set to **OpenAI API**
* Check that the Base Path is exactly `https://api.tensorix.ai/v1`

### "Model Not Found" Error

* Use the full model ID including the provider (e.g., `deepseek/deepseek-chat-v3.1`)
* Check available models at [app.tensorix.ai/models](https://app.tensorix.ai/models)

### Streaming Issues

If responses are slow or not streaming:

* Enable the **Streaming** option in the node settings
* Ensure your Flowise version supports streaming

## Support

Need help? Contact us at <support@tensorix.ai>


---

# 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.tensorix.ai/automation-platforms/flowise.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.
