web-agent-bridge 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ar.md +127 -0
- package/README.md +190 -1
- package/bin/agent-runner.js +465 -0
- package/bin/cli.js +58 -0
- package/examples/cross-site-agent.js +91 -0
- package/package.json +4 -2
- package/public/index.html +97 -0
- package/public/script/wab.min.js +173 -2
- package/public/sovereign.html +660 -0
- package/script/ai-agent-bridge.js +1 -1
- package/sdk/README.md +44 -0
- package/sdk/index.d.ts +93 -0
- package/sdk/index.js +3 -1
- package/sdk/multi-agent.js +318 -0
- package/sdk/package.json +2 -2
- package/server/index.js +2 -0
- package/server/routes/sovereign.js +307 -0
- package/server/services/negotiation.js +439 -0
- package/server/services/reputation.js +465 -0
- package/server/services/verification.js +481 -0
- package/templates/artisan-marketplace.yaml +104 -0
- package/templates/book-price-scout.yaml +98 -0
- package/templates/electronics-price-tracker.yaml +108 -0
- package/templates/flight-deal-hunter.yaml +113 -0
- package/templates/freelancer-direct.yaml +116 -0
- package/templates/grocery-price-compare.yaml +93 -0
- package/templates/hotel-direct-booking.yaml +113 -0
- package/templates/local-services.yaml +98 -0
- package/templates/olive-oil-tunisia.yaml +88 -0
- package/templates/organic-farm-fresh.yaml +101 -0
- package/templates/restaurant-direct.yaml +97 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# WAB Agent Template — Electronics Price Tracker
|
|
2
|
+
# Monitors electronics prices and finds the best deal
|
|
3
|
+
# Run: npx wab-agent run electronics-price-tracker.yaml --product "laptop" --max-price 1000
|
|
4
|
+
|
|
5
|
+
name: electronics-price-tracker
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
description: Track electronics prices across independent stores and find the best verified deal
|
|
8
|
+
author: WAB Community
|
|
9
|
+
tags: [electronics, price-tracking, shopping, deals, comparison]
|
|
10
|
+
|
|
11
|
+
goal: >
|
|
12
|
+
Search WAB-enabled electronics retailers, track price history,
|
|
13
|
+
verify prices against screenshots, find the lowest verified price,
|
|
14
|
+
and negotiate bundle or loyalty discounts.
|
|
15
|
+
|
|
16
|
+
target_sites:
|
|
17
|
+
discovery_method: wab-registry
|
|
18
|
+
category: electronics
|
|
19
|
+
region: auto
|
|
20
|
+
fallback_urls: []
|
|
21
|
+
|
|
22
|
+
parameters:
|
|
23
|
+
- name: product
|
|
24
|
+
type: string
|
|
25
|
+
required: true
|
|
26
|
+
description: Product to search for
|
|
27
|
+
- name: max_price
|
|
28
|
+
type: number
|
|
29
|
+
required: true
|
|
30
|
+
- name: brand
|
|
31
|
+
type: string
|
|
32
|
+
- name: condition
|
|
33
|
+
type: string
|
|
34
|
+
default: new
|
|
35
|
+
enum: [new, refurbished, used]
|
|
36
|
+
|
|
37
|
+
actions:
|
|
38
|
+
- name: discover
|
|
39
|
+
description: Find electronics stores
|
|
40
|
+
wab_action: discover
|
|
41
|
+
|
|
42
|
+
- name: search
|
|
43
|
+
description: Search for the product
|
|
44
|
+
wab_action: searchProducts
|
|
45
|
+
params:
|
|
46
|
+
query: "{{product}}"
|
|
47
|
+
brand: "{{brand}}"
|
|
48
|
+
condition: "{{condition}}"
|
|
49
|
+
collect: true
|
|
50
|
+
|
|
51
|
+
- name: verify_prices
|
|
52
|
+
description: Cross-verify all prices
|
|
53
|
+
wab_action: verifyPrice
|
|
54
|
+
require_pass: true
|
|
55
|
+
|
|
56
|
+
- name: check_specs
|
|
57
|
+
description: Verify product specifications match listing
|
|
58
|
+
wab_action: verifyText
|
|
59
|
+
params:
|
|
60
|
+
fields: [model, specs, warranty, condition]
|
|
61
|
+
|
|
62
|
+
- name: check_price_history
|
|
63
|
+
description: Check if current price is a real deal or inflated
|
|
64
|
+
wab_action: getPriceHistory
|
|
65
|
+
collect: true
|
|
66
|
+
|
|
67
|
+
- name: negotiate
|
|
68
|
+
description: Negotiate a discount
|
|
69
|
+
wab_action: negotiate
|
|
70
|
+
strategy: instant_payment
|
|
71
|
+
conditions:
|
|
72
|
+
proposed_discount: 7
|
|
73
|
+
fallback_strategy: first_time
|
|
74
|
+
|
|
75
|
+
- name: purchase
|
|
76
|
+
description: Buy at best verified price
|
|
77
|
+
wab_action: buy
|
|
78
|
+
requires: [verify_prices, check_specs]
|
|
79
|
+
|
|
80
|
+
fairness_rules:
|
|
81
|
+
prefer_local: true
|
|
82
|
+
prefer_small_business: true
|
|
83
|
+
max_price: "{{max_price}}"
|
|
84
|
+
currency: USD
|
|
85
|
+
min_reputation_score: 45
|
|
86
|
+
avoid_monopolies: true
|
|
87
|
+
|
|
88
|
+
negotiation:
|
|
89
|
+
enabled: true
|
|
90
|
+
max_rounds: 3
|
|
91
|
+
strategies:
|
|
92
|
+
- instant_payment
|
|
93
|
+
- first_time
|
|
94
|
+
- bulk_order
|
|
95
|
+
walk_away_threshold: 3
|
|
96
|
+
|
|
97
|
+
verification:
|
|
98
|
+
anti_hallucination: true
|
|
99
|
+
cross_check_prices: true
|
|
100
|
+
require_vision_match: true
|
|
101
|
+
max_price_variance: 0.05
|
|
102
|
+
track_price_history: true
|
|
103
|
+
|
|
104
|
+
output:
|
|
105
|
+
format: table
|
|
106
|
+
include: [store, product, brand, price, price_history_trend, negotiated_price, warranty, reputation, verified]
|
|
107
|
+
sort_by: price
|
|
108
|
+
limit: 15
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# WAB Agent Template — Flight Deal Hunter
|
|
2
|
+
# Finds flights directly from airline websites
|
|
3
|
+
# Run: npx wab-agent run flight-deal-hunter.yaml --from "TUN" --to "CDG" --date "2026-06-15"
|
|
4
|
+
|
|
5
|
+
name: flight-deal-hunter
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
description: Find flight deals directly from airline websites, bypassing aggregator markups
|
|
8
|
+
author: WAB Community
|
|
9
|
+
tags: [travel, flights, airline, direct-booking, savings]
|
|
10
|
+
|
|
11
|
+
goal: >
|
|
12
|
+
Search WAB-enabled airline websites for direct flight bookings,
|
|
13
|
+
compare with aggregator prices, verify fares include all taxes,
|
|
14
|
+
and book at the best direct price.
|
|
15
|
+
|
|
16
|
+
target_sites:
|
|
17
|
+
discovery_method: wab-registry
|
|
18
|
+
category: airlines
|
|
19
|
+
region: global
|
|
20
|
+
fallback_urls: []
|
|
21
|
+
|
|
22
|
+
parameters:
|
|
23
|
+
- name: from
|
|
24
|
+
type: string
|
|
25
|
+
required: true
|
|
26
|
+
description: Departure airport code (IATA)
|
|
27
|
+
- name: to
|
|
28
|
+
type: string
|
|
29
|
+
required: true
|
|
30
|
+
description: Arrival airport code (IATA)
|
|
31
|
+
- name: date
|
|
32
|
+
type: date
|
|
33
|
+
required: true
|
|
34
|
+
- name: return_date
|
|
35
|
+
type: date
|
|
36
|
+
- name: passengers
|
|
37
|
+
type: number
|
|
38
|
+
default: 1
|
|
39
|
+
- name: class
|
|
40
|
+
type: string
|
|
41
|
+
default: economy
|
|
42
|
+
enum: [economy, business, first]
|
|
43
|
+
|
|
44
|
+
actions:
|
|
45
|
+
- name: discover
|
|
46
|
+
description: Find airlines serving this route
|
|
47
|
+
wab_action: discover
|
|
48
|
+
|
|
49
|
+
- name: search_flights
|
|
50
|
+
description: Search for available flights
|
|
51
|
+
wab_action: searchFlights
|
|
52
|
+
params:
|
|
53
|
+
from: "{{from}}"
|
|
54
|
+
to: "{{to}}"
|
|
55
|
+
date: "{{date}}"
|
|
56
|
+
return_date: "{{return_date}}"
|
|
57
|
+
passengers: "{{passengers}}"
|
|
58
|
+
class: "{{class}}"
|
|
59
|
+
collect: true
|
|
60
|
+
|
|
61
|
+
- name: verify_fares
|
|
62
|
+
description: Verify displayed fares include all taxes and fees
|
|
63
|
+
wab_action: verifyPrice
|
|
64
|
+
require_pass: true
|
|
65
|
+
|
|
66
|
+
- name: check_total_price
|
|
67
|
+
description: Confirm total price matches breakdown
|
|
68
|
+
wab_action: verifyText
|
|
69
|
+
params:
|
|
70
|
+
fields: [base_fare, taxes, fees, total]
|
|
71
|
+
require_pass: true
|
|
72
|
+
|
|
73
|
+
- name: negotiate
|
|
74
|
+
description: Try to get a direct-booking discount
|
|
75
|
+
wab_action: negotiate
|
|
76
|
+
strategy: instant_payment
|
|
77
|
+
conditions:
|
|
78
|
+
proposed_discount: 3
|
|
79
|
+
fallback_strategy: off_peak
|
|
80
|
+
|
|
81
|
+
- name: book
|
|
82
|
+
description: Book the flight
|
|
83
|
+
wab_action: bookFlight
|
|
84
|
+
requires: [verify_fares, check_total_price]
|
|
85
|
+
|
|
86
|
+
fairness_rules:
|
|
87
|
+
prefer_local: false
|
|
88
|
+
prefer_small_business: false
|
|
89
|
+
currency: auto
|
|
90
|
+
min_reputation_score: 60
|
|
91
|
+
avoid_monopolies: false
|
|
92
|
+
price_transparency: true
|
|
93
|
+
|
|
94
|
+
negotiation:
|
|
95
|
+
enabled: true
|
|
96
|
+
max_rounds: 2
|
|
97
|
+
strategies:
|
|
98
|
+
- instant_payment
|
|
99
|
+
- off_peak
|
|
100
|
+
walk_away_threshold: 1
|
|
101
|
+
|
|
102
|
+
verification:
|
|
103
|
+
anti_hallucination: true
|
|
104
|
+
cross_check_prices: true
|
|
105
|
+
require_vision_match: true
|
|
106
|
+
max_price_variance: 0.02
|
|
107
|
+
verify_tax_inclusion: true
|
|
108
|
+
|
|
109
|
+
output:
|
|
110
|
+
format: table
|
|
111
|
+
include: [airline, flight_number, departure, arrival, duration, stops, fare, total_with_taxes, verification]
|
|
112
|
+
sort_by: total_with_taxes
|
|
113
|
+
limit: 20
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# WAB Agent Template — Freelancer Finder
|
|
2
|
+
# Finds freelancers directly from their portfolio sites
|
|
3
|
+
# Run: npx wab-agent run freelancer-direct.yaml --skill "web-design" --budget 500
|
|
4
|
+
|
|
5
|
+
name: freelancer-direct
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
description: Find freelancers directly from their portfolio websites, bypassing Fiverr/Upwork fees
|
|
8
|
+
author: WAB Community
|
|
9
|
+
tags: [freelance, hiring, direct, anti-monopoly, services]
|
|
10
|
+
|
|
11
|
+
goal: >
|
|
12
|
+
Discover WAB-enabled freelancer portfolio sites, evaluate their work samples,
|
|
13
|
+
verify portfolio authenticity, negotiate project rates directly (saving the
|
|
14
|
+
20-30% platform fee), and initiate contact.
|
|
15
|
+
|
|
16
|
+
target_sites:
|
|
17
|
+
discovery_method: wab-registry
|
|
18
|
+
category: freelance-services
|
|
19
|
+
region: global
|
|
20
|
+
fallback_urls: []
|
|
21
|
+
|
|
22
|
+
parameters:
|
|
23
|
+
- name: skill
|
|
24
|
+
type: string
|
|
25
|
+
required: true
|
|
26
|
+
description: "Skill to search for (e.g. web-design, copywriting, video-editing)"
|
|
27
|
+
- name: budget
|
|
28
|
+
type: number
|
|
29
|
+
required: true
|
|
30
|
+
description: Maximum budget in USD
|
|
31
|
+
- name: deadline_days
|
|
32
|
+
type: number
|
|
33
|
+
default: 14
|
|
34
|
+
- name: prefer_timezone
|
|
35
|
+
type: string
|
|
36
|
+
description: Preferred timezone (e.g. UTC+1, EST)
|
|
37
|
+
|
|
38
|
+
actions:
|
|
39
|
+
- name: discover
|
|
40
|
+
description: Find freelancers with the required skill
|
|
41
|
+
wab_action: discover
|
|
42
|
+
|
|
43
|
+
- name: get_portfolio
|
|
44
|
+
description: Retrieve portfolio samples and past work
|
|
45
|
+
wab_action: getPortfolio
|
|
46
|
+
params:
|
|
47
|
+
skill: "{{skill}}"
|
|
48
|
+
|
|
49
|
+
- name: check_availability
|
|
50
|
+
description: Check freelancer availability
|
|
51
|
+
wab_action: checkAvailability
|
|
52
|
+
params:
|
|
53
|
+
start_date: today
|
|
54
|
+
duration_days: "{{deadline_days}}"
|
|
55
|
+
|
|
56
|
+
- name: get_rates
|
|
57
|
+
description: Get hourly or project rates
|
|
58
|
+
wab_action: getRates
|
|
59
|
+
params:
|
|
60
|
+
project_type: "{{skill}}"
|
|
61
|
+
collect: true
|
|
62
|
+
|
|
63
|
+
- name: verify_portfolio
|
|
64
|
+
description: Verify portfolio screenshots match descriptions
|
|
65
|
+
wab_action: verifyText
|
|
66
|
+
require_pass: true
|
|
67
|
+
|
|
68
|
+
- name: check_reputation
|
|
69
|
+
description: Check freelancer reputation in WAB network
|
|
70
|
+
wab_action: getReputation
|
|
71
|
+
|
|
72
|
+
- name: negotiate
|
|
73
|
+
description: Negotiate project rate directly
|
|
74
|
+
wab_action: negotiate
|
|
75
|
+
strategy: instant_payment
|
|
76
|
+
conditions:
|
|
77
|
+
proposed_discount: 15
|
|
78
|
+
argument: "No platform fees — you keep 100% of the payment"
|
|
79
|
+
fallback_strategy: first_time
|
|
80
|
+
|
|
81
|
+
- name: contact
|
|
82
|
+
description: Initiate contact with selected freelancer
|
|
83
|
+
wab_action: contact
|
|
84
|
+
requires: [verify_portfolio, check_reputation]
|
|
85
|
+
|
|
86
|
+
fairness_rules:
|
|
87
|
+
prefer_local: false
|
|
88
|
+
prefer_small_business: true
|
|
89
|
+
max_price: "{{budget}}"
|
|
90
|
+
currency: USD
|
|
91
|
+
min_reputation_score: 35
|
|
92
|
+
avoid_monopolies: true
|
|
93
|
+
|
|
94
|
+
negotiation:
|
|
95
|
+
enabled: true
|
|
96
|
+
max_rounds: 3
|
|
97
|
+
strategies:
|
|
98
|
+
- instant_payment
|
|
99
|
+
- first_time
|
|
100
|
+
- loyalty
|
|
101
|
+
walk_away_threshold: 5
|
|
102
|
+
pitch: >
|
|
103
|
+
On Fiverr/Upwork you'd lose 20-30% in fees. By working direct through WAB,
|
|
104
|
+
you keep 100%. Let's split the savings.
|
|
105
|
+
|
|
106
|
+
verification:
|
|
107
|
+
anti_hallucination: true
|
|
108
|
+
verify_descriptions: true
|
|
109
|
+
require_vision_match: true
|
|
110
|
+
max_price_variance: 0.20
|
|
111
|
+
|
|
112
|
+
output:
|
|
113
|
+
format: json
|
|
114
|
+
include: [freelancer, skill_match, rate, negotiated_rate, savings_vs_platform, reputation, portfolio_verified]
|
|
115
|
+
sort_by: rate
|
|
116
|
+
limit: 10
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# WAB Agent Template — Grocery Price Comparison
|
|
2
|
+
# Compares grocery prices across local stores
|
|
3
|
+
# Run: npx wab-agent run grocery-price-compare.yaml --items "milk,bread,eggs,rice"
|
|
4
|
+
|
|
5
|
+
name: grocery-price-compare
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
description: Compare grocery prices across WAB-enabled local stores and find the cheapest basket
|
|
8
|
+
author: WAB Community
|
|
9
|
+
tags: [grocery, price-comparison, local, shopping, savings]
|
|
10
|
+
|
|
11
|
+
goal: >
|
|
12
|
+
Search WAB-enabled grocery stores and local markets, compare prices for a list
|
|
13
|
+
of items, verify prices are accurate, find the store with the lowest total basket
|
|
14
|
+
cost, and optionally negotiate bulk deals.
|
|
15
|
+
|
|
16
|
+
target_sites:
|
|
17
|
+
discovery_method: wab-registry
|
|
18
|
+
category: grocery
|
|
19
|
+
region: auto
|
|
20
|
+
fallback_urls: []
|
|
21
|
+
|
|
22
|
+
parameters:
|
|
23
|
+
- name: items
|
|
24
|
+
type: string[]
|
|
25
|
+
required: true
|
|
26
|
+
description: "Comma-separated list of grocery items to compare"
|
|
27
|
+
- name: radius_km
|
|
28
|
+
type: number
|
|
29
|
+
default: 10
|
|
30
|
+
description: Search radius in kilometers
|
|
31
|
+
- name: prefer_organic
|
|
32
|
+
type: boolean
|
|
33
|
+
default: false
|
|
34
|
+
|
|
35
|
+
actions:
|
|
36
|
+
- name: discover
|
|
37
|
+
description: Find WAB-enabled grocery stores nearby
|
|
38
|
+
wab_action: discover
|
|
39
|
+
|
|
40
|
+
- name: search_items
|
|
41
|
+
description: Search for each item in the shopping list
|
|
42
|
+
wab_action: searchProducts
|
|
43
|
+
params:
|
|
44
|
+
query: "{{item}}"
|
|
45
|
+
loop_over: items
|
|
46
|
+
collect: true
|
|
47
|
+
|
|
48
|
+
- name: verify_prices
|
|
49
|
+
description: Verify displayed prices match DOM
|
|
50
|
+
wab_action: verifyPrice
|
|
51
|
+
require_pass: true
|
|
52
|
+
|
|
53
|
+
- name: negotiate_basket
|
|
54
|
+
description: Try to negotiate a bundle discount for the full basket
|
|
55
|
+
wab_action: negotiate
|
|
56
|
+
strategy: bulk_order
|
|
57
|
+
conditions:
|
|
58
|
+
proposed_discount: 8
|
|
59
|
+
argument: "Buying multiple items together"
|
|
60
|
+
fallback_strategy: loyalty
|
|
61
|
+
|
|
62
|
+
- name: build_optimal_basket
|
|
63
|
+
description: Calculate the cheapest combination across stores
|
|
64
|
+
internal: true
|
|
65
|
+
logic: minimize_total_cost
|
|
66
|
+
|
|
67
|
+
fairness_rules:
|
|
68
|
+
prefer_local: true
|
|
69
|
+
prefer_small_business: true
|
|
70
|
+
currency: auto
|
|
71
|
+
min_reputation_score: 20
|
|
72
|
+
avoid_monopolies: true
|
|
73
|
+
|
|
74
|
+
negotiation:
|
|
75
|
+
enabled: true
|
|
76
|
+
max_rounds: 2
|
|
77
|
+
strategies:
|
|
78
|
+
- bulk_order
|
|
79
|
+
- loyalty
|
|
80
|
+
- repeat_customer
|
|
81
|
+
walk_away_threshold: 3
|
|
82
|
+
|
|
83
|
+
verification:
|
|
84
|
+
anti_hallucination: true
|
|
85
|
+
cross_check_prices: true
|
|
86
|
+
require_vision_match: false
|
|
87
|
+
max_price_variance: 0.08
|
|
88
|
+
|
|
89
|
+
output:
|
|
90
|
+
format: table
|
|
91
|
+
include: [store_name, item, price, best_price, store_total, verification_status]
|
|
92
|
+
sort_by: store_total
|
|
93
|
+
summary: true
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# WAB Agent Template — Local Hotel Finder
|
|
2
|
+
# Finds hotels directly (bypassing Booking.com/Expedia monopoly)
|
|
3
|
+
# Run: npx wab-agent run hotel-direct-booking.yaml
|
|
4
|
+
|
|
5
|
+
name: hotel-direct-booking
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
description: Find and book hotels directly from their own websites, bypassing aggregator commissions
|
|
8
|
+
author: WAB Community
|
|
9
|
+
tags: [travel, hotels, direct-booking, anti-monopoly, negotiation]
|
|
10
|
+
|
|
11
|
+
goal: >
|
|
12
|
+
Search WAB-enabled hotels in the target city, compare rates with aggregator
|
|
13
|
+
prices, negotiate direct-booking discounts, and book at the best price while
|
|
14
|
+
supporting independent hoteliers.
|
|
15
|
+
|
|
16
|
+
target_sites:
|
|
17
|
+
discovery_method: wab-registry
|
|
18
|
+
category: hotels
|
|
19
|
+
region: auto
|
|
20
|
+
fallback_urls: []
|
|
21
|
+
|
|
22
|
+
parameters:
|
|
23
|
+
- name: city
|
|
24
|
+
type: string
|
|
25
|
+
required: true
|
|
26
|
+
description: City name to search hotels in
|
|
27
|
+
- name: checkin
|
|
28
|
+
type: date
|
|
29
|
+
required: true
|
|
30
|
+
- name: checkout
|
|
31
|
+
type: date
|
|
32
|
+
required: true
|
|
33
|
+
- name: guests
|
|
34
|
+
type: number
|
|
35
|
+
default: 2
|
|
36
|
+
- name: max_budget
|
|
37
|
+
type: number
|
|
38
|
+
description: Maximum price per night in USD
|
|
39
|
+
default: 200
|
|
40
|
+
|
|
41
|
+
actions:
|
|
42
|
+
- name: discover
|
|
43
|
+
description: Find WAB-enabled hotels in target city
|
|
44
|
+
wab_action: discover
|
|
45
|
+
|
|
46
|
+
- name: check_availability
|
|
47
|
+
description: Check room availability for the given dates
|
|
48
|
+
wab_action: checkAvailability
|
|
49
|
+
params:
|
|
50
|
+
checkin: "{{checkin}}"
|
|
51
|
+
checkout: "{{checkout}}"
|
|
52
|
+
guests: "{{guests}}"
|
|
53
|
+
|
|
54
|
+
- name: get_rates
|
|
55
|
+
description: Get room rates from each hotel
|
|
56
|
+
wab_action: getRates
|
|
57
|
+
params:
|
|
58
|
+
checkin: "{{checkin}}"
|
|
59
|
+
checkout: "{{checkout}}"
|
|
60
|
+
collect: true
|
|
61
|
+
|
|
62
|
+
- name: verify_rates
|
|
63
|
+
description: Verify displayed rates match actual DOM values
|
|
64
|
+
wab_action: verifyPrice
|
|
65
|
+
require_pass: true
|
|
66
|
+
|
|
67
|
+
- name: negotiate
|
|
68
|
+
description: Negotiate direct-booking discount
|
|
69
|
+
wab_action: negotiate
|
|
70
|
+
strategy: instant_payment
|
|
71
|
+
conditions:
|
|
72
|
+
proposed_discount: 10
|
|
73
|
+
argument: "Direct booking saves you the 15-20% aggregator commission"
|
|
74
|
+
fallback_strategy: off_peak
|
|
75
|
+
|
|
76
|
+
- name: book
|
|
77
|
+
description: Book the room at negotiated rate
|
|
78
|
+
wab_action: bookRoom
|
|
79
|
+
requires: [verify_rates, negotiate]
|
|
80
|
+
|
|
81
|
+
fairness_rules:
|
|
82
|
+
prefer_local: true
|
|
83
|
+
prefer_small_business: true
|
|
84
|
+
max_price_per_night: "{{max_budget}}"
|
|
85
|
+
currency: USD
|
|
86
|
+
min_reputation_score: 50
|
|
87
|
+
avoid_monopolies: true
|
|
88
|
+
boycott_sites: []
|
|
89
|
+
|
|
90
|
+
negotiation:
|
|
91
|
+
enabled: true
|
|
92
|
+
max_rounds: 3
|
|
93
|
+
strategies:
|
|
94
|
+
- instant_payment
|
|
95
|
+
- off_peak
|
|
96
|
+
- repeat_customer
|
|
97
|
+
- loyalty
|
|
98
|
+
walk_away_threshold: 3
|
|
99
|
+
pitch: >
|
|
100
|
+
By booking direct, you save the 15-20% commission you'd pay Booking.com.
|
|
101
|
+
Pass some of that savings to me as a discount.
|
|
102
|
+
|
|
103
|
+
verification:
|
|
104
|
+
anti_hallucination: true
|
|
105
|
+
cross_check_prices: true
|
|
106
|
+
require_vision_match: true
|
|
107
|
+
max_price_variance: 0.05
|
|
108
|
+
|
|
109
|
+
output:
|
|
110
|
+
format: table
|
|
111
|
+
include: [hotel_name, room_type, original_rate, negotiated_rate, savings_pct, reputation, verification]
|
|
112
|
+
sort_by: negotiated_rate
|
|
113
|
+
limit: 20
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# WAB Agent Template — Local Services Finder
|
|
2
|
+
# Finds local service providers (plumber, electrician, etc.)
|
|
3
|
+
# Run: npx wab-agent run local-services.yaml --service "plumber" --city "Tunis"
|
|
4
|
+
|
|
5
|
+
name: local-services
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
description: Find local service providers directly — no middleman platforms
|
|
8
|
+
author: WAB Community
|
|
9
|
+
tags: [services, local, plumber, electrician, handyman, direct]
|
|
10
|
+
|
|
11
|
+
goal: >
|
|
12
|
+
Find WAB-enabled local service providers, check their reputation,
|
|
13
|
+
verify reviews and credentials, negotiate fair rates, and book directly.
|
|
14
|
+
|
|
15
|
+
target_sites:
|
|
16
|
+
discovery_method: wab-registry
|
|
17
|
+
category: local-services
|
|
18
|
+
region: auto
|
|
19
|
+
fallback_urls: []
|
|
20
|
+
|
|
21
|
+
parameters:
|
|
22
|
+
- name: service
|
|
23
|
+
type: string
|
|
24
|
+
required: true
|
|
25
|
+
description: "Service type (plumber, electrician, carpenter, painter, cleaner)"
|
|
26
|
+
- name: city
|
|
27
|
+
type: string
|
|
28
|
+
required: true
|
|
29
|
+
- name: urgency
|
|
30
|
+
type: string
|
|
31
|
+
default: normal
|
|
32
|
+
enum: [urgent, normal, flexible]
|
|
33
|
+
|
|
34
|
+
actions:
|
|
35
|
+
- name: discover
|
|
36
|
+
description: Find service providers in the area
|
|
37
|
+
wab_action: discover
|
|
38
|
+
|
|
39
|
+
- name: check_services
|
|
40
|
+
description: Get list of services offered and rates
|
|
41
|
+
wab_action: getServices
|
|
42
|
+
params:
|
|
43
|
+
type: "{{service}}"
|
|
44
|
+
collect: true
|
|
45
|
+
|
|
46
|
+
- name: check_reputation
|
|
47
|
+
description: Check provider reputation
|
|
48
|
+
wab_action: getReputation
|
|
49
|
+
|
|
50
|
+
- name: verify_reviews
|
|
51
|
+
description: Verify reviews are genuine
|
|
52
|
+
wab_action: verifyText
|
|
53
|
+
require_pass: true
|
|
54
|
+
|
|
55
|
+
- name: check_availability
|
|
56
|
+
description: Check provider availability
|
|
57
|
+
wab_action: checkAvailability
|
|
58
|
+
|
|
59
|
+
- name: negotiate
|
|
60
|
+
description: Negotiate service rate
|
|
61
|
+
wab_action: negotiate
|
|
62
|
+
strategy: repeat_customer
|
|
63
|
+
conditions:
|
|
64
|
+
proposed_discount: 10
|
|
65
|
+
fallback_strategy: off_peak
|
|
66
|
+
|
|
67
|
+
- name: book
|
|
68
|
+
description: Book the service
|
|
69
|
+
wab_action: bookService
|
|
70
|
+
requires: [check_reputation, verify_reviews]
|
|
71
|
+
|
|
72
|
+
fairness_rules:
|
|
73
|
+
prefer_local: true
|
|
74
|
+
prefer_small_business: true
|
|
75
|
+
currency: auto
|
|
76
|
+
min_reputation_score: 40
|
|
77
|
+
avoid_monopolies: true
|
|
78
|
+
|
|
79
|
+
negotiation:
|
|
80
|
+
enabled: true
|
|
81
|
+
max_rounds: 2
|
|
82
|
+
strategies:
|
|
83
|
+
- repeat_customer
|
|
84
|
+
- off_peak
|
|
85
|
+
- instant_payment
|
|
86
|
+
walk_away_threshold: 5
|
|
87
|
+
|
|
88
|
+
verification:
|
|
89
|
+
anti_hallucination: true
|
|
90
|
+
verify_descriptions: true
|
|
91
|
+
verify_reviews: true
|
|
92
|
+
max_price_variance: 0.15
|
|
93
|
+
|
|
94
|
+
output:
|
|
95
|
+
format: table
|
|
96
|
+
include: [provider, service, rate, availability, reputation, reviews_verified, negotiated_rate]
|
|
97
|
+
sort_by: reputation
|
|
98
|
+
limit: 10
|