Messenger/IG (#100) Message cannot be empty, must provide valid attachment or text

The chatbot tried to send an empty message or an invalid attachment. Check for empty blocks, empty custom fields, AI and External Request responses, and file URLs.

8 stepsUpdated 2026.11.04

How it appears in your error log: Messenger/IG (#100) Message cannot be empty, must provide valid attachment or text - code: 100

This error appears when the chatbot tries to send an empty message or an invalid attachment to Messenger or Instagram. Every message must have text or a valid attachment.

Why it happens

  1. Empty text block: a Send Message block has no text at all, or only spaces.
  2. Empty custom field: the text is only a single field such as {{ai_response}} or {{Response}}, but that field is empty for this user. This usually happens when an AI (OpenAI/ChatGPT) step returned no answer, the External Request (API) mapping is wrong, or the user didn't enter their information.
  3. Invalid attachment: the URL of an image, video or file block is empty or wrong, or it comes from an empty custom field.
  4. Empty dynamic content: a card or gallery from an API came back empty.

How to fix it

Find where the error happened

In the user's chat and the Error log (Алдааны мэдээлэл), find which flow and which step the error came from.

Check the Send Message blocks

Delete empty text blocks, blocks that contain only spaces, and elements with no content.

Check the custom field values

In Audience, open the user's profile and check that the fields used in the message have a value.

Add a Condition

Before the message is sent, add a Condition step that checks whether the field is empty:

  • If it has a value, send the normal message.
  • If it is empty, send a backup message such as “Sorry, please wait a moment, an operator will contact you”.

Check the AI step

Check that the API key is valid, and check the credit balance, the model name and the timeout. Make sure the answer is saved in the right custom field.

Check the External Request

Run Test on the request and look at the response. Check that the JSON path mapping puts the value into the right field.

Check image, video and file URLs

Every URL button and image URL must start with https://. Also:

  • the link must be public and lead straight to the file (not a Google Drive sharing page);
  • the file format must be supported by Messenger and Instagram.

Test again

Test the flow from the start with your own profile and check that the Error log (Алдааны мэдээлэл) stays clean.

Tips

  • When you use variables such as {{name}} or {{answer}}, add some plain text next to them. That way the message isn't empty even if the variable is.
  • If AI is connected, check your API key and credit balance regularly. When the credit runs out, the AI returns an empty answer and this error appears.
  • After changing a flow, test it once with your own profile before publishing.

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

Open Chatbot panel