The profile: memory across conversations
Every detail the person gives is saved with a function. If they write again a month later, the agent knows what they asked about and what they bought without rereading the whole history.
{
"name": "registrar_lead",
"description": "Saves or updates the customer's profile in the CRM",
"parameters": {
"type": "object",
"properties": {
"nombre": { "type": "string" },
"fecha_entrada": { "type": "string", "format": "date" },
"noches": { "type": "integer", "minimum": 1 },
"personas": { "type": "integer", "minimum": 1 },
"presupuesto": { "type": "number" },
"interes": { "type": "string", "enum": ["estadia", "cena", "evento", "otro"] },
"etapa": { "type": "string", "enum": ["nuevo", "calificado", "cotizado", "pagado"] }
},
"required": ["etapa"]
}
}Recommendation. Save the data with a function, not in the free text of the conversation: that way it can be filtered, counted and used for follow-up.