Skip to content

Automate browser based workflows with AI

use action.text for input actions in workflow timeline, instead of action.response (#3709)

Jonathan Dobson8f15880a6d30
diff --git a/skyvern-frontend/src/api/types.ts b/skyvern-frontend/src/api/types.ts
index eb4aa4f06..a869b5595 100644
--- a/skyvern-frontend/src/api/types.ts
+++ b/skyvern-frontend/src/api/types.ts
@@ -394,6 +394,7 @@ export type ActionsApiResponse = {
intention: string | null;
response: string | null;
created_by: string | null;
+ text: string | null;
};
export type TaskV2 = {
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
index b87ce720a..bdc518f77 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
@@ -87,7 +87,10 @@ function ActionCard({ action, onClick, active, index }: Props) {
<>
<Separator />
<div className="text-xs text-slate-400">
- Input: {action.response}
+ Input:{" "}
+ {action.action_type === "input_text"
+ ? action.text ?? action.response
+ : action.response}
</div>
</>
)}