Triggers
How Triggers Are Discovered
Define a Trigger
from fastapi import FastAPI
from pydantic import BaseModel
from integrations_sdk.triggers import workflow_trigger
class HookData(BaseModel):
messageId: str
message: str
@workflow_trigger(
description="Message received",
result=HookData,
installInstructions="Docs on point, README magic",
docs="How the hook_trigger trigger works",
)
def hook_trigger(dispatch, app: FastAPI):
@app.post("/hook-trigger/{subscriptionId}")
def hook_trigger(subscriptionId: str, data: HookData):
dispatch(subscriptionId, data)Connection Env and Subscription Options
Connection Env and Secrets
Subscription Options and Secrets
Trigger Lifecycle Hooks
Multiple Triggers on One Endpoint
Subscription Schemas in the Manifest
Runtime Behavior
Last updated
Was this helpful?

