CUA Quickstart
Walk through a complete TED eProcurement form-filling scenario using the Pauhu Computer Use Agent.
Prerequisites
- Pauhu account with API key — generate a
pk_*key from your API dashboard - Browser with the Pauhu browser extension installed — Chrome or Firefox
- Active internet connection
1 Install the Browser Extension
The Pauhu browser extension adds a CUA sidebar to your browser. It handles screenshot capture, action overlays, and session management.
| Browser | Install link |
|---|---|
| Chrome | Chrome Web Store (coming soon) |
| Firefox | Firefox Add-ons (coming soon) |
After installation, the Pauhu CUA icon appears in your browser toolbar.
2 Connect Your API Key
- Click the Pauhu CUA icon in your browser toolbar and select Settings.
- Paste your API key (
pk_*) into the key field. - Select your target domain:
staging.pauhu.ai— for testingstaging.pauhu.eu— production
- Click Connect.
A green indicator next to the icon confirms a successful connection.
3 Start a CUA Session
- Navigate to ted.europa.eu.
- Click the Pauhu CUA icon in your browser toolbar.
- In the task field, describe what you need. For example:
Fill procurement notice form for IT consulting services, estimated value EUR 150,000, open procedure - Click Start Session.
The CUA sidebar opens on the right side of your browser, showing session progress and a live action log.
4 Watch the CUA Navigate
The CUA operates in a screenshot-plan-confirm loop:
- Screenshot — The CUA captures the current page state.
- Plan — It identifies the next action (e.g., “Create notice” button) and shows a blue crosshair overlay at the planned click target.
- Confirm — You review the plan and click Confirm (or press Enter) to approve it.
- Execute — The CUA performs the click.
- Repeat — The cycle starts again with a new screenshot.
5 CUA Fills Form Fields
When the CUA encounters a form field, the flow changes slightly:
- Identify — The CUA highlights the target field (e.g., “Procedure type”).
- Determine value — It selects the appropriate value based on your task description.
- Preview — A purple overlay shows the planned input above the field.
- Confirm or edit — You can accept the value as-is or modify it before confirming.
- Input — The CUA types or selects the value in the field.
This process repeats for every field in the procurement form — CPV codes, contracting authority details, procedure type, estimated value, deadlines, and more.
6 Review Before Submission
When the CUA reaches the submission step, it pauses and displays a confirmation modal:
| Column | Description |
|---|---|
| Field label | The name of each form field |
| Current value | The value that will be submitted |
| Required | Whether the field is mandatory |
You have three options:
- Edit Fields — modify any value before submission
- Approve & Submit — proceed with submission
- Cancel — stop without submitting
7 Verify the Result
After submission:
- The CUA takes a final screenshot of the confirmation page.
- The session panel displays all completed steps with green checkmarks.
- Use the Replay Viewer to step through the entire session screenshot-by-screenshot.
- If something went wrong, click Rollback to revert to a previous step and resume from there.
8 Stop the Session
End the CUA session in any of these ways:
- Click Stop in the CUA sidebar.
- Close the CUA panel.
Session data (screenshots, action log, field values) is retained for 30 days for replay and audit purposes.
curl Example (API-only, no extension)
You can also drive CUA sessions programmatically without the browser extension.
Start a CUA session
POST /v1/cua/start
curl -X POST https://staging.pauhu.eu/v1/cua/start \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"portal": "ted.europa.eu",
"task": "Fill procurement notice for IT consulting"
}'
Listen to the SSE stream
GET /v1/cua/stream
curl -N https://staging.pauhu.eu/v1/cua/stream?session=cua_abc123 \
-H "Authorization: Bearer pk_your_api_key"
Confirm an action
POST /v1/cua/confirm
curl -X POST https://staging.pauhu.eu/v1/cua/confirm \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"session_id": "cua_abc123",
"action_id": "act_001",
"approved": true
}'
Next Steps
- CUA API Reference — Full endpoint documentation
- CUA Safety Model — Sandbox and security details
- CUA MCP Tools — Programmatic browser actions
- CUA FAQ — Common questions
Questions? Contact us at support@pauhu.eu or visit the API dashboard to manage your keys.