<@U084APK40NS> I am thinking of a scenario where o...
# ask-ai
c
@millions-hair-24956 I am thinking of a scenario where on certain moments I want to trigger outbound calls where the voice agent performs outbound calls and does specific tasks based on specific context. Is this possible with Livekit?
g
Yes, LiveKit supports outbound calls using SIP trunks, allowing a voice agent to perform tasks based on specific contexts. You can create a SIP participant to make outbound calls using the CreateSIPParticipant API. This API allows you to specify the phone number to dial, the room name, and other participant details. The agent can then interact with the callee in a LiveKit room, performing tasks as needed. Would you like more details on setting up the SIP trunk or creating the agent? Sources: - Make outbound calls - Outbound Calls via SIP 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
c
@millions-hair-24956 I want to automatically trigger these calls every Wednesday of the week automatically at 14:00 in the afternoon, and also have the voice agent do a specific task, for example follow on a specific data. Is that possible and how would that look like?
g
It seems likely that you can schedule automatic outbound calls with LiveKit by integrating a scheduling system with the LiveKit API. You can use a cron job or a task scheduler to trigger the
CreateSIPParticipant
API call every Wednesday at 14:00. This API call will initiate the outbound call to the specified phone number. For the voice agent to perform specific tasks, you can use the VoicePipelineAgent to define the tasks based on the context. The agent can be programmed to follow up on specific data by using function calling capabilities to interact with external systems or databases. Would you like more detailed guidance on setting up the scheduling or configuring the voice agent? Sources: - VoicePipelineAgent 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.