upsert_survey_workflow
Create or update a survey automation workflow, usually triggered by survey_response_submitted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"surveyId": "<surveyId>",
"name": "<name>",
"graph": "<graph>"
},
"name": "upsert_survey_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name | |
| graph | Yes | Workflow graph definition | |
| status | No | Workflow status | |
| trigger | No | Trigger name, default from graph.trigger | |
| surveyId | Yes | Survey ID | |
| workflowId | No | Existing workflow ID when updating |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool result payload — shape varies per tool, see the tool description | |
| summary | Yes | One-line human-readable summary of the action | |
| renderType | Yes | UI rendering hint for the result |