Actions13
- Validate Birthdate (Validate_birthdate)
- Validate Cancel Intent (Validate_cancel_intent)
- Validate CEP (Validate_cep)
- Validate CNPJ (Validate_cnpj)
- Validate CPF (Validate_cpf)
- Validate Email (Validate_email)
- Validate Handoff (Validate_handoff)
- Validate License Plate BR (Validate_plate_br)
- Validate Name (Validate_name)
- Validate Phone (Validate_phone)
- Validate Postal Code (Validate_postal_code)
- Validate Reply Context (Validate_reply)
- Validate Yes/No (Validate_yes_no)
Validate Postal Code (Validate_postal_code)
AI-generatedSummary
Sends a chatbot question and the user's reply to the NaLU AI service to extract and validate an international postal code from the free-text reply.
Inputs
- agent_input (required) — The question or statement the chatbot sent to the user (e.g. asking for their postal code). Gives the model context for interpreting the reply.
- user_input (required) — The user's raw reply text that contains the postal code.
- language — Conversation language: English (en), Portuguese (Brazil) (pt-BR, default), or Spanish (es).
Output shape
One output item per input item, whose JSON is the response body from NaLU AI's POST /v1/extract/postal_code endpoint (the extracted and validated postal code result).
The exact response fields are not defined in the node source; they come straight from the API. Requires naluAiApi credentials. With Continue On Fail enabled, failed items return {error: message} instead of stopping the workflow. Each output item is paired with its input item.
Examples
Example 1: A support chatbot asks for the customer's ZIP code and needs to pull it out of a conversational reply.
agent_input = "What is your postal code?", user_input = {{ $json.message }}, language = English
Example 2: Validate a Spanish-language reply in a delivery-address flow before saving it.
agent_input = "¿Cuál es su código postal?", user_input = {{ $json.text }}, language = Spanish