Start Your Agency Starting an agency? Get 90 days free on Business, plus training to land your first client New agency? 90 days free on Business · 90 days
Browse modules▾
Overview/Automation

Workflows

21 read10 write

Read workflow config and stats; create or clone in DRAFT mode (never auto-activated).

Detailed reference

get_workflow_detailsreadworkflows.view

Full workflow configuration - trigger, nodes, edges, recent stats.

Parameters
workflow_id *stringWorkflow UUID.
Returns

Full workflow object with trigger, nodes (typed), edges, account_ids, stats_7d.

Example question

"Show me the configuration of my onboarding workflow."

get_workflow_performancereadworkflows.view

Workflow performance - success rate, bottleneck nodes, average duration.

Parameters
workflow_id *stringWorkflow UUID.
daysintegerWindow in days. Defaults to 30.
Returns

success_rate, avg_duration_ms, bottleneck_node_id, error_breakdown, executions_per_day.

Example question

"Where is my qualification workflow getting stuck?"

get_workflow_schemareadworkflows.view

Static JSON schema describing every available trigger, action, and condition node type. Used by Claude when constructing a workflow.

Parameters
sectionstring?"overview" (default), "triggers", "actions", "conditions", "nodes", "edges".
Returns

JSON schema with node types, required parameters, output ports.

Example question

"What trigger types can a workflow start with?"

list_workflow_templatesreadworkflows.view

Public marketplace templates available to clone into your workspace.

Parameters
categorystring?"lead_capture", "nurture", "win_back", "appointment", etc.
Returns

Array of templates with id, name, category, description, install_count, preview_image.

Example question

"What appointment-booking templates are in the marketplace?"

list_workflowsreadworkflows.view

Every workflow on the account with status and execution count.

Parameters
statusstring?"active", "paused", "draft", "archived".
pageintegerDefaults to 1.
limitintegerDefaults to 50, max 200.
Returns

Page of workflows with id, name, status, trigger_type, execution_count_30d, last_run_at.

Example question

"List all my paused workflows."

clone_workflowwriteworkflows.create

Duplicate an existing workflow as a new DRAFT (inactive). Server clamps status=draft regardless of input.

Parameters
workflow_id *stringSource workflow UUID to clone.
namestring?Optional name for the clone. Defaults to "Copy of …".
Returns

New workflow object - always created in draft mode for human review.

Example question

"Clone my best-performing workflow as a starting point for variants."

create_workflowwriteworkflows.create

Create a new workflow. Claude prompts the user to confirm before execution because this is the only non-read-only tool.

Parameters
name *stringDisplay name for the workflow.
trigger *objectTrigger config matching `get_workflow_schema(triggers)`.
nodes *object[]Action/condition nodes. Validated against schema before write.
edges *object[]Connections between nodes (source/target/port).
descriptionstring?Optional description.
account_idsstring[]?IG accounts the workflow should run on. Defaults to all.
is_activeboolean?If true, activates immediately. Defaults to false.
max_executions_per_contactinteger?Cap re-entry per lead.
cooldown_hoursinteger?Minimum hours before a lead can re-enter.
Returns

Created workflow object with id, validation result, and is_active state.

Example question

"Build me a workflow that sends a follow-up DM if a lead doesn't reply within 24 hours."

More tools

24
  • describe_actionread

    Fields, expected context and produced outputs for one action_type. Call BEFORE configuring an action node.

  • describe_conditionread

    Fields for one condition_type. Call BEFORE configuring a condition node.

  • describe_triggerread

    Config fields and runtime context for one trigger_type. Most need no config; scheduled needs `schedule`, webhook needs `webhook_secret`, DM triggers need filter keywords.

  • describe_workflow_enveloperead

    Top-level workflow fields outside nodes/triggers: name, account_ids (which IG accounts bind, driving sender resolution for SMS/email/DM), client_ids, scope, cooldowns. CALL FIRST when building a workflow.

  • get_node_schemaread

    Fields, expected context and produced outputs for one trigger/action/condition.

  • get_webhook_samplesread

    For a webhook-triggered workflow, return the payloads the sender actually POSTed plus `available_webhook_keys`, the flattened key list. Loop: ask the user to send ONE real test submission, call this to read the real keys, map each into a lead custom variable with update_contact_fields, then reference {custom_variable.<id>} in copy. An empty list means no payload has arrived yet: ask for one and retry. Never invent webhook key names.

  • get_workflow_failure_statsread

    Account-wide top failing workflows + top failure reasons.

  • get_workflow_node_analyticsread

    Per-node bottleneck breakdown.

  • get_workflow_split_test_analyticsread

    A/B/C split-test variant winner analysis.

  • get_workflow_step_analyticsread

    Action-level success rates and durations.

  • list_action_typesread

    Every workflow action type with one line each. Call describe_action for one type's fields; full=true returns every schema (large).

  • list_all_workflow_schemasread

    Every action and condition schema in one call. Pull once at the start of a workflow-building session.

  • list_condition_typesread

    Every workflow condition type with one line each. Call describe_condition for one type's fields; full=true returns every schema (large).

  • list_trigger_typesread

    Every workflow trigger type with one line each. Call describe_trigger for one type's fields; full=true returns every schema (large).

  • list_workflow_capabilitiesread

    Every supported trigger, action, condition and flow-control feature, live.

  • validate_workflow_configread

    Run the live workflow validator against a node graph without saving.

  • copy_workflow_to_workspacewrite

    Copy a workflow into ANOTHER workspace. sub_account_id is the workspace it is in now; target_sub_account_id is where the copy goes. The copy is switched off and attached to no account. Tags, pipelines and stages are matched by name in the target; anything else that pointed at the original workspace is cleared and returned in needs_attention.

  • create_workflow_from_templatewrite

    Spawn a workflow from a marketplace template. Always a DRAFT.

  • delete_workflowwrite

    Soft-delete a workflow. Stops firing immediately and leaves list_workflows.

  • disable_workflowwrite

    Pause a workflow without deleting it.

  • enable_workflowwrite

    Activate a workflow so its trigger fires.

  • test_workflowwrite

    Run a workflow in SAFE TEST MODE and return a step-by-step execution trace. Use after create_workflow to sanity-check a draft: sends are SIMULATED (nothing reaches real people) and waits are skipped. A trace line prefixed '[TEST]' is SUCCESS, meaning the node WOULD send live; never report it as a delivery failure. Pass lead_id to test one contact, else the account's test lead is used. To send for real, run it live via execute_workflow_on_lead.

  • update_workflowwrite

    Edit an existing workflow in place — its steps, trigger, name or settings. Use this instead of clone+delete, which mints a new id and discards the original's execution history. PARTIAL: only the fields you pass are written. Call get_workflow_details FIRST and edit the graph it returns — sending a `nodes` array REPLACES the graph, so any step you leave out is deleted. `nodes` and `edges` must be sent together. This tool CANNOT activate or deactivate a workflow (use enable_workflow / disable_workflow); a workflow that is already live stays live and starts running the edited version immediately, so run test_workflow afterwards.

  • workflow_health_auditwrite

    Triage list of workflows whose failure rate exceeds threshold.