NaLU AI icon

NaLU AI

Semantic data validation and extraction for chatbots using NaLU AI.

Validate Postal Code (Validate_postal_code)

AI-generated

Summary

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

Links

Discussion