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

  1. 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.
  2. Sign in once on the bot machine — Headed browser session; complete MFA if required.
  3. Reuse the profile — Point Playwright at that user data directory (AGENT_DOCU_USER_DATA_DIR=/path/to/profile per SETUP.md).
  4. Author without secrets — Descriptions and fill values can use fake names/emails; never paste real passwords into YAML/JSON or commit them.
  5. Verify gates — Confirm the session still works before record/drift; permission dialogs and expired SSO break replays (troubleshooting).
  6. 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)