(#100) Must send either message or state

The bot tried to send Facebook an empty message. Check for empty blocks and buttons, custom fields with no value, a wrong JSON response or a broken connection.

4 stepsUpdated 2026.11.04

How it appears in your error log: (#100) Must send either message or state - code: 100

This error appears when the bot tries to send Facebook an empty message. Find where the message has no text, image or real value, and fix it.

Why it happens

  1. An empty custom field: the message includes {{first_name}}, {{phone}} or your own {{custom_field}}, but that field is empty for this person, so an empty message goes to Facebook.
  2. An empty block or button: a Text, Image or Card block in the flow was left with no text or image. Or a button was created without a name, or isn't connected to any action.
  3. Wrong JSON: if you send messages to the bot from your own system with External Request (API), the JSON structure is wrong or breaks Facebook's message format.
  4. A broken connection: sometimes the connection between Smartbot and your Facebook page has dropped, so data isn't passed correctly.

How to fix it

Fix empty blocks and buttons

Open the flow with the error and check the Text, Image and Card blocks one by one. Delete any block left without text or an image.

Also make sure every button has a name and is connected to an action or link.

Check custom field values

If a message block contains only a variable such as {{first_name}}, {{phone}} or {{custom_field}}, check that the field has a value for this person.

To guard against empty fields, add a Condition block before the message with the If Custom Field has any value condition, or set a default (Fallback value) for the variable.

Check the External Request response

If an external system calls the message through External Request, check the JSON it returns. In the log, make sure the message object is written correctly and its text or attachment field carries a real value.

Reconnect the page

If the flow and variables are fine but the error continues, go to Settings (Тохиргоо) → Channels (Сувгууд) → Facebook Messenger and click Reconnect (Холболт сэргээх) to refresh the page's permissions.

You do this in the Chatbot panel.new-cp.smartbot.mn

Open Chatbot panel