Asynch Events

Has anyone had to solve for the lack of Asynch Events in Dialogflow CX? These events existed in ES, but were not migrated to CX.

The Use Case is a request from the virtual agent to the contact (Voice or Chat) that may take the user longer than the webhook timeout, maybe as long as several minutes. The virtual agent should just wait until triggered by the user action that the request is completed.

We’ve tried several ways of accomplishing this, but have not come up with a solution.

Hi @BudP ,

There are some workarounds that you can try; using a webhook (which you have mentioned), using a Pub/Sub topic, or a Dialogflow CX intent. Since you are already aware of the webhook timeouts, we can focus on exploring the later options which are Pub/Sub and intents.

  • Pub/Sub allows sending of messages between different applications. You can use it to send asynchronous events to another application, such as a backend service. When an asynchronous event occurs in Dialogflow CX, it will be published to the Pub/Sub topic, then the external service subscribed to the topic can now receive the asynchronous event
  • By creating and configuring a custom Dialogflow CX intent to activate when an asynchronous event occurs, the intent can trigger and execute actions like sending notifications or updating a database.

Here are some usable resources that you can be helpful.

You can also review this StakOverflow post which I find closely related to what you are trying to achieve.

I hope these links can provide you with solutions.