Skip to main content

AI/LLM nodes for Flowire workflow automation

Project description

Flowire AI Nodes

AI/LLM nodes for Flowire workflow automation. This package provides nodes for sending prompts to LLM providers and getting responses.

Installation

cd flowire-app/backend
uv pip install fw-nodes-ai

Then enable the package in your .env file:

# .env (comma-separated list)
INSTALLED_NODE_PACKAGES=fw-nodes-core,fw-nodes-ai

Included Nodes

Node Description
LLM Prompt Send a prompt to an LLM and get a response

Supported Providers

Provider API Style Auth
OpenAI OpenAI API key
Anthropic Anthropic API key
Google Gemini OpenAI-compatible API key
Groq OpenAI-compatible API key
Mistral OpenAI-compatible API key
Ollama OpenAI-compatible None (local)
Custom OpenAI-compatible API key

Usage Example

LLM Prompt

Send a prompt to any supported LLM provider:

# Node configuration:
{
    "credential_id": "your-llm-credential",
    "model": "gpt-4o",
    "system_prompt": "You are a helpful assistant.",
    "user_message": "Summarize this text: {{previous-node.output}}",
    "temperature": 0.7,
    "response_format": "text"
}

# Outputs:
# - response: LLM response (text string or parsed JSON object)
# - model: Model that was used
# - usage: Token usage statistics (prompt_tokens, completion_tokens, total_tokens)
# - finish_reason: Why the LLM stopped generating
# - rate_limits: Provider rate limit status

JSON Mode

Request structured JSON output:

{
    "credential_id": "your-llm-credential",
    "model": "gpt-4o",
    "user_message": "Extract the name and age from: John is 30 years old",
    "temperature": 0.0,
    "response_format": "json",
    "json_schema": {
        "name": "extraction",
        "strict": true,
        "schema": {
            "type": "object",
            "properties": {
                "name": {"type": "string"},
                "age": {"type": "integer"}
            },
            "required": ["name", "age"]
        }
    }
}

# Output response will be a parsed JSON object:
# {"name": "John", "age": 30}

Development

# Install with dev dependencies
uv sync --all-extras

# Run linter
just check

# Run tests
just test

Project Structure

fw-nodes-ai/
├── fw_nodes_ai/
│   ├── __init__.py
│   ├── credentials.py
│   ├── providers.py
│   └── nodes/
│       ├── __init__.py
│       └── llm_prompt.py
├── tests/
├── pyproject.toml
└── README.md

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fw_nodes_ai-0.0.1a1.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fw_nodes_ai-0.0.1a1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file fw_nodes_ai-0.0.1a1.tar.gz.

File metadata

  • Download URL: fw_nodes_ai-0.0.1a1.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fw_nodes_ai-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 feb5e8db2d4b5111a1dbc395f8789a42f459656a24890ad36d18bfb84b01e8d8
MD5 586374e113eeb1bde45a2bf863338a48
BLAKE2b-256 973f01eb5e784a1e78ad3a228451f919bfd5877ea057396cff7378dffdb5ebca

See more details on using hashes here.

File details

Details for the file fw_nodes_ai-0.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: fw_nodes_ai-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fw_nodes_ai-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 266c025bb8dfdf7aa282bed2a31b4a735fa77b22b81cc356b06d41804457f7fd
MD5 38e8c9f41702ef1fa748a6a8f46e6f31
BLAKE2b-256 b0146ddd3c4b6057abbc94ce2878c2f4c72958411de17afea6c9c7ff653cb9b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page