Messenger/IG (#100) [buttons][0][url] should represent a valid URL
A button in the message has a missing or invalid link. Fix it by writing the full link starting with https:// and removing spaces and Cyrillic letters.
How it appears in your error log: Messenger/IG (#100) name_placeholder[buttons][0][url] should represent a valid URL - code: 100
This error appears when the link (URL) of one of the message's buttons is wrong or empty. The number in the error text, [0] or [1], tells you which button has the problem.
Why it happens
- No https://: for example, the link was written as www.shop.mn or shop.mn.
- Empty URL: an Open Website (Вэбсайт нээх) button was created but its link was never entered.
- Empty custom field: a field such as {{payment_link}} or {{order_url}} has no value for this user, or an API (such as QPay) didn't return a link.
- Spaces, Cyrillic letters or special characters: for example https://shop.mn/бараа 1. A pasted link can also pick up a space or line break at the start or end.
- A phone number or email in a URL button: for example 99112233, tel:99112233 or [email protected].
- Typos: https//, htps://, https:/ / and so on.
How to fix it
Find the step with the error
In the Error log (Алдааны мэдээлэл), find which flow and which Send Message block the error came from.
Find the faulty button
Use the number [0], [1] to find which button is wrong: [0] is the first button, [1] the second. For a gallery or card, check the buttons of each card separately.
Fix the link
Write the full link, starting with https://. For example: https://www.smartbot.mn.
Clean up the link
Remove spaces and line breaks. Encode links that contain Cyrillic letters or spaces (for example, a space becomes %20), or use a short link with Latin letters.
Check it in a browser
Copy the link, open it in a browser and make sure the page works.
Protect links that come from custom fields
- In Audience, check the field's value in the user's profile.
- Add a Condition step before the message that checks “{{field}} is not empty”. If it is empty, send a backup message without the button.
- If the link comes from an API, run Test on the response mapping to check it.
Use the right button type for phone and Messenger links
For a phone number, use a Call (Залгах) button instead of a URL button. Meta has a separate Call button of the phone_number type.
To send people to Messenger, write the link as https://m.me/your_page_name.
Test again
Test the flow with your own profile and click every button.
Links that come from variables, such as a payment link, can be empty, so always set up a backup message. If you need help, Smartbot's support team can set it up with you.
You do this in the Chatbot panel.new-cp.smartbot.mn
Open Chatbot panel