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:

Google Assistant

Voice commands

A2A Bridge

Agent-to-Agent protocol

wish.now API

AP2 mandates + fulfillment

1

Prerequisites

  • A wish.now account (sign up)
  • A Google account with Google Pay set up
  • Google Assistant enabled on your device
2

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 voice
  • search_wishes - Find wishes by description
  • get_status - Check wish progress
3

AP2 Mandate Types

AP2

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

AP2

Cart Mandate

Converts intent into a specific cart with itemized amounts. Validated against the intent's budget cap.

AP2

Payment Mandate

Executes the payment via Google Pay. Final step in the mandate chain.

4

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"

5

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