get_chat_preprompts
Use navigation page type, title, and optional product GTIN to fetch contextual and generic chat suggestions for the Carrefour AI assistant and populate chat suggestion chips on search results or product pages.
Instructions
Retrieves contextual and/or generic pre-suggested questions/prompts for the Carrefour AI chat assistant (OCB), based on the user's current navigation context (page type and title). For product detail pages, a product GTIN can also be provided. Returns contextual questions relevant to the current page (e.g. recipe suggestions for a search on 'tomato') and generic questions (e.g. recipe ideas, shopping list generation, product recommendations). Useful for populating chat suggestion chips on search results or product pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Maximum number of preprompts to return. | |
| modes | Yes | List of prompt modes to retrieve. Possible values: 'contextual' (questions related to the current page context) and/or 'generic' (general shopping assistant questions). | |
| navigationCurrentPageType | Yes | The type of the current page. Examples: 'search-results-product-listing-page', 'product-detail-page'. | |
| navigationProductPageGtin | No | The GTIN (barcode) of the product when on a product detail page. Only applicable when navigationCurrentPageType is 'product-detail-page'. | |
| navigationCurrentPageTitle | Yes | The title of the current page the user is on (e.g. 'Résultat(s) pour "tomate" - Carrefour.fr' for a search results page, or the product name for a product detail page). |