progressHint(progress [, label])
Reports the progress state of the agent.
This affects the width and content of the progress bar displayed in the agent console on Phantombuster.
This is useful for debugging purposes and is not required for the agent to function properly. Sometimes it's just nice to see the progress of your agent in real-time.
Progress float value between
1means 100% of the work was completed.
0means 0% of the work was completed.
Optional textual description of the state of your agent (clipped to 50 characters).
This shows up as a text inside the progress bar displayed in the agent console.
buster.progressHint(0.25, "First action") //25% of the work done buster.progressHint(0.5, "Second action") //50% of the work done buster.progressHint(0.75, "Third action") //75% of the work done buster.progressHint(1, "End of the script") //100% of the work done
This method does not have a callback. Using await is unnecessary.
When using the standard JSON output from the Phantombuster API to get the console output, the progress object shows up like this:
label: "First action",