Skip to content

Automate browser based workflows with AI

Implement workflow rerun with webhook url (#2463)

Shuchang Zhenga4567d2cfcc7
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
index 735bf2271..d8b2df086 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
@@ -259,6 +259,7 @@ function WorkflowRun() {
state={{
data: parameters,
proxyLocation,
+ webhookCallbackUrl: workflowRun?.webhook_callback_url ?? "",
}}
>
<PlayIcon className="mr-2 h-4 w-4" />
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
index 7520675c3..8de6821f4 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx
@@ -31,6 +31,10 @@ function WorkflowRunParameters() {
? (location.state.proxyLocation as ProxyLocation)
: null;
+ const webhookCallbackUrl = location.state
+ ? (location.state.webhookCallbackUrl as string)
+ : null;
+
const initialValues = location.state?.data
? location.state.data
: workflowParameters?.reduce(
@@ -103,7 +107,8 @@ function WorkflowRunParameters() {
proxyLocation ??
workflow.proxy_location ??
ProxyLocation.Residential,
- webhookCallbackUrl: workflow.webhook_callback_url ?? "",
+ webhookCallbackUrl:
+ webhookCallbackUrl ?? workflow.webhook_callback_url ?? "",
}}
/>
</div>