|
8 | 8 | <br> |
9 | 9 | <div align="center" style="line-height: 1;"> |
10 | 10 | <a href="https://www.otatech.ai/"><img alt="Homepage" |
11 | | - src="https://img.shields.io/badge/Home-Page-blue"/></a> |
| 11 | + src="https://img.shields.io/badge/Visit-otatech.ai-blue"/></a> |
12 | 12 | <a href="https://huggingface.co/OTA-AI/OTA-v1"><img alt="Hugging Face" |
13 | 13 | src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-OTA%20AI-ffc107?color=ffc107&logoColor=white"/></a> |
14 | 14 | <a href="https://github.com/OTA-Tech-AI/webagentprotocol/blob/main/LICENSE"><img alt="Code License" |
@@ -71,15 +71,27 @@ set PYTHONPATH=C:/path/to/webagentprotocol # for Windows |
71 | 71 | export PYTHONPATH=/path/to/webagentprotocol # for Linux |
72 | 72 | ``` |
73 | 73 |
|
| 74 | +Create **.env** file under the repo root directory with your own API keys: |
| 75 | +``` |
| 76 | +OPENAI_API_KEY=sk-proj-... |
| 77 | +DEEPSEEK_API_KEY=sk-... |
| 78 | +``` |
| 79 | + |
| 80 | +## Record |
| 81 | + |
| 82 | +### WAP record extension |
| 83 | +Please refer to [OTA‑WAP Chrome Extension](https://github.com/OTA-Tech-AI/webagentprotocol/tree/main/chrome-extension) to setup action capturer in your Chrome browser. |
74 | 84 |
|
75 | | -## Start data‑collection server |
| 85 | +### Start data‑collection server |
76 | 86 |
|
77 | 87 | Run the following command to start the server to collect data from the extension: |
78 | 88 | ```bash |
79 | 89 | python action_collect_server.py |
80 | 90 | ``` |
| 91 | +**Once the server is up, you can start to record from the page using WAP Chrome extension.** |
81 | 92 |
|
82 | | -The server listens on http://localhost:4934/action-data and saves each session to: |
| 93 | +The server listens on http://localhost:4934/action-data by default, please make sure the Host and Port in the extension settings match this server config. |
| 94 | +Each session will be saved to: |
83 | 95 |
|
84 | 96 | ```bash |
85 | 97 | data/YYYYMMDD/taskid/summary_event_<timestamp>.json |
@@ -124,7 +136,7 @@ data_processed/exact_replay/ |
124 | 136 | └─ wap_smart_replay_list_<task_id>.json # final exact replay list for the agent |
125 | 137 | ``` |
126 | 138 |
|
127 | | -## Run the agent |
| 139 | +## Replay |
128 | 140 | ```bash |
129 | 141 | python run_replay.py --model-provider openai --wap_replay_list data_processed/exact_replay/wap_exact_replay_list_<task_id>.json --max-concurrent 1 |
130 | 142 | ``` |
|
0 commit comments