Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.firstwork.com/llms.txt

Use this file to discover all available pages before exploring further.

Agents are built using a visual instruction editor. The editor presents a canvas where you compose a sequence of instructions that the agent follows step by step.

Instruction Types

InstructionDescription
Visit URLNavigate the browser to a specific address
Click ElementClick on a page element identified by a selector
Type InputType text into a form field
Upload FileUpload a file to a designated element
Download FileDownload a file from a URL
Enter IframeSwitch the agent’s context into an embedded iframe
Take ScreenshotCapture a screenshot of the current page
Wait for ElementPause until a specific element appears on the page
Wait for URLPause until the browser URL contains a specific pattern
Solve CAPTCHAAttempt to solve a CAPTCHA challenge
AI InstructionGive the agent a natural-language instruction and let AI determine the actions
Run JavaScriptExecute custom JavaScript code in the browser
Fetch OTPRetrieve a one-time password from a configured source
Loop Over DataIterate over a data array, executing child instructions for each item
Conditional BranchEvaluate a condition and follow the TRUE or FALSE path
TerminateEnd the agent’s execution

Element Selection

When an instruction targets a page element, the agent identifies it using one of these methods:
MethodDescription
CSS SelectorStandard CSS selector syntax
XPathXPath expression
IDElement’s HTML ID attribute
Class NameElement’s CSS class
Tag NameHTML tag name
Link TextFull text of a hyperlink
Partial Link TextPartial match on hyperlink text
Text ContainingMatch by text content

How Agents Are Triggered

MethodDescription
Automation ActionThe “Run AI Agent” automation action triggers execution with application context
Form StepAn “AI Agent” step in a hiring flow triggers the agent when the candidate reaches it
Manual TriggerAdmins can trigger an agent directly, selecting a hiring flow and the applications to process
TestRun the agent from the editor with streaming output and debug mode

Testing

The test interface allows you to run the agent with:
  • Streaming mode — Watch the execution output in real-time
  • Debug mode — Verbose logging for troubleshooting
  • Input variable values — Provide text or file values for each input
  • Loop data — For agents with loop instructions, provide the data array

Execution History

Every agent execution creates a record that tracks:
  • Execution status and timing
  • Input data provided
  • Output data captured
  • Detailed execution logs