Google Assistant Setup
Connect Google Assistant to wish.now via the AP2 protocol and A2A bridge.
How It Works
Google Assistant connects to wish.now through two protocols working together:
Voice commands
Agent-to-Agent protocol
AP2 mandates + fulfillment
Prerequisites
- A wish.now account (sign up)
- A Google account with Google Pay set up
- Google Assistant enabled on your device
A2A Bridge Configuration
The Agent-to-Agent (A2A) bridge translates between Google Assistant's protocol and wish.now's API. It runs on Google Cloud Functions.
Bridge Endpoint
https://us-central1-pragma-vision-mvp.cloudfunctions.net/a2a-bridge Supported Operations
create_wish- Create a wish via voicesearch_wishes- Find wishes by descriptionget_status- Check wish progress
AP2 Mandate Types
Intent Mandate
User expresses intent to spend up to a maximum amount. Creates a budget-capped authorization.
Flow: Voice command → A2A bridge → API creates ECDSA-signed mandate → Budget cap set
Cart Mandate
Converts intent into a specific cart with itemized amounts. Validated against the intent's budget cap.
Payment Mandate
Executes the payment via Google Pay. Final step in the mandate chain.
Voice Commands
Example voice commands you can use with Google Assistant:
"Hey Google, I need a dog walker in San Francisco for $150 a month"
"Hey Google, find me someone to fix my kitchen sink, budget $200"
"Hey Google, check the status of my dog walker wish"
Security
- ECDSA Signatures: Every mandate is cryptographically signed to prevent tampering
- Nonce Validation: Replay attacks are blocked via 5-minute TTL nonces
- Budget Caps: AI agents cannot exceed your specified maximum amount
- Server-Side Calculation: All financial amounts are validated server-side