Guides
Page context
Tell agents and triage where the contact is in your product: the plan, the cart, the current order.
Set page context
Section titled “Set page context”Call Iris.setPageContext when the page loads, and again when the facts change. Each call replaces the earlier page context. Iris keeps only the latest one for the conversation, and adds the page url and title itself.
Iris.setPageContext({ plan: "pro", cartTotal: 42.5, beta: true, coupon: null,});Limits
Section titled “Limits”- A flat object: no nested objects or arrays.
- Up to 48 of your own keys. Iris adds
urlandtitle, 50 in all. A key has up to 64 characters. - Each value is a string of up to 500 characters, a number, a boolean or
null.
Every limit is also in Iris.setPageContext.