NaLU AI icon

NaLU AI

Semantic data validation and extraction for chatbots using NaLU AI.

Validate CEP (Validate_cep)

AI-generated

Summary

Extracts a Brazilian CEP (postal code) from a user's chatbot reply via the NaLU AI API and returns enriched address data. The agent's question gives context for the extraction.

Inputs

  • agent_input (required) — The question or statement the chatbot sent to the user (e.g. "Qual o seu CEP?"). Gives the validator context.
  • user_input (required) — The user's reply text that should contain the CEP.
  • language — Conversation language: English (en), Portuguese (Brazil) (pt-BR, default), or Spanish (es).

Output shape

One output item per input item. Its json is the raw response from NaLU AI's POST https://naluai.dev/v1/extract/cep, with the extracted CEP and enriched address data.

The exact response fields aren't defined in the node source; they come straight from the API. Requires the naluAiApi credential. With Continue On Fail enabled, a failed item returns json {error: message} instead of stopping the workflow. Each output item is paired to its input item.

Examples

Example 1: Capture a customer's CEP in a WhatsApp chatbot flow and get the address.

Agent Prompt/Question = "Qual o seu CEP?"; User Reply = {{ $json.message }}; Language = pt-BR.

Links

Discussion