add tooltip text regarding current_value in loop iterations (#3047)

This commit is contained in:
Jonathan Dobson
2025-07-28 17:10:11 -04:00
committed by GitHub
parent e26dbfcd7c
commit baee57589b
2 changed files with 11 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ export const helpTooltips = {
loop: {
...baseHelpTooltipContent,
loopValue:
"Define this parameterized field with a parameter key to let Skyvern know the core value you're iterating over.",
"Define this parameterized field with a parameter key to let Skyvern know the core value you're iterating over. Use {{ current_value }} elsewhere in the loop to get the current value for a given iteration.",
},
sendEmail: {
...baseHelpTooltipContent,

View File

@@ -196,6 +196,16 @@ function StartNode({ id, data }: NodeProps<StartNode>) {
/>
<div className="w-[30rem] rounded-lg bg-slate-elevation3 px-6 py-4 text-center">
Start
<div className="mt-4 flex gap-3 rounded-md bg-slate-800 p-3">
<span className="rounded bg-slate-700 p-1 text-lg">💡</span>
<div className="space-y-1 text-left text-xs text-slate-400">
Use{" "}
<code className="text-white">
&#123;&#123;&nbsp;current_value&nbsp;&#125;&#125;
</code>{" "}
to get the current loop value for a given iteration.
</div>
</div>
</div>
</div>
);