NaLU AI icon

NaLU AI

Semantic data validation and extraction for chatbots using NaLU AI.

Validate Email (Validate_email)

AI-generated

Summary

Extracts an email address from a user's free-text chatbot reply and corrects common typos (e.g. "gmail" to "gmail.com") by calling the NaLU AI email extraction API.

Inputs

  • agent_input (required) — The question or statement the chatbot sent to the user (e.g. asking for their email). Gives the API context for interpreting the reply.
  • user_input (required) — The user's raw reply from which the email address is extracted.
  • language — Conversation language: English (en), Portuguese (Brazil) (pt-BR), or Spanish (es). Defaults to pt-BR.

Output shape

One JSON item per input item, containing the JSON response from NaLU AI's POST /v1/extract/email endpoint.

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

Examples

Example 1: A chatbot asks for the customer's email and the customer replies with a sentence containing a mistyped domain.

Agent Prompt: 'Qual o seu email?'; User Reply: expression mapping the incoming message text; Language: pt-BR.

Example 2: Validate an English-language lead capture reply before saving to a CRM.

Agent Prompt: 'What's your email?'; User Reply: {{$json.message}}; Language: English.

Links

Discussion