Skip to main content
Answered

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

  • March 12, 2021
  • 1 reply
  • 18 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?

Best answer by Eric Fitz

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).

View original
Did this topic help you find an answer to your question?

1 reply

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • 1630 replies
  • Answer
  • March 16, 2021

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings