Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

perf: Lower latency during conversations

Clémence Lesné002835f8bcb2
diff --git a/bicep/app.bicep b/bicep/app.bicep
index f928284..cfc8614 100644
--- a/bicep/app.bicep
+++ b/bicep/app.bicep
@@ -210,16 +210,16 @@ resource functionApp 'Microsoft.Web/sites@2023-12-01' = {
maximumInstanceCount: 100 // TODO: Avoid billing surprises, delete when sure
alwaysReady: [
{
- instanceCount: 1
- name: 'function:communicationservices_event_post'
+ instanceCount: 2
+ name: 'function:communicationservices_event_post' // Handle conversation events
}
{
instanceCount: 1
- name: 'function:call_event'
+ name: 'function:call_event' // "new call" event from Communication Services
}
{
instanceCount: 1
- name: 'function:trainings_event'
+ name: 'function:trainings_event' // Preload trainings from AI Search
}
]
}
diff --git a/host.json b/host.json
index c835365..1d71d40 100644
--- a/host.json
+++ b/host.json
@@ -14,8 +14,8 @@
},
"extensions": {
"http": {
- "maxConcurrentRequests": 16,
- "maxOutstandingRequests": 4,
+ "maxConcurrentRequests": 8,
+ "maxOutstandingRequests": 2,
"routePrefix": ""
},
"queues": {