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.
@@ -0,0 +1,88 @@
1
+ # WAB Agent Template — Tunisian Olive Oil Finder
2
+ # Finds the best olive oil deals from small Tunisian producers
3
+ # Run: npx wab-agent run olive-oil-tunisia.yaml
4
+
5
+ name: olive-oil-tunisia
6
+ version: 1.0.0
7
+ description: Find premium olive oil from small Tunisian farms at fair prices
8
+ author: WAB Community
9
+ tags: [food, olive-oil, tunisia, fair-trade, agriculture]
10
+
11
+ goal: >
12
+ Search WAB-enabled olive oil stores in Tunisia, compare prices and quality,
13
+ negotiate bulk discounts, and verify prices are genuine using anti-hallucination shield.
14
+
15
+ target_sites:
16
+ discovery_method: wab-registry
17
+ category: food-olive-oil
18
+ region: tunisia
19
+ fallback_urls:
20
+ - https://example-olive-farm.tn
21
+ - https://sfax-olive-cooperative.tn
22
+
23
+ actions:
24
+ - name: discover
25
+ description: Discover all available products from the site
26
+ wab_action: getProducts
27
+
28
+ - name: compare_prices
29
+ description: Compare olive oil prices across discovered sites
30
+ wab_action: getPrice
31
+ params:
32
+ category: extra-virgin-olive-oil
33
+ collect: true
34
+
35
+ - name: check_quality
36
+ description: Verify organic certification and harvest date
37
+ wab_action: getProductDetails
38
+ params:
39
+ fields: [certification, harvest_date, acidity_level, origin_farm]
40
+
41
+ - name: negotiate
42
+ description: Negotiate bulk order discount
43
+ wab_action: negotiate
44
+ strategy: bulk_order
45
+ conditions:
46
+ min_quantity: 5
47
+ proposed_discount: 15
48
+ fallback_strategy: first_time
49
+
50
+ - name: verify
51
+ description: Cross-check prices with anti-hallucination shield
52
+ wab_action: verifyPrice
53
+ require_pass: true
54
+
55
+ - name: purchase
56
+ description: Complete the purchase at negotiated price
57
+ wab_action: buy
58
+ requires: [verify, negotiate]
59
+
60
+ fairness_rules:
61
+ prefer_local: true
62
+ prefer_small_business: true
63
+ max_price_per_liter: 25.00
64
+ currency: USD
65
+ min_reputation_score: 40
66
+ avoid_monopolies: true
67
+ require_organic: false
68
+
69
+ negotiation:
70
+ enabled: true
71
+ max_rounds: 3
72
+ strategies:
73
+ - bulk_order
74
+ - first_time
75
+ - instant_payment
76
+ walk_away_threshold: 5
77
+
78
+ verification:
79
+ anti_hallucination: true
80
+ cross_check_prices: true
81
+ require_vision_match: false
82
+ max_price_variance: 0.10
83
+
84
+ output:
85
+ format: json
86
+ include: [site, product, price, negotiated_price, savings, quality_score, verification_status]
87
+ sort_by: price_per_liter
88
+ limit: 10
@@ -0,0 +1,101 @@
1
+ # WAB Agent Template — Organic Farm Fresh
2
+ # Connects consumers directly with organic farms
3
+ # Run: npx wab-agent run organic-farm-fresh.yaml --product "vegetables"
4
+
5
+ name: organic-farm-fresh
6
+ version: 1.0.0
7
+ description: Buy organic produce directly from farms — no supermarket markup
8
+ author: WAB Community
9
+ tags: [organic, farming, fresh-produce, direct-buy, agriculture]
10
+
11
+ goal: >
12
+ Find WAB-enabled organic farms and cooperatives, verify organic certification,
13
+ compare prices with supermarket equivalents, negotiate farm-direct pricing,
14
+ and support sustainable agriculture.
15
+
16
+ target_sites:
17
+ discovery_method: wab-registry
18
+ category: organic-farming
19
+ region: auto
20
+ fallback_urls: []
21
+
22
+ parameters:
23
+ - name: product
24
+ type: string
25
+ required: true
26
+ description: "Type of produce (vegetables, fruits, dairy, eggs, honey, herbs)"
27
+ - name: organic_only
28
+ type: boolean
29
+ default: true
30
+ - name: max_distance_km
31
+ type: number
32
+ default: 50
33
+
34
+ actions:
35
+ - name: discover
36
+ description: Find organic farms and cooperatives
37
+ wab_action: discover
38
+
39
+ - name: browse_produce
40
+ description: See available seasonal produce
41
+ wab_action: getProducts
42
+ params:
43
+ category: "{{product}}"
44
+ organic: "{{organic_only}}"
45
+ collect: true
46
+
47
+ - name: verify_certification
48
+ description: Verify organic certification claims
49
+ wab_action: verifyText
50
+ params:
51
+ fields: [certification, certifier, valid_until]
52
+ require_pass: true
53
+
54
+ - name: verify_prices
55
+ description: Cross-check prices
56
+ wab_action: verifyPrice
57
+ require_pass: true
58
+
59
+ - name: negotiate
60
+ description: Negotiate farm-direct pricing
61
+ wab_action: negotiate
62
+ strategy: bulk_order
63
+ conditions:
64
+ proposed_discount: 12
65
+ argument: "Buying direct saves packaging and distribution costs"
66
+ fallback_strategy: repeat_customer
67
+
68
+ - name: order
69
+ description: Place order for pickup or delivery
70
+ wab_action: placeOrder
71
+ requires: [verify_certification, verify_prices]
72
+
73
+ fairness_rules:
74
+ prefer_local: true
75
+ prefer_small_business: true
76
+ currency: auto
77
+ min_reputation_score: 20
78
+ avoid_monopolies: true
79
+ support_sustainable: true
80
+
81
+ negotiation:
82
+ enabled: true
83
+ max_rounds: 2
84
+ strategies:
85
+ - bulk_order
86
+ - repeat_customer
87
+ - loyalty
88
+ walk_away_threshold: 0
89
+ respect_farmer_floor: true
90
+
91
+ verification:
92
+ anti_hallucination: true
93
+ cross_check_prices: true
94
+ verify_certifications: true
95
+ max_price_variance: 0.10
96
+
97
+ output:
98
+ format: table
99
+ include: [farm, product, unit, price, organic_certified, distance_km, reputation, freshness]
100
+ sort_by: distance_km
101
+ limit: 15
@@ -0,0 +1,97 @@
1
+ # WAB Agent Template — Local Restaurant Finder
2
+ # Finds restaurants directly without Uber Eats / DoorDash
3
+ # Run: npx wab-agent run restaurant-direct.yaml --cuisine "italian" --city "Rome"
4
+
5
+ name: restaurant-direct
6
+ version: 1.0.0
7
+ description: Discover and order from local restaurants directly, saving delivery app commissions
8
+ author: WAB Community
9
+ tags: [food, restaurant, delivery, local, anti-monopoly]
10
+
11
+ goal: >
12
+ Find WAB-enabled restaurants, browse menus with verified prices,
13
+ negotiate group/regular customer discounts, and order directly.
14
+
15
+ target_sites:
16
+ discovery_method: wab-registry
17
+ category: restaurants
18
+ region: auto
19
+ fallback_urls: []
20
+
21
+ parameters:
22
+ - name: cuisine
23
+ type: string
24
+ description: Cuisine type (e.g. italian, japanese, moroccan)
25
+ - name: city
26
+ type: string
27
+ required: true
28
+ - name: delivery
29
+ type: boolean
30
+ default: true
31
+ - name: max_price
32
+ type: number
33
+ default: 50
34
+
35
+ actions:
36
+ - name: discover
37
+ description: Find restaurants in the area
38
+ wab_action: discover
39
+
40
+ - name: get_menu
41
+ description: Get restaurant menu
42
+ wab_action: getMenu
43
+ params:
44
+ cuisine: "{{cuisine}}"
45
+ collect: true
46
+
47
+ - name: verify_prices
48
+ description: Cross-check menu prices
49
+ wab_action: verifyPrice
50
+ require_pass: true
51
+
52
+ - name: check_reputation
53
+ description: Check restaurant WAB reputation
54
+ wab_action: getReputation
55
+
56
+ - name: negotiate
57
+ description: Negotiate regular customer or group order discount
58
+ wab_action: negotiate
59
+ strategy: repeat_customer
60
+ conditions:
61
+ proposed_discount: 10
62
+ fallback_strategy: first_time
63
+
64
+ - name: order
65
+ description: Place order directly
66
+ wab_action: placeOrder
67
+ requires: [verify_prices]
68
+
69
+ fairness_rules:
70
+ prefer_local: true
71
+ prefer_small_business: true
72
+ max_price: "{{max_price}}"
73
+ currency: auto
74
+ min_reputation_score: 30
75
+ avoid_monopolies: true
76
+
77
+ negotiation:
78
+ enabled: true
79
+ max_rounds: 2
80
+ strategies:
81
+ - repeat_customer
82
+ - first_time
83
+ - bulk_order
84
+ walk_away_threshold: 0
85
+ pitch: "No Uber Eats commission — pass some savings to me"
86
+
87
+ verification:
88
+ anti_hallucination: true
89
+ cross_check_prices: true
90
+ require_vision_match: false
91
+ max_price_variance: 0.10
92
+
93
+ output:
94
+ format: table
95
+ include: [restaurant, cuisine, dish, price, rating, reputation, delivery_available]
96
+ sort_by: price
97
+ limit: 15