Skip to content

Mercado Libre - Answer Question

This module allows answering questions that buyers ask about your products. Answering quickly improves your ranking and reputation.

This module requires Mercado Libre (OAuth) credentials with the following fields:

FieldDescription
access_tokenOAuth access token with write permissions
FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
question_idstringYesQuestion ID to answer
textstringYesAnswer text
{
"success": true,
"answer": {
"question_id": 123456789,
"text": "Hola! Si, tenemos stock disponible. Cualquier consulta estamos a las ordenes.",
"date_created": "2024-01-15T10:35:00.000-03:00",
"status": "ACTIVE"
},
"question_id": 123456789,
"answer_text": "Hola! Si, tenemos stock disponible...",
"message": "Question 123456789 answered successfully"
}
{
"credentials_id": "meli_cuenta",
"question_id": "123456789",
"text": "Hola! Si, tenemos stock disponible. Gracias por tu consulta!"
}
{
"credentials_id": "meli_cuenta",
"question_id": "987654321",
"text": "El envio es gratis a todo el pais. Demora 3-5 dias habiles. Saludos!"
}
{
"credentials_id": "meli_cuenta",
"question_id": "456789123",
"text": "Las medidas son: Alto 15cm, Ancho 30cm, Profundidad 20cm. Peso: 2.5kg. Te sirve?"
}
{
"credentials_id": "meli_cuenta",
"question_id": "789123456",
"text": "Si, es compatible! Compralo sin problemas y ante cualquier duda estamos para ayudarte."
}
[Question webhook] -> [MeliGetQuestions] -> [ChatGPT response] -> [MeliAnswerQuestion]
[Question received] -> [Classify topic] -> [Get base response] -> [MeliAnswerQuestion]
[MeliGetQuestions unanswered] -> [Show in panel] -> [User writes] -> [MeliAnswerQuestion]
// Generate response based on question
const pregunta = ctx.data.question;
const item = ctx.data.item;
// Predefined responses by keyword
const respuestas = {
stock: `Hola! Si, tenemos ${item.available_quantity} unidades en stock. Compralo sin problemas!`,
envio: `El envio es ${item.shipping?.free_shipping ? 'GRATIS' : 'con costo'} a todo el pais. Llega en 3-5 dias habiles.`,
precio: `El precio publicado es el final. No hacemos descuentos fuera de las ofertas de Mercado Libre.`,
garantia: `${item.warranty || 'Tiene garantia de 6 meses por defectos de fabricacion.'}`,
default: `Hola! Gracias por tu consulta. Podrias darnos mas detalles sobre tu duda?`
};
const texto = pregunta.text.toLowerCase();
let respuesta = respuestas.default;
if (texto.includes('stock') || texto.includes('disponible')) {
respuesta = respuestas.stock;
} else if (texto.includes('envio') || texto.includes('demora')) {
respuesta = respuestas.envio;
} else if (texto.includes('precio') || texto.includes('descuento')) {
respuesta = respuestas.precio;
} else if (texto.includes('garantia')) {
respuesta = respuestas.garantia;
}
ctx.data = {
question_id: pregunta.id,
text: respuesta
};
  • Answer quickly (less than 1 hour is ideal)
  • Be friendly and professional
  • Include useful information
  • Invite to buy at the end
  • Use “Regards” or “Thanks for your inquiry”
  • Include contact information (phone, email, WhatsApp)
  • Mention other platforms
  • Use offensive language
  • Provide false information
  • Ignore the question
ErrorCauseSolution
”Question not found”Incorrect IDVerify question_id
”Question already answered”Already answeredCannot answer twice
”Invalid answer text”Invalid textVerify it is not empty
”Answer contains forbidden content”Forbidden contentRemove contact information
  • You cannot edit an answer after sending it
  • Including contact information may result in penalties
  • Response time affects your ranking
  • Answers are public and visible to everyone
  • Mercado Libre may remove answers that violate policies