start_negotiation
Open a new negotiation session for a product. Provide domain and product ID to receive the merchant's opening greeting and a session ID for continued negotiation.
Instructions
Open a new negotiation session for a specific product.
Looks up the start_chat URL template from the store's descriptor, substitutes the product_id, fetches the result. The merchant agent's opening greeting is in the response.
Args: domain: Site to negotiate at. product_id: Must be one of products[].id from list_products().
Returns: Dict with session_id, greeting (merchant's opener), and next URL for the next turn (with {url_encoded_message} placeholder).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| product_id | Yes |