create_workflow
Create Python workflow scripts with a run function for automation tasks, enabling AI agents to build and modify automation workflows programmatically.
Instructions
Create a new Python workflow script.
Args:
name: The name of the workflow (will be used as filename, e.g., "meeting_review_to_slack")
description: A description of what the workflow does
code: The Python code for the workflow. Must include a `run(params: dict = None) -> dict` function.
Returns:
dict: Status of the operation with the file path
Example code structure:
def run(params: dict = None) -> dict:
params = params or {}
# Your workflow logic here
return {"status": "success", "result": "..."}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | Yes | ||
| code | Yes |