NaLU AI icon

NaLU AI

Semantic data validation and extraction for chatbots using NaLU AI.

Validate Birthdate (Validate_birthdate)

AI-generated

Summary

Extracts and validates a birth date from a user's free-text chatbot reply via the NaLU AI API, accepting any date format and detecting minors.

Inputs

  • agent_input (required) — The question or statement the chatbot sent to the user (e.g. "What is your date of birth?"). Gives the API context for interpreting the reply.
  • user_input (required) — The user's reply text that contains the birth date, in any format.
  • language — Conversation language: English (en), Portuguese (Brazil) (pt-BR), or Spanish (es). Defaults to pt-BR.

Output shape

One output item per input item, whose json is the NaLU AI API response from POST https://naluai.dev/v1/extract/birthdate.

The exact response fields are not defined in the node source; they are passed through as returned by the API. The node's description says it extracts and validates the date and detects minors. Requires NaLU AI API credentials (naluAiApi). If Continue On Fail is enabled, a failed item returns {error: message} instead of stopping the workflow. Each output item is paired to its input item.

Examples

Example 1: A chatbot asks for a customer's birth date and needs to check whether they are a minor.

agent_input: "Qual a sua data de nascimento?"; user_input: {{$json.message}}; language: pt-BR

Example 2: Validate an English-language sign-up reply such as "I was born March 5th, 1990".

agent_input: "What is your date of birth?"; user_input: {{$json.reply}}; language: en

Links

Discussion