Install
openclaw skills install nova-actWrite and execute Python scripts using Amazon Nova Act for AI-powered browser automation tasks like flight searches, data extraction, and form filling.
openclaw skills install nova-actUse Amazon Nova Act for AI-powered browser automation. The bundled script handles common tasks; write custom scripts for complex workflows. To get free API key go to https://nova.amazon.com/dev/api
What this skill accesses:
NOVA_ACT_API_KEY environment variable or ~/.openclaw/openclaw.json (your API key)What trace files may contain:
Recommendations:
ALWAYS stop before actions that cause monetary impact, external communication, account creation, or data modification.
When a task involves material-impact actions (see MATERIAL_IMPACT_KEYWORDS in scripts/nova_act_runner.py), you MUST:
act_get() to observe without acting — DO NOT click the final action buttonCategories requiring safety stops:
When performing browser automation, this skill will NEVER:
This skill will ALWAYS:
See references/nova-act-cookbook.md for detailed safe workflow patterns.
When asked to perform a browser automation task, invoke the bundled script:
import subprocess, os, sys
skill_dir = os.path.expanduser("~/.openclaw/skills/nova-act")
script = os.path.join(skill_dir, "scripts", "nova_act_runner.py")
result = subprocess.run(
["uv", "run", script, "--url", url, "--task", task],
capture_output=True, text=True, env={**os.environ}
)
print(result.stdout)
if result.returncode != 0:
print(result.stderr, file=sys.stderr)
Where url and task are Python string variables set from the user's request.
The script uses a generic schema (summary + details list) to capture output.
For complex multi-step workflows or specific extraction schemas, write a custom Python script with PEP 723 dependencies:
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["nova-act"]
# ///
from nova_act import NovaAct
with NovaAct(starting_page="https://example.com") as nova:
# Execute actions with natural language
# Combine steps into a single act() call to maintain context
nova.act("Click the search box, type 'automation', and press Enter")
# Extract data with schema
results = nova.act_get(
"Get the first 5 search result titles",
schema=list[str]
)
print(results)
# Take screenshot
nova.page.screenshot(path="search_results.png")
print(f"MEDIA: {Path('search_results.png').resolve()}")
Run with: uv run script.py
nova.act(prompt) - Execute ActionsUse for clicking, typing, scrolling, navigation. Note: Context is best maintained within a single act() call, so combine related steps.
nova.act("""
Click the search box.
Type 'automation tools' and press Enter.
Scroll down to the results section.
Select 'Relevance' from the sort dropdown.
""")
nova.act_get(prompt, schema) - Extract DataUse Pydantic models or Python types for structured extraction:
from pydantic import BaseModel
class Flight(BaseModel):
airline: str
price: float
departure: str
arrival: str
# Extract single item
flight = nova.act_get("Get the cheapest flight details", schema=Flight)
# Extract list
flights = nova.act_get("Get all available flights", schema=list[Flight])
# Simple types
price = nova.act_get("What is the total price?", schema=float)
items = nova.act_get("List all product names", schema=list[str])
with NovaAct(starting_page="https://google.com/flights") as nova:
# Combine steps to ensure the agent maintains context through the flow
nova.act("""
Search for round-trip flights from SFO to JFK.
Set departure date to March 15, 2025.
Set return date to March 22, 2025.
Click Search.
Sort by price, lowest first.
""")
flights = nova.act_get(
"Get the top 3 cheapest flights with airline, price, and times",
schema=list[Flight]
)
# SAFETY STOP: Only extracted data. Did NOT select a flight or proceed to booking.
with NovaAct(starting_page="https://example.com/contact") as nova:
nova.act("""
Fill the form: name 'Test User', email 'test@example.com'.
Select 'United States' for country.
""")
# SAFETY STOP: Verify submit button exists but DO NOT click it
submit_ready = nova.act_get(
"Is there a submit button visible and enabled?",
schema=bool
)
print(f"Form ready to submit: {submit_ready}")
with NovaAct(starting_page="https://news.ycombinator.com") as nova:
stories = nova.act_get(
"Get the top 10 story titles and their point counts",
schema=list[dict] # Or use a Pydantic model
)
act() call. Combine related actions into one multi-line prompt.act_get() for structured datanova.page.screenshot() to capture resultsreferences/nova-act-cookbook.md — Best practices and safety patterns for Nova Act, including MATERIAL_IMPACT_KEYWORDS documentation and safe workflow examples. The AI agent should consult this for complex automation tasks.README.md — User-facing installation and safety overview.NOVA_ACT_API_KEY env var (required)skills."nova-act".apiKey / skills."nova-act".env.NOVA_ACT_API_KEY in ~/.openclaw/openclaw.jsonMEDIA: lines for OpenClaw to auto-attach screenshots on supported providersNovaAct(starting_page="...", headless=True)nova.page for advanced operations