Skip to content

[WEBJS] - ## Bug report: Facebook/Instagram Ads first message sometimes missing again after 2026.4.3 #2074

@CristianPG-FME

Description

@CristianPG-FME

Bug report: Facebook/Instagram Ads first message sometimes missing again after 2026.4.3

Description

We are seeing an intermittent issue with WhatsApp conversations coming from Meta Ads / Facebook Ads.

WAHA creates or forwards the Chatwoot conversation event, but sometimes the first user message from the ad is missing. Chatwoot receives/triggers a conversation_created event with an empty messages array.

This looks related to the previously fixed issue:

The issue seemed fixed for a few days after updating, but it is happening again intermittently.

Environment

  • WAHA version: 2026.4.3
  • Engine: NOWEB
  • Integration: WhatsApp Business / Meta Ads → WAHA → Chatwoot → n8n webhook
  • Chatwoot channel: Channel::Api

Evidence

We have two n8n executions from the same workflow and same Meta Ads source pattern.

Failed case

Execution ID: 175079
Time: 2026-05-13T12:02:45Z

Webhook payload received by n8n from Chatwoot:

{
  "event": "automation_event.conversation_created",
  "channel": "Channel::Api",
  "can_reply": true,
  "messages": [],
  "id": 759,
  "inbox_id": 19,
  "meta": {
    "sender": {
      "name": "Edwuar",
      "phone_number": "+5730133****",
      "custom_attributes": {
        "waha_whatsapp_jid": "57301332****@c.us",
        "waha_whatsapp_lid": "199840684****0@lid",
        "waha_whatsapp_chat_id": "199840684****@lid"
      }
    }
  }
}

The automation was triggered, but there was no message content to process.

Successful case

Execution ID: 175081
Time: 2026-05-13T12:09:03Z

Webhook payload received by n8n:

{
  "event": "automation_event.conversation_created",
  "channel": "Channel::Api",
  "can_reply": true,
  "messages": [
    {
      "id": 89390,
      "content": "📢 **ANUNCIO DE FACEBOOK**\n\n**Título:** Cristian PG\n\n...\n\n💬 **Mensaje del cliente:**\nHola! Quiero más información sobre los Agentes IA...",
      "content_type": "text",
      "message_type": 0,
      "conversation_id": 760,
      "sender": {
        "phone_number": "+5730057****"
      },
      "attachments": [
        {
          "file_type": "image",
          "content_type": "image/jpeg",
          "file_name": "facebook-ad-image.jpg"
        }
      ]
    }
  ]
}

This execution worked correctly because the ad context and customer message were present.

Expected behavior

When a new contact sends a WhatsApp message from a Facebook/Instagram ad, WAHA should consistently forward the first message/ad payload to Chatwoot.

Actual behavior

Sometimes Chatwoot receives/creates the conversation with messages: [], so automations receive an empty conversation event and cannot reply.

Impact

The bot cannot respond to the lead because the first user message is missing. This causes lost Meta Ads leads.

Question

Is this a regression of #1922, or is there an additional condition where NOWEB still creates the Chatwoot conversation before the actual ad message is available?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions