Núcleo Wondai icon

Núcleo Wondai

Atendimento de IA no Núcleo Wondai: preparar conversa (GATE liga/desliga + contexto operacional ANTES da LLM), buscar cliente, resolver catálogo (fuzzy), criar/alterar/cancelar pedido, consultar contexto e registrar conversa. Assinatura HMAC; o tenant vem do token.

Catálogo → Resolver Produtos

AI-generated

Summary

Resolve multiple product queries against the Núcleo Wondai catalog, accepting fuzzy input and aliases, and returning detailed product data including mandatory purchase rules and optional budget context.

Inputs

  • Token ID Dinamico — Optional dynamic token returned by the multi-tenant bootstrap; must be used together with the dynamic Signing Secret.
  • Signing Secret Dinamico — Optional ephemeral secret returned by the bootstrap; never log or output this value.
  • Consultas (required) — Products to search for: up to 10 products, specified as one per line or comma-separated. Accepts typos, missing accents, and nicknames. For configurable products, use 'regras_compra' (purchase rules) as the source of truth and collect all mandatory options before creating the order.
  • Continuacao Cursor — Opaque cursor returned from previous results to fetch the next page of the same list (e.g., 'show more', 'more flavors'). If provided, this takes precedence over 'Consultas'.
  • Modo Saida — Output mode; 'Compacto Orcamento' prioritizes suggested budgets and reduces payload for party/kit/budget queries, 'Normal' returns the full product details.
  • Incluir Imagens — Whether to include product image URLs in the response; disable during budgets to reduce payload and enable only if the client requests photos/images.
  • Orcamento Contexto (JSON) — Optional compact budget context describing people, profile, families, and preferences; do not include catalog, price, or product IDs.

Output shape

A JSON object containing the resolved product details for each query, including purchase rules (regras_compra) for configurable products and pagination cursor if applicable.

The response may include a 'continuacao.cursor' field for pagination. When 'Continuacao Cursor' is provided as input, it overrides the 'Consultas' parameter to fetch additional results. The operation tolerates fuzzy matching and supports up to 10 product queries per call.

Links

Discussion