NaLU AI icon

NaLU AI

Semantic data validation and extraction for chatbots using NaLU AI.

Validate Name (Validate_name)

AI-generated

Summary

Extracts a person's full name from a chatbot user's free-text reply by calling the NaLU AI API, ignoring greetings and titles. Sends the agent's question and the user's answer to the service and returns its JSON response.

Inputs

  • agent_input (required) — The question or statement the chatbot sent to the user (e.g. "Qual o seu nome?"). Gives the API context for interpreting the reply.
  • user_input (required) — The user's raw reply that contains the name (e.g. "Bom dia! Me chamo João Silva").
  • 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 response body returned by NaLU AI's POST /v1/extract/name endpoint.

The exact response fields are not defined in the node source; they come from the API. Requires the naluAiApi credential. With Continue On Fail enabled, failed items return {error: message}; otherwise the node throws a NodeOperationError. Items are processed one at a time, each making its own HTTP request.

Examples

Example 1: A chatbot asks for the customer's name and the user replies with a greeting plus their name.

agent_input: "Qual o seu nome?"; user_input: "Bom dia! Me chamo João Silva"; language: pt-BR.

Example 2: English-language onboarding flow that maps the incoming message from a previous node.

agent_input: "What's your full name?"; user_input: expression {{ $json.message }}; language: en.

Links

Discussion