Cartesiandocs

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:

ModeMeaning
FeatureMode.BuiltInCartesian handles it: its own cart or wishlist, with its own drawer UI.
FeatureMode.HostThe button is shown, but the action calls your CartesianListener. You own the state.
FeatureMode.OffThe feature is removed from the UI completely.
9:41

FreshMart

Delivering to Home · 94107 · in 45 min

🥛Dairy
🥦Produce
🍞Bakery
🥩Meat
🍿Snacks

Lucerne Farms Eggs Large

$1.29

Wilcox Family Farm Organic Brown Eggs

$1.29

O Organics Sharp Cheddar Sliced

$2.99

Horizon Organic String Cheese

$5.99

FreshMart Assistant

Eggs and cheese for breakfast, add the cheapest eggs

SM
Searched eggs
Searched cheese
Viewed4 products

Here's a quick breakfast basket. The cheapest eggs are Lucerne Farms Large at $1.29, so I added a carton to your cart.

For cheese, the O Organics sharp cheddar slices are $2.99. If the kids want something to grab, Horizon string cheese is $5.99 for six.

4 results

Lucerne Farms Eggs Large

6 Count · Eggs

$1.29

$0.22/ct

Usual

Wilcox Family Farm Organic Brown Eggs

12 Count · Eggs

$1.29

$0.11/ct

O Organics Sharp Cheddar Sliced

6 Oz · Cheese

$2.99

$0.50/oz

Horizon Organic String Cheese

6 Count · Cheese

$5.99

$1.00/ct

Added 1 item to your cart

FreshMart Assistant can make mistakes. Please check prices and ingredients before you buy.

Powered byCogitX Cartesian
Defaults: cart and wishlist BuiltIn
9:41

FreshMart

Delivering to Home · 94107 · in 45 min

🥛Dairy
🥦Produce
🍞Bakery
🥩Meat
🍿Snacks

Lucerne Farms Eggs Large

$1.29

Wilcox Family Farm Organic Brown Eggs

$1.29

O Organics Sharp Cheddar Sliced

$2.99

Horizon Organic String Cheese

$5.99

FreshMart Assistant

Eggs and cheese for breakfast, add the cheapest eggs

SM

Here's a quick breakfast basket. The cheapest eggs are Lucerne Farms Large at $1.29, so I added a carton to your cart.

For cheese, the O Organics sharp cheddar slices are $2.99. If the kids want something to grab, Horizon string cheese is $5.99 for six.

4 results

Lucerne Farms Eggs Large

6 Count · Eggs

$1.29

$0.22/ct

Usual

Wilcox Family Farm Organic Brown Eggs

12 Count · Eggs

$1.29

$0.11/ct

O Organics Sharp Cheddar Sliced

6 Oz · Cheese

$2.99

$0.50/oz

Horizon Organic String Cheese

6 Count · Cheese

$5.99

$1.00/ct

FreshMart Assistant can make mistakes. Please check prices and ingredients before you buy.

Powered byCogitX Cartesian
Cart, wishlist and trace Off

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()

Reference

cartFeatureModedefault: BuiltIn

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.

wishlistFeatureModedefault: BuiltIn

Heart buttons, the saved count in the header, and the Saved tab of the drawer.

suggestionsSuggestionModedefault: StartersAndFollowUps

Off · Starters (welcome-screen questions only) · StartersAndFollowUps (also follow-up chips after each answer).

suggestionPlacementSuggestionPlacementdefault: AboveComposer

Where follow-up chips appear. See Suggestions.

voiceBooleandefault: true

The microphone button in the composer. It uses on-device speech recognition and falls back to the system voice prompt.

feedbackBooleandefault: true

Thumbs up and down on answers. Ratings are sent to your backend.

newChatBooleandefault: true

The "new chat" button in the header.

traceBooleandefault: true

The live activity trace ("Searching dairy…", "Comparing 3 products") above each answer.

productTapBooleandefault: true

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.