Skip to main content

Build workflow with natural language

Project description

floword

Release Build status codecov Commit activity License

Backend implementation for building workflow with natural language

Installation

We recommend using uv to manage your environment.

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh  # For macOS/Linux
# or
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"  # For Windows

Then you can use uvx floword@latest strat as commands for running the floword server.

Docker is also supported. You can use docker pull ghcr.io/ai-zerolab/floword:latest to pull the image from Github Container Registry.

(WIP) You can found deployment instructions in deploy directory.

Configuration

Via Environment Variables

You can use .env file or environment variables to configure floword. All environment variables should be prefixed with FLOWORD_ (case-insensitive).

Available options:

Authentication

  • FLOWORD_JWT_SECRET_TOKEN: Secret token for JWT authentication. Default: None
  • FLOWORD_ALLOW_ANONYMOUS: Allow anonymous access. Default: True

Database Configuration

  • FLOWORD_SQLITE_FILE_PATH: Path to SQLite database file. Default: ./floword.sqlite (in current working directory)
  • FLOWORD_USE_POSTGRES: Use PostgreSQL instead of SQLite. Default: False
  • FLOWORD_PG_USER: PostgreSQL username. Default: postgres
  • FLOWORD_PG_PASSWORD: PostgreSQL password. Default: postgres
  • FLOWORD_PG_HOST: PostgreSQL host. Default: localhost
  • FLOWORD_PG_PORT: PostgreSQL port. Default: 5432
  • FLOWORD_PG_DATABASE: PostgreSQL database name. Default: floword

Model Configuration

  • FLOWORD_DEFAULT_MODEL_PROVIDER: Default LLM provider. Default: openai
  • FLOWORD_DEFAULT_MODEL_NAME: Default model name. Default: None
  • FLOWORD_DEFAULT_MODEL_KWARGS: Additional arguments for the model (as JSON string). Default: None
  • FLOWORD_DEFAULT_CONVERSATION_SYSTEM_PROMPT: Default system prompt for conversations. Default: Content from floword/prompts/system-conversation.md
  • FLOWORD_DEFAULT_WORKFLOW_SYSTEM_PROMPT: Default system prompt for workflows. Default: Content from floword/prompts/system-workflow.md

Config MCP Server

Use FLOWORD_MCP_CONFIG_PATH to specify the path to the MCP configuration file. Default: ./mcp.json (in current working directory)

The MCP configuration file should be a json file with the following structure:

{
  "mcpServers": {
    "zerolab-toolbox": {
      "args": ["mcp-toolbox@latest", "stdio"],
      "command": "uvx",
      "env": {
        "FIGMA_API_KEY": "your-figma-api-key"
      }
    },
    "sse-server": {
      "url": "http://localhost:8000",
      "headers": {},
      "timeout": 5,
      "sse_read_timeout": 300
    }
  }
}

Development

Local Setup

Fork the repository and clone it to your local machine.

# Install in development mode
make install
# Activate a virtual environment
source .venv/bin/activate  # For macOS/Linux
# or
.venv\Scripts\activate  # For Windows

Running Tests

make test

Running Checks

make check

Building Documentation

make docs

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the terms of the license included in the repository.

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

floword-0.0.1.tar.gz (150.3 kB view details)

Uploaded Source

Built Distribution

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

floword-0.0.1-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file floword-0.0.1.tar.gz.

File metadata

  • Download URL: floword-0.0.1.tar.gz
  • Upload date:
  • Size: 150.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for floword-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eb9c595b216e5671b6dd50cc4d641d73a69536d03b84c9f37520317cd8b502ba
MD5 852333e8138a620769c622a804602f42
BLAKE2b-256 1a869fe46fe38557308b4c0e6754456dc7e04bd507b92b64d7c1db372f6a6e0b

See more details on using hashes here.

File details

Details for the file floword-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: floword-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for floword-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8bd3b5d5de61ffa9413b35ca4452f1812ec8a746c318e84c22e114b2db2eb7
MD5 68cfed4ac8a5618bc486b9e3f150187c
BLAKE2b-256 95b3926a41edd2d60c8614ba694d9435c24e3f069f9d8779cea87f6ceede0884

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