Many websites require two-factor authentication (2FA) during login or sensitive actions. AI Agents can handle these challenges using the Fetch OTP instruction.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.
How It Works
- The agent navigates to a login page and enters credentials
- The website sends a one-time password (OTP) via email or SMS
- The Fetch OTP instruction retrieves the OTP from the configured source
- The agent types the OTP into the verification field and continues
Fetch OTP Instruction
The Fetch OTP instruction retrieves a one-time password from a configured source. It supports:| Source | Description |
|---|---|
| Retrieve OTP from an email inbox by matching subject or sender | |
| SMS | Retrieve OTP from an SMS message |
Tips
- Use sensitive input variables for login credentials — this masks them in execution logs
- Add a Wait instruction before Fetch OTP if the website takes time to send the code
- Set an appropriate timeout — OTP delivery can vary from seconds to minutes