Léo Delivery Attendance icon

Léo Delivery Attendance

Ferramentas de atendimento WhatsApp para o Léo Delivery.

Register Inbound Message

AI-generated

Summary

Posts an inbound WhatsApp message to the Léo Delivery merchant API, including its instance, sender, and message details. Use it to register a received message with the attendance service; the API response is returned in a success envelope.

Inputs

  • Message — Message text or context; defaults to the incoming message or text. Sent as the message body.
  • Instance Name — WhatsApp instance name; defaults to instanceName, whatsappInstance, or instance from the input item.
  • WhatsApp ID — WhatsApp sender ID; defaults to waId. If absent, the request uses customerPhone from the input item.
  • Message ID — Message identifier; defaults to messageId. If absent, the request falls back to externalMessageId, orderCode, or conversationId from the input item.
  • Customer Name — Customer name; sent as pushName when provided.
  • Message Type — The visible field is not used directly. The request takes messageType from the raw input item’s rawPayload.messageType.
  • From Me — The visible field is not used directly. The request takes this flag from rawPayload.fromMe, defaulting to false.
  • Raw Payload — Raw JSON payload, defaulting to the input item. Its messageType and fromMe values are used in the request.

Output shape

A success response object per input item, containing success, operation, data, and message.

Sends a POST request to the merchant API’s /v1/internal/whatsapp/messages/inbound endpoint using the required Léo Delivery system credentials. The request body includes the instance, WhatsApp ID and phone, message ID, message text, optional message type and customer name, and fromMe. The node routes these results to its first output; its second output is only used for failed merchant lookup operations.

Links

Discussion