NaLU AI icon

NaLU AI

Semantic data validation and extraction for chatbots using NaLU AI.

Validate License Plate BR (Validate_plate_br)

AI-generated

Summary

Extracts a Brazilian license plate (Mercosul or old format, including plates written out in words) from a user's chat reply by sending the agent prompt and user reply to the NaLU AI API.

Inputs

  • agent_input (required) — The question or statement the chatbot sent to the user (e.g. asking for the vehicle plate). Gives the API context for interpreting the reply.
  • user_input (required) — The user's reply, from which the plate is extracted (e.g. 'minha placa é ABC1D23').
  • 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 NaLU AI API response as returned (passed through unchanged).

The exact response fields are not defined in the node source. Requires NaLU AI API credentials (naluAiApi). Each input item is processed separately via POST to https://naluai.dev/v1/extract/plate_br. With Continue On Fail enabled, failed items return {error: message}; otherwise the node throws an error.

Examples

Example 1: Chatbot asks for the vehicle plate and validates the user's answer before looking up a quote.

agent_input='Qual a placa do veículo?', user_input={{ $json.message }}, language=pt-BR

Example 2: User spells the plate out in words, such as 'A B C um D dois três'.

agent_input='Informe a placa', user_input='A B C um D dois três', language=pt-BR

Links

Discussion