ScriptsApr 9, 2026·3 min read

Call Center AI — Microsoft AI Phone Agent

Make AI phone calls via API or receive calls on a configured number. Uses Azure + GPT-4.1 for insurance claims, IT support, customer service. Apache-2.0, 6,400+ stars.

TL;DR
Microsoft's open-source framework for building AI phone agents using Azure Communication Services and GPT-4.1.
§01

What it is

Call Center AI is a Microsoft open-source project that enables AI-powered phone calls. You can make outbound calls via API or receive inbound calls on a configured phone number. The system uses Azure Communication Services for telephony, Azure Cognitive Services for speech, and GPT-4.1 for conversation handling.

It is designed for teams building automated phone support for insurance claims, IT helpdesk, appointment scheduling, and customer service. The project is Apache-2.0 licensed.

§02

How it saves time or tokens

Traditional IVR systems require rigid decision trees that frustrate callers. Call Center AI replaces those with a natural language agent that can understand context, ask follow-up questions, and resolve issues conversationally. The LLM handles intent recognition and response generation in a single pass.

Deployment uses Azure services, so there is no need to build telephony infrastructure from scratch. The project provides Docker Compose configuration for quick local testing.

§03

How to use

  1. Clone and configure:
git clone https://github.com/microsoft/call-center-ai.git
cd call-center-ai
cp .env.example .env
# Fill in Azure Communication Services credentials
# Fill in Azure Cognitive Services key
# Fill in OpenAI/Azure OpenAI API key
  1. Deploy with Docker Compose:
docker compose up -d
  1. Configure a phone number in Azure Communication Services and point the webhook to your deployment.
§04

Example

# Example: Making an outbound AI call via the API
import requests

response = requests.post(
    'http://localhost:8080/call',
    json={
        'phone_number': '+1234567890',
        'scenario': 'insurance_claim',
        'context': {
            'claim_id': 'CLM-2026-001',
            'caller_name': 'Jane Smith'
        }
    }
)

print(response.json())
# {'call_id': 'abc-123', 'status': 'initiated'}

The AI agent follows the scenario script, asks clarifying questions, and logs the conversation transcript.

§05

Related on TokRepo

§06

Common pitfalls

  • Azure Communication Services requires a paid Azure subscription and a purchased phone number. There is no free tier for telephony.
  • Speech recognition quality depends on the Azure Cognitive Services tier. The free tier has lower accuracy than the standard tier.
  • GPT-4.1 usage costs can add up quickly for long phone calls. Set conversation length limits and monitor token usage via Azure OpenAI metrics.

Frequently Asked Questions

What Azure services are required?+

You need Azure Communication Services (for phone calls), Azure Cognitive Services (for speech-to-text and text-to-speech), and either Azure OpenAI or OpenAI API access (for the conversation LLM). All three are required for the system to work.

Can I use a non-Azure LLM?+

The project is built around the OpenAI API format. You can use OpenAI directly or any API-compatible provider. Azure OpenAI is the recommended option because it integrates natively with the rest of the Azure stack.

How does the AI handle unexpected questions?+

The LLM receives a system prompt with the call scenario and context. It can handle off-script questions within the scenario domain. For completely unrelated questions, it redirects the caller back to the topic or offers to transfer to a human agent.

Is this production-ready?+

The project provides a functional reference architecture. For production deployments, you would need to add monitoring, scale the telephony infrastructure, implement proper error handling for dropped calls, and comply with telephony regulations in your region.

What languages does the phone agent support?+

Language support depends on Azure Cognitive Services speech models. The system supports dozens of languages for speech recognition and synthesis. The LLM conversation works in any language that GPT-4.1 supports.

Citations (3)
🙏

Source & Thanks

Created by Microsoft. Licensed under Apache-2.0.

call-center-ai — ⭐ 6,400+

Thanks to Microsoft for open-sourcing a production-ready AI phone agent system.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets