Second Message Batch Fails to Send in Messenger Integration (Error: “Object with ID messages cannot be loaded”)

I recorded a short Loom video to show a problem I’m facing in my n8n workflow. I’ve integrated Messenger directly with n8n, and I’m splitting the AI reply into sentences, then sending them in two batches using a loop and a 5-second wait.

The first batch sends correctly, but the second batch fails every time. I’m getting the following error:
“Object with id messages cannot be loaded due to missing parameters.”

I’ve mapped everything correctly, including the sender ID. The workflow logic looks fine, but Messenger only sends the first message and stops.

Here’s the full Loom video showing the behavior and the error:

If anyone has experienced this issue or knows what might be causing the second message to fail, I’d really appreciate your help.

1 Like

Maybe the issue is related to how the data is being handled after the first iteration of the loop.
For the first response connection is stable. But for the second might be lost.
The “Recipient ID” is still present and correct for the items in the second batch?
Maybe you need to explicitly set it on each message item before the Messenger node using a Set node or a Function node
Also check if u need to create a new field like “messageText”, and map it to the current sentence/split item.

What i mean for the Messenger Send Message Node:

a) Map the Recipient ID field to the new recipientId field you created in the Set node.
b) Map the Text field to the new messageText field you created.

These are what i can think of.

Hi @treloskilo,

Thank you for your response.

I’m sorry to inform you that I am not an expert in n8n. Could you create a demo workflow or Loom video and share it with me so I can understand the setup better?

Thank you,

Samar Abbas