In this documentation you find information on how to configure your Dialogflow agent, including step-by-step instructions for setting up the required settings.
Requirements for setup:
- Active Dialogflow account
- Existing Dialogflow agent
Configuration of the Dialogflow agent
Within the configuration of your Dialogflow agent, it is important to define start and endpoint of the conversation.
For transmitting the start information, please include the event “tenios_start” into your “Welcome Intent”:
To define the endpoint/s of your conversation, please open the end intent/s and activate the following setting:
Transmission of Dialogflow events
The VoiceBot block starts with creating a new Dialogflow session, and then immediately sends the tenios start event (e.g. tenios_start) with the following parameters:
Parameter | Type | Description |
callUuid | String | The UUID of the phone call, without the last 8 hex digits. |
loopCount | Number | For the start event, this is always 0. |
Dialogflow Events can carry parameters. In the Dialogflow Fulfillment Webhook request, they look like:
{ "responseId": "ea3d77e8-ae27-41a4-9e1d-174bd461b68c", "session": "projects/your-agents-project-id/agent/sessions/88d13aa8-2999-4f71-b233-39cbf3a824a0", "outputContexts": [{ "name": "projects//your-agents-project-id/agent/sessions/88d13aa8-2999-4f71-b233-39cbf3a824a0/contexts/tenios_loop", "parameters": { "callUuid": "b860c128-7808-453e-925d-b880", "loopCount": 2} }] }
Transmission of Caller Number
In order to use the caller number for dialog or fulfillment, at the beginning the callUuid is transmitted within the event (see above). By integrating the TENIOS Voice API, the caller number can be retrieved via a separate process using the “Call https-Posts” feature. For this purpose a request with the call information is sent to the customer’s URL at the beginning of the call.
For more information visit API Call https-Posts.
Settings in Dialogflow