Answered

Can I trigger a custombot on click on a button directly from react?

  • 24 December 2021
  • 3 replies
  • 191 views

Can I trigger a custombot on click on a button directly from react?
icon

Best answer by Aparna 26 December 2021, 12:10

View original

3 replies

Hey @user2150​! Just so I am on the same page as you, is it mobile app or website? If it is mobile app then it is not possible to trigger bot from a button.

Both

For example On https://sidehide.com/app for example they have a question mark that open Intercom Bot I want to reproduce that on my mobile App.

But I would also like to do this in my web APP without necessarily use the system provided in the Intercom Admin Dashboard where it asks me the link of my website and then ask to click on the place/button that should trigger the bot.

 

Is it possible to code this directly in React JS?

Userlevel 4
Badge +5

Hi @user2150​ your devs should setup a button on your mobile app that will trigger a javascript command Intercom('showNewMessage'); which results in starting a new conversation in Intercom and then have a custom bot triggered by a new conversation.

Reply