vocode-python/simple_outbound_call.py
2023-03-05 13:55:20 -08:00

15 lines
488 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="+11234567890",
),
caller=CallEntity(
phone_number="+11234567890",
),
agent_config=EchoAgentConfig(initial_message="Hello!")
)
call.start()