Answered

How to set up a button bot for mobile browsing only?

  • 12 March 2021
  • 1 reply
  • 9 views

  • Connector
  • 6 replies

Hi! I have a different layout of the website when browsing with desktop or mobile. I would like to use a button bot in mobile browsing. Am I able to do that? The same button doesn´t exist in the desktop version if that makes any difference 🙂

The situation is that the messenger won´t fit in the mobile layout and I should be able to hide the messenger when browsing with mobile and instead I would like to use button bot.

 

Can anyone help?

icon

Best answer by Eric Fitz 16 March 2021, 13:44

View original

1 reply

Userlevel 1

Hey @pia​ 👋 you can definitely set this up, but it'll require a little work on your end.

 

Firstly, you'll need to start passing a custom attribute for all of your users to determine if they're on a mobile browser or not. For example, you could create the attribute is_mobile, passing a value of true for those on mobile and false for those on web.

 

Then, when creating your bot on a button, in the Rules section, you can define that the bot should only work for those with a value of true for your new is_mobile attribute (i.e. those customers on mobile).

Reply