vocode-python/simple_outbound_call.py
2023-03-04 13:59:33 -08:00

15 lines
No EOL
487 B
Python

from vocode.telephony.outbound_call import OutboundCall
from vocode.models.telephony import CallEntity
from vocode.models.agent import EchoAgentConfig, WebSocketUserImplementedAgentConfig
if __name__ == '__main__':
call = OutboundCall(
recipient=CallEntity(
phone_number="+14088926228",
),
caller=CallEntity(
phone_number="+14086600744",
),
agent_config=EchoAgentConfig(initial_message="Hello!")
)
call.start()