No description
  • Python 98.4%
  • Just 1.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eddy Hintze 651c1b3090
All checks were successful
Tag & Publish / tag-and-publish (push) Successful in 4s
feat: add tag and publish workflow for PyPI
2026-03-07 08:54:34 -05:00
.forgejo/workflows feat: add tag and publish workflow for PyPI 2026-03-07 08:54:34 -05:00
fw_nodes_ai feat: replace custom SSRF validation with built-in validate_url function 2026-03-04 23:21:00 -05:00
tests fix: update test for credential_type string instead of credential_schema 2026-03-01 11:15:20 -05:00
.gitignore feat: initialize fw-nodes-ai package 2026-02-26 22:49:10 -05:00
justfile feat: initialize fw-nodes-ai package 2026-02-26 22:49:10 -05:00
pyproject.toml feat: add workflow for publishing to PyPI 2026-03-05 20:13:50 -05:00
README.md fix: add PyPI version badge to README 2026-03-05 20:30:13 -05:00

Flowire AI Nodes

PyPI version

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.