from twilio.twiml.voice_response import Connect, VoiceResponse, VirtualAgent

response = VoiceResponse()
connect = Connect()
connect.virtual_agent(connector_name='project', language='fr')
response.append(connect)

print(response)
from twilio.twiml.voice_response import Connect, VoiceResponse, VirtualAgent

response = VoiceResponse()
connect = Connect(action='https://myactionurl.com/twiml')
connect.virtual_agent(connector_name='project',
                      status_callback='https://mycallbackurl.com')
response.append(connect)

print(response)
Esempio n. 3
0
from twilio.twiml.voice_response import Connect, VoiceResponse, VirtualAgent

response = VoiceResponse()
connect = Connect()
connect.virtual_agent(connector_name='project', sentiment_analysis=True)
response.append(connect)

print(response)