๐Ÿ“ฆ Stream29 / AiWorkflowActions

โ˜… 1 stars โ‘‚ 1 forks ๐Ÿ‘ 1 watching
๐Ÿ“ฅ Clone https://github.com/Stream29/AiWorkflowActions.git
HTTPS git clone https://github.com/Stream29/AiWorkflowActions.git
SSH git clone git@github.com:Stream29/AiWorkflowActions.git
CLI gh repo clone Stream29/AiWorkflowActions
Stream Stream feat: better error handling f277936 3 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .run
๐Ÿ“ resources
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ .gitmodules
๐Ÿ“„ CLAUDE.md
๐Ÿ“„ cli.py
๐Ÿ“„ config.yml
๐Ÿ“„ pyproject.toml
๐Ÿ“„ README.md
๐Ÿ“„ uv.lock
๐Ÿ“„ README.md

AiWorkflowActions

AI-powered workflow node generation for Dify workflows.

Setup

  • Install dependencies:
uv sync

  • Set your Anthropic API key:
echo "ANTHROPIC_API_KEY=your_api_key_here" > .env

Quick Start

Interactive Mode

uv run python cli.py

Load File Directly

uv run python cli.py resources/SimpleDsl.yml

CLI Commands

CommandDescription
load <file>Load and validate workflow file
nodesList all nodes in workflow
detail --node <id>Show node details and JSON data
generate --after <id> --type <type> [-m <message>]Generate new node with AI
save <file>Save workflow to file
help [command]Show help information

Generate Node Examples

# Basic generation
generate --after start_node --type llm

# With custom message
generate --after start_node --type code -m "Process JSON data"

# With title and message
generate --after start_node --type http-request --title "API Call" -m "Fetch user data"

Supported Node Types

start, end, answer, llm, code, http-request, tool, if-else, template-transform, variable-assigner, knowledge-retrieval, agent, iteration, parameter-extractor, question-classifier, iteration-start, loop-start, loop-end, variable-aggregator, document-extractor, list-operator

Validation

# Validate all DSL files
uv run python cli.py --validate-resources