Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Trigger an Event from Code

Hi Team, I think this question is quite interesting.

On DF ES -  We have the possibility to trigger an Event (If the intent has attached this event, this intent will be triggered, we were able to do these things from code)

On DF CX - I am looking for the documentation but can't see anything related to Events, nor in the SDK or API.

Right now im trying to force a WELCOME event for a greeting message but from code. Has anyone faced this?

0 2 506
2 REPLIES 2

On Dialogflow CX you can create custom events and trigger them by adding them in the payload. You can create a handler of that custom event:

xavidop_0-1717073075192.png

 

Here you have the docs about this: https://cloud.google.com/dialogflow/cx/docs/concept/handler#event-custom

You have to add the vent object when you are calling the detectIntent endpoint