Can I trigger a custombot on click on a button directly from react? | Community
Skip to main content
Answered

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

  • December 24, 2021
  • 3 replies
  • 262 views

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

Best answer by Aparna

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.

3 replies

Forum|alt.badge.img+5
  • Employee
  • Answer
  • December 26, 2021

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.


  • Author
  • New Participant
  • January 3, 2022

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?


Milan
Top Expert ✨
Forum|alt.badge.img+7
  • Top Expert
  • January 5, 2022

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.