Skip to main content
Answered

Is it possible to launch a Custom Bot via the API?


  • New Participant
  • 2 replies

Can I initiate the conversation to go to a particular custombot through any API mechanism?

 

For instance, user does some action on my mobile app/website and sees an error. I know what the error is and want the user to directly go to the custom bot which addresses this particular error. I don't want to use the "Button Click" mechanism which is currently there on intercom.

Best answer by Milan

Hello @arjun​!

 

The solution would be to set the event when this message pops up (you can actually set one event for all error messages and have error ID as metadata of the event). Then you use this event (and metadata) to trigger a specific custom bot as event-based rule. There might be some delay depending how fast the event is synced to Intercom but should be really quick, not noticeable by the user. Also have on mind limitations of the event-based messaging - one event-based message (bot) can be triggered once in a day at most.

 

Hope that helps!

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

3 replies

Milan
Expert User ✨
Forum|alt.badge.img+5
  • Top Expert
  • 306 replies
  • Answer
  • January 5, 2022

Hello @arjun​!

 

The solution would be to set the event when this message pops up (you can actually set one event for all error messages and have error ID as metadata of the event). Then you use this event (and metadata) to trigger a specific custom bot as event-based rule. There might be some delay depending how fast the event is synced to Intercom but should be really quick, not noticeable by the user. Also have on mind limitations of the event-based messaging - one event-based message (bot) can be triggered once in a day at most.

 

Hope that helps!


  • Author
  • New Participant
  • 2 replies
  • January 5, 2022

Hi Milan,

 

The metadata information that I am getting has only three attributes - "First Occurred", "Last Occurred" and "count". The other attributes don't seem to be available.

Capture


Milan
Expert User ✨
Forum|alt.badge.img+5
  • Top Expert
  • 306 replies
  • January 6, 2022

@arjun​ That's not metadata. Those are timestamps and counter that Intercom tracks on its own.

 

You need to choose Event in Event-based part of the rules ("When to send") in Triggers section. What you are showing is Audience part of the Rules. That's where you can select Event too, but not work with metadata.

 

image


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