Skip to content

feat(workflows): integration-add command for native integration steps - #52

Open
chrisaddams wants to merge 1 commit into
mainfrom
feat/workflows-integration-add
Open

chrisaddams wants to merge 1 commit into
mainfrom
feat/workflows-integration-add

Conversation

@chrisaddams

Copy link
Copy Markdown
Contributor

What

Adds anythink workflows integration-add — a named-flag convenience command (mirroring file-handler-add) for adding Integration steps (Claude, OpenAI, Slack, …) to a workflow without hand-writing the params JSON.

anythink workflows integration-add 154 analyze_ai \
  --provider claude --operation generate-text \
  --credential-source system --model claude-sonnet-4-5-20250929 \
  --input system_prompt="{{ \$anythink.steps.guard.data[0].system_prompt }}" \
  --input prompt="{{ \$anythink.steps.guard.data[0].prompt }}" \
  --on-success 381 --enabled

Why

Integration steps (backend WorkflowAction.Integration) were already creatable via step-add --action Integration --params '{...}' — the --action value is a pass-through string — but that was undocumented and required hand-authoring the snake_case params (provider / operation / credential_source / inputs). This makes it first-class and discoverable.

Changes

  • New WorkflowsIntegrationAddCommand with validation (--provider, --operation, credential-source rules, --input key=value / --inputs JSON / --model, --on-success/--on-failure).
  • step-add --action help now lists the full action set, including Integration.

Verified

workflows integration-add … --provider claude --operation generate-text … creates a working Integration step (used to wire a Claude analysis step into a report-generation workflow end-to-end).

🤖 Generated with Claude Code

Adds `workflows integration-add`, a named-flag convenience (mirroring
file-handler-add) for adding Integration steps — Claude, OpenAI, Slack,
etc. — without hand-writing the params JSON:

  anythink workflows integration-add 154 analyze_ai \
    --provider claude --operation generate-text \
    --credential-source system --model claude-sonnet-4-5-20250929 \
    --input prompt="{{ $anythink.steps.guard.data[0].prompt }}" \
    --on-success 381 --enabled

Also documents the full action list (including Integration) in the
`step-add --action` help. Integration steps were already creatable via
`step-add --action Integration --params '{...}'` (the action is a
pass-through string); this just makes it first-class and discoverable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant