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 → Confirmar Cotação

AI-generated

Summary

Confirm the active quotation (cotação) for a client by verifying its ID, version, and client phone number, optionally including the client name, to create exactly one corresponding order transactionally. Throws an error if there is a mismatch, returning a new summary.

Inputs

  • Cotação ID (required) — The quotation ID returned by a previous Cotar operation; provided via workflow expression.
  • Cotação Versão (required) — The quotation version number returned by Cotar.
  • Telefone do Cliente (required) — Normalized client phone number used to identify the client associated with the quotation.
  • Nome do Cliente — Optional client name; used to provide name information at confirmation time.
  • Token ID Dinamico — Optional dynamic token for multi-tenant systems, used with dynamic Signing Secret.
  • Signing Secret Dinamico — Optional ephemeral signing secret, used along with the dynamic Token ID; should not be logged.

Output shape

a JSON object indicating the result of the confirmation, including success or detailed error (e.g., 409 on divergence) with a new summary if applicable.

The operation sends a signed POST request to /api/v1/agent/pedido/cotacao/{cotacaoId}/confirmar with body containing cotacao_version, cliente_telefone, and optionally cliente_nome. It uses a deterministic idempotency key 'quote-confirm:{cotacaoId}:{cotacaoVersion}' to avoid duplicate processing.

Examples

Example 1: Confirm a quotation for client 5511999999999 with quotation ID 'abc123' version 2, including client name 'Maria'.

Set 'Cotação ID' to 'abc123', 'Cotação Versão' to 2, 'Telefone do Cliente' to '5511999999999', and 'Nome do Cliente' to 'Maria' in the node parameters.

Links

Discussion