Actions
How Actions Are Discovered
Define an Action
from pydantic import BaseModel, Field
from integrations_sdk.component import workflow_action
class Result(BaseModel):
result: str = Field(description="The end result")
class HelloError(BaseModel):
message: str
class HelloArguments(BaseModel):
name: str
@workflow_action(
description="Say hello.",
result=Result,
errors=[HelloError, {"type": "string"}],
display_name="Say hello",
docs="How the say_hello action works",
arguments=HelloArguments,
argument_docs={
"name": "The name of the person to greet.",
},
)
def say_hello(name: str) -> Result:
return Result(result=f"Hello {name}")Action Arguments vs. Function Signature
Using Connection Env and Secrets
Dynamic Field Metadata
Manifest Behavior
Runtime Execution
Last updated
Was this helpful?

