Deletes a stored Dialogflow Connection.
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.DialogflowConnection.retrieve('connection_id') res.delete()
{- "errors": [
- {
- "code": "string",
- "detail": "string",
- "meta": { },
- "source": {
- "parameter": "string",
- "pointer": "/json/pointer"
}, - "title": "string"
}
]
}
Return details of the Dialogflow connection associated with the given CallControl connection.
Return details of the Dialogflow connection associated with the given CallControl connection.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.DialogflowConnection.retrieve("connection_id")
{- "data": {
- "connection_id": "1234541231",
- "conversation_profile_id": "a-VMHLWzTmKjiJw5S6O0-w",
- "environment": "development",
- "record_type": "dialogflow_connections",
- "service_account": "****"
}
}
Save Dialogflow Credentiails to Telnyx, so it can be used with other Telnyx services.
The params expected to create/update a Dialogflow Connection for given connection_id.
conversation_profile_id | string The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required) |
dialogflow_api | string Default: "es" Determin which Dialogflow will be used. |
environment | string Which Dialogflow environment will be used. |
location | string The region of your agent is. (If you use Dialogflow CX, this param is required) |
service_account required | object The JSON map to connect your Dialoglow account. |
Return details of the Dialogflow connection associated with the given CallControl connection.
required | object (Dialogflow Connection) | ||||||||||
|
{- "conversation_profile_id": "a-VMHLWzTmKjiJw5S6O0-w",
- "dialogflow_api": "cx",
- "environment": "development",
- "location": "global",
- "service_Account": "{\"type\":\"service_account\",\"project_id\":\"your-project-id\",\"private_key_id\":\"your-private-key\",\"private_key\":\"-----BEGIN PRIVATE KEY-----n-----END PRIVATE\",\"client_email\":\"example@example.com\",\"client_id\":\"your-client-id\",\"auth_uri\":\"http://example.com\",\"token_uri\":\"http://example.com\",\"auth_provider_x509_cert_url\":\"http://example.com\",\"client_x509_cert_url\":\"http://example.com\"}"
}
{- "data": {
- "connection_id": "1234541231",
- "conversation_profile_id": "a-VMHLWzTmKjiJw5S6O0-w",
- "environment": "development",
- "record_type": "dialogflow_connections",
- "service_account": "****"
}
}
Updates a stored Dialogflow Connection.
The params expected to create/update a Dialogflow Connection for given connection_id.
conversation_profile_id | string The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required) |
dialogflow_api | string Default: "es" Determin which Dialogflow will be used. |
environment | string Which Dialogflow environment will be used. |
location | string The region of your agent is. (If you use Dialogflow CX, this param is required) |
service_account required | object The JSON map to connect your Dialoglow account. |
Return details of the Dialogflow connection associated with the given CallControl connection.
required | object (Dialogflow Connection) | ||||||||||
|
{- "conversation_profile_id": "a-VMHLWzTmKjiJw5S6O0-w",
- "dialogflow_api": "cx",
- "environment": "development",
- "location": "global",
- "service_Account": "{\"type\":\"service_account\",\"project_id\":\"your-project-id\",\"private_key_id\":\"your-private-key\",\"private_key\":\"-----BEGIN PRIVATE KEY-----n-----END PRIVATE\",\"client_email\":\"example@example.com\",\"client_id\":\"your-client-id\",\"auth_uri\":\"http://example.com\",\"token_uri\":\"http://example.com\",\"auth_provider_x509_cert_url\":\"http://example.com\",\"client_x509_cert_url\":\"http://example.com\"}"
}
{- "data": {
- "connection_id": "1234541231",
- "conversation_profile_id": "a-VMHLWzTmKjiJw5S6O0-w",
- "environment": "development",
- "record_type": "dialogflow_connections",
- "service_account": "****"
}
}