create_workflow
Create automated workflows triggered by form submissions, button clicks, cron schedules, chat messages, webhooks, or Stripe events. Define actions like send email, HTTP request, LLM chat, and more.
Instructions
Create a workflow. Trigger types: form_submit, button_click, cron, chat_message, webhook (inbound HTTP), stripe_event. IMPORTANT node structure: each node needs type='action' (or 'condition'/'loop') with the specific action inside action.type. Example node: {"id": "n1", "type": "action", "action": {"type": "send_email", "config": {"to": "...", "subject": "...", "body": "..."}}, "next_node_id": null}. Action types: send_email, http_request, llm_chat, save_record, fetch_data, send_whatsapp, redirect, forward_to_human, send_reply. Node outputs propagate via {{nodes..body}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| name | Yes | ||
| definition | Yes | Workflow definition with trigger, entry_node_id, and nodes array. Each node: {id, type:'action'|'condition'|'loop', action:{type, config}, next_node_id} |