Customize
Features
Turn any feature on or off, or hand it to your own code. Built-in, Host or Off.
CartesianFeatures decides what the assistant can do and who handles it. Cart and wishlist each take a FeatureMode:
| Mode | Meaning |
|---|---|
FeatureMode.BuiltIn | Cartesian handles it: its own cart or wishlist, with its own drawer UI. |
FeatureMode.Host | The button is shown, but the action calls your CartesianListener. You own the state. |
FeatureMode.Off | The feature is removed from the UI completely. |
Try every combination in the Playground.
val features = CartesianFeatures.Builder()
.cart(FeatureMode.Host) // "Add" goes to your cart
.wishlist(FeatureMode.Off) // no hearts, no saved tab
.suggestions(SuggestionMode.StartersAndFollowUps)
.suggestionPlacement(SuggestionPlacement.AboveComposer)
.voice(true)
.feedback(true)
.newChat(true)
.trace(true)
.productTap(true)
.build()
CartesianOptions.Builder().features(features).build()let features = CartesianFeatures(
cart: .host,
wishlist: .off,
suggestions: .startersAndFollowUps,
feedback: true,
newChat: true,
trace: true,
productTap: true,
voice: true,
suggestionPlacement: .aboveComposer
)
CartesianOptions(features: features)const options = {
features: {
cart: "host",
wishlist: "off",
suggestions: "startersAndFollowUps",
suggestionPlacement: "aboveComposer",
voice: true,
feedback: true,
newChat: true,
trace: true,
productTap: true,
},
};Reference
Add-to-cart buttons on product cards, the cart icon in the header, and the cart update cards in answers. With Host, see Cart and wishlist.
Heart buttons, the saved count in the header, and the Saved tab of the drawer.
Off · Starters (welcome-screen questions only) · StartersAndFollowUps (also follow-up chips after each answer).
Where follow-up chips appear. See Suggestions.
The microphone button in the composer. It uses on-device speech recognition and falls back to the system voice prompt.
Thumbs up and down on answers. Ratings are sent to your backend.
The "new chat" button in the header.
The live activity trace ("Searching dairy…", "Comparing 3 products") above each answer.
Tapping a product card calls CartesianListener.onProductSelected, so you can open your own product page.
Need something that isn't a toggle? Every visual piece can be replaced with a slot, and every action is available on the controller.




