Answered

How to open workflow whit api service

  • 24 October 2023
  • 3 replies
  • 334 views

Hi, I would like to know if there is within your api services which allows to open a workflow after a click event. We need to be able to open a workflow after a click without the need to make the connection with Customer clicks to website element and open a new conversation. This is thinking of a mobile application.

Thanks!

 

https://www.intercom.com/help/en/articles/2785347-customer-clicks-a-website-element

icon

Best answer by Jacob Cox 31 October 2023, 20:40

View original

3 replies

Userlevel 4
Badge +5

Hi @Andrés C. !

If you want to trigger a workflow via an Event such as a customer click you can do so by creating a Workflow with a ‘Customer visits a page’ trigger and setting it up to send with a ‘When to Send’ trigger of your chosen Event. For example, in the Workflow below I have it set up to only send on iOS and Android channels when my custom ‘Event click’ event gets triggered.

You’ll need to set your mobile app up to make that Event call when the User clicks on the specific button. You can read up on how to make Event calls on iOS, here, and Android, here.

Hi Jacob Cox, there is currently an issue with event triggered “customer visits a page” workflows where workflows are not automatically popping up for users once they complete the action the event is triggered off of, which is the expected behavior. Users have to hard refresh their page in order for the workflow to show. Is there any update from engineering on when this can be fixed / whether it’s a quick fix? 

Userlevel 4
Badge +5

Hi @Ghadah El-Shimy !

My apologies, your message seemed to slip past us!

I know you are working with our Support team regarding an issue with API-triggered Events not popping up the “Customer Visits a page” workflow automatically. For anyone else who might be running into this issue, the workaround for now would be to use our JavaScript ‘trackEvent’ method for triggering Events instead of the REST API, if possible. This should automatically pop open the Workflow.

Reply