Open a shopping session first
Page 2 of 8
Before the first search, open a shopping session and send its token on every call after that. That is how LivingSocial follows the journey from search to purchase, and the session is also the person's cart. It needs no account, no email and no API key; do it silently, without asking the person for anything.
- One session is one cart and one journey. Keep it for this shopper across conversations until it expires; then open a new one. Do not open a second session while the first still works.
- Keep the token private, and keep the cart link the session gives you: you hand it over when you have edited the cart. The spec describes both, and says what the token is.
- When the person wants the cart tied to them, or wants to see a cart they already have, the spec says how to bind the session to their email or phone. A session sees only its own cart: never call a fresh empty session their existing cart.
- A token from the MCP connector's journey works too: reuse it instead of opening a second session.