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.

Pedido → Cotar

AI-generated

Summary

Generate and persist a canonical quotation (cotação canônica) for an order with official pricing, quantity, and configuration details using structured input data.

Inputs

  • Cotação (Corpo JSON) (required) — A JSON object representing the canonical quote body, which includes client phone, an array of items (each with produto_id, consulta_original, quantidade_original, quantidade_informada), delivery type, delivery address, scheduled time, payment method, delivery fee, discount, charges array (where paid_addon charges must only contain regra_chave and operational_config_revision_id), and optional observations.
  • Message ID da Cotação (required) — A real message ID from the workflow turn, combined with a hash of the quotation payload to create an idempotency key ensuring that repeated requests with the same data do not produce duplicate quotes.
  • Token ID Dinamico — Optional dynamic token returned by multi-tenant bootstrap, which must be used together with the dynamic signing secret if provided.
  • Signing Secret Dinamico — Optional ephemeral signing secret from bootstrap, must be used together with the dynamic token ID and must never be logged or stored.

Output shape

a single JSON response object

Returns the quotation data as persisted by the Núcleo Wondai server. The operation uses a deterministic idempotency key generated from the token ID, message ID, and canonical payload to prevent duplicate quotations. Errors throw exceptions or are passed on depending on node configuration.

Links

Discussion