Skip to main content
Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
Debug agent executions with MP4 replays that show exactly what the agent saw and did during its run.

Agent Replay

Get a visual replay of the agent’s execution. The session.replay() method returns a ReplayResponse with mp4_url (a presigned URL for the MP4), which you can pass around or download with replay.download():

What’s Included

Agent replays capture:
  • Visual recording of every page the agent visited
  • Actions taken by the agent (clicks, fills, navigations)
  • Page transitions and loading states
  • Element highlights showing what the agent interacted with
  • Timestamps for each action

Viewing Replays

In Jupyter Notebook

Display the replay inline:
view_in_notebook.py

Save to File

Save for later viewing or sharing:
save_to_file.py

In Browser

Open the replay URL in your browser:
view_in_browser.py

Debugging Workflow

1. Run Agent

Execute your agent task:
run_agent.py

2. Check If Failed

Identify failures:
check_if_failed.py

3. Inspect Steps

Review what the agent did:

4. Watch Replay

See the visual execution:
watch_replay.py

5. Fix and Retry

Adjust based on findings:

Common Issues

Agent Can’t Find Element

Symptoms:
  • Agent fails with “Element not found”
  • Replay shows element exists but wasn’t clicked
Debug:
Fix:
fix_missing_element.py

Agent Takes Wrong Action

Symptoms:
  • Agent clicks wrong button
  • Agent fills wrong form field
Debug:
Fix:

Agent Exceeds Max Steps

Symptoms:
  • Agent stops before completing task
  • result.success is False and the number of agent_step_start entries in result.steps equals max_steps
Debug:
Fix:

Advanced Debugging

Step-by-Step Analysis

Inspect each step in detail:
step_by_step_analysis.py

Comparing Runs

Compare successful vs failed runs:

Agent Status During Execution

Monitor agent in real-time:
monitor_status.py

Best Practices

1. Always Review Failed Agents

Don’t ignore failures - watch the replay:
review_failed_agents.py

2. Save Replays for Production Issues

Keep replays of production failures:
save_production_replays.py

3. Use Replays for QA

Verify agent behavior before deploying:
replays_for_qa.py

4. Share Replays with Team

Save and share for collaboration:
share_with_team.py

Limitations

Replays are currently:
  • ✅ Available for all completed agents
  • ✅ Full video recording of execution
  • ✅ Include element highlights
  • ⚠️ Generated after completion (not real-time)
  • ⚠️ May be large files for long runs

Next Steps

Lifecycle

Understand agent execution

Configuration

Optimize agent settings

Live View

Watch sessions in real-time