forked from neuhai/UXAgent
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_universal_test.sh
More file actions
executable file
·38 lines (31 loc) · 1.21 KB
/
Copy pathrun_universal_test.sh
File metadata and controls
executable file
·38 lines (31 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
echo "🌐 AgentQL Universal Web Automation - Works on ANY Website!"
echo "============================================================"
# Check if URL is provided
if [ -z "$1" ]; then
echo "Usage: ./run_universal_test.sh <target_url> [persona_file]"
echo ""
echo "Examples:"
echo " ./run_universal_test.sh https://amazon.com"
echo " ./run_universal_test.sh https://nike.com"
echo " ./run_universal_test.sh https://airbnb.com"
echo " ./run_universal_test.sh https://booking.com example_data/personas/json/boulder_mom.json"
exit 1
fi
TARGET_URL="$1"
PERSONA_FILE="${2:-example_data/personas/json/bruvi_coffee_shopper.json}"
echo "Target URL: $TARGET_URL"
echo "Persona: $PERSONA_FILE"
echo ""
# Activate virtual environment
source simulated_web_agent_env/bin/activate
# Run universal automation - works on ANY website!
simulated_web_agent_env/bin/python -m simulated_web_agent.main \
--persona "$PERSONA_FILE" \
--output "output/universal_$(date +%Y%m%d_%H%M%S)" \
--max-steps 25 \
--llm-provider openai \
--target-url "$TARGET_URL"
echo ""
echo "✅ Universal automation completed!"
echo "This demonstrates how AgentQL can work on ANY website without manual recipes!"