Change onExternalEvents timeout & enable custom responses

@omarcelo @samuelpares or anyone who is following this thread.

We are looking for some opinions in order to make this feature request a reality.

Problem Statement :probing_cane:

As we assessed the topics related to this feature request, we understood following

  1. External Events feature for apps essentially generates a webhook URL that is registered with any 3rd party system. So 3rd party invokes webhook. webhook invokes a handler fn. handler fn executes and timeouts in 20s.
  2. Developers like you want a way to run javascript (logic or REST API calls Methods) and finally communicate with 3rd party again. In this case, collect some ticket data and POST it to 3rd party system.
  3. Currently when 3rd party invokes webhook, it only hears {success: true} from the app. But it would be nice to control the timeout so that the app can make API calls(with data) to 3rd party again.

Open questions :question:

  1. Is our understanding of problem statements correct?
  2. Will providing the developers to control the timeout be sufficient? If yes, would ~ 30s seem a good number?
  3. Since this topic has been open for a while now, how did you folks solve the problem?
  4. Lastly, we want to hear a business use case on how this feature can help. So far we were able to understand from a technical perspective. Could anyone of you give an example?
1 Like