60 lines
1023 B
Plaintext
60 lines
1023 B
Plaintext
Extraé información de pago del mensaje del usuario.
|
|
|
|
ENTIDADES A EXTRAER:
|
|
|
|
1. payment_method
|
|
- "cash": pago en efectivo
|
|
Señales: efectivo, cash, plata, en mano
|
|
- "link": pago electrónico (tarjeta, transferencia, link de pago)
|
|
Señales: tarjeta, link, transferencia, QR, mercadopago, MP
|
|
- null: no se puede determinar
|
|
|
|
EJEMPLOS:
|
|
|
|
Input: "efectivo"
|
|
Output:
|
|
{
|
|
"intent": "select_payment",
|
|
"payment_method": "cash"
|
|
}
|
|
|
|
Input: "con tarjeta"
|
|
Output:
|
|
{
|
|
"intent": "select_payment",
|
|
"payment_method": "link"
|
|
}
|
|
|
|
Input: "link de pago"
|
|
Output:
|
|
{
|
|
"intent": "select_payment",
|
|
"payment_method": "link"
|
|
}
|
|
|
|
Input: "pago cuando llega"
|
|
Output:
|
|
{
|
|
"intent": "select_payment",
|
|
"payment_method": "cash"
|
|
}
|
|
|
|
Input: "transferencia"
|
|
Output:
|
|
{
|
|
"intent": "select_payment",
|
|
"payment_method": "link"
|
|
}
|
|
|
|
Input: "1" (si el contexto indica que 1=efectivo)
|
|
Output:
|
|
{
|
|
"intent": "select_payment",
|
|
"payment_method": "cash"
|
|
}
|
|
|
|
FORMATO JSON:
|
|
{
|
|
"intent": "select_payment",
|
|
"payment_method": "cash" | "link" | null
|
|
} |