Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Add workflow failure tips (#2794)
dvloper-serena2390bf8917e1
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsxindex 42d1efb24..ceceaf722 100644--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx@@ -117,6 +117,26 @@ function WorkflowRun() {</h1>);+ const failureTips: { match: (reason: string) => boolean; tip: string }[] = [+ {+ match: (reason) => reason.includes("Invalid master password"),+ tip: "Tip: If inputting the master password via Docker Compose or in any container environment, make sure to double any dollar signs and do not surround it with quotes.",+ },+ // Add more tips as needed+ ];++ const failureReason = workflowRun?.failure_reason;++ const matchedTips = failureReason+ ? failureTips+ .filter(({ match }) => match(failureReason))+ .map(({ tip }, index) => (+ <div key={index} className="text-sm italic text-red-700">+ {tip}+ </div>+ ))+ : null;+const workflowFailureReason = workflowRun?.failure_reason ? (<divclassName="space-y-2 rounded-md border border-red-600 p-4"@@ -126,6 +146,7 @@ function WorkflowRun() {><div className="font-bold">Workflow Failure Reason</div><div className="text-sm">{workflowRun.failure_reason}</div>+ {matchedTips}</div>) : null;