Is it possible to use SessionClient or FlowClient to start a session with an agent at the beginning of a specific flow? Dialogflow ES API allows for sending an event, like a Welcome Event. Is there a similar functionality for CX that would take in a flow ID?
If you have your own Custom Integration, you can send a detectIntent request to your agent to trigger a custom event. This lets your agent trigger a page with the custom event and send a response to the user without any user query or input.
Here’s a simple guide to create a custom event:
Here’s a sample detectIntent request that triggers the Default welcome intent using Node.js.
Here’s a sample detectIntent request that triggers a custom event using REST API:
Sample URL for detect intent API:
Make the following replacements for the URL:
Sample JSON Request Body should look like this:
{
"queryInput": {
"event": {
"event": "custom-event" // custom event to be triggered
},
"languageCode": "en"
},
"queryParams": {
"timeZone": "America/Los_Angeles"
}
}
You can refer below for more information on:
You can use Dialogflow CX’s Client Libraries, Rest API, or RPC API to create your own implementation/integration.