Short answer
Use the bot’s saved browser profile or a dedicated test account signed in once on that machine. Flow files hold selectors and demo values — not passwords, tokens, or session cookies for Agent Docu to store (it never should).
Steps
- Choose a non-production identity — Prefer a staging tenant or a test user with limited data. Avoid filming with a personal admin session against live customer data when you can.
- Sign in once on the bot machine — Headed browser session; complete MFA if required.
- Reuse the profile — Point Playwright at that user data directory (
AGENT_DOCU_USER_DATA_DIR=/path/to/profileperSETUP.md). - Author without secrets — Descriptions and fill values can use fake names/emails; never paste real passwords into YAML/JSON or commit them.
- Verify gates — Confirm the session still works before record/drift; permission dialogs and expired SSO break replays (troubleshooting).
- Rotate and revoke — When someone leaves or a video leaks a tenant name, rotate the test account and re-check flows.
Hard rules (Agent Docu)
- No passwords, API keys, or session tokens in flow files.
- No upload of credentials to an Agent Docu service — recording is local.
- Re-record requires explicit
--approveso the wrong tenant is not filmed unattended.