Skip to content

feat(workflows): add create_workflow action to data_workflows_tool#97

Closed
bertenator wants to merge 4 commits intosaifrom
achang/DEVPL-3987-create-workflow-mcp
Closed

feat(workflows): add create_workflow action to data_workflows_tool#97
bertenator wants to merge 4 commits intosaifrom
achang/DEVPL-3987-create-workflow-mcp

Conversation

@bertenator
Copy link
Copy Markdown
Member

Summary

  • Adds create_workflow action to data_workflows_tool, following the same pattern as list_workflows, execute_workflow, and get_workflow_execution_status
  • Updates apiRequest to accept an optional body parameter, enabling POST requests with a JSON payload
  • Gated by the same registerWorkflowsTools / registerWorkflowTools registration as the existing workflow actions

API

POST /v2/sites/:site_id/workflows with body { templateSlug: string }

Test plan

  • Call create_workflow with a valid site_id and template_slug (e.g. content-brief-generator) — should return created workflow with ID, name, active status, and template slug
  • Verify existing actions (list_workflows, execute_workflow, get_workflow_execution_status) are unaffected
  • Verify apiRequest calls without a body still work (no Content-Type header sent on GETs)

bertenator and others added 4 commits March 17, 2026 16:42
PR 3 of 3 for DEVPL-3935. Adds data_workflows_tool to the public
Webflow MCP server, calling GET /v2/sites/:site_id/workflows via
raw fetch (no SDK method exists yet).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Extends data_workflows_tool with two new actions alongside list_workflows:
- execute_workflow: POST /v2/sites/:site_id/workflows/:workflow_id/execute
- get_workflow_execution_status: GET /v2/sites/.../executions/:execution_id

Also refactors fetch calls into a shared apiRequest helper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds create_workflow action to the existing data_workflows_tool, following
the same registration pattern as list_workflows, execute_workflow, and
get_workflow_execution_status.

Also updates apiRequest to accept an optional body parameter to support
POST requests that require a JSON payload.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bertenator bertenator marked this pull request as ready for review March 25, 2026 23:52
@bertenator bertenator requested a review from a team as a code owner March 25, 2026 23:52
@bertenator bertenator requested review from markconigliaro1 and removed request for a team March 25, 2026 23:52
@bertenator bertenator changed the base branch from main to sai March 25, 2026 23:54
@bertenator bertenator closed this Mar 25, 2026
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