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 Email (Validate_email)
AI-generatedSummary
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.