Skip to content

Python SDK Tutorial

This tutorial provides a step-by-step guide to building communication features with Azure Communication Services (ACS).

What You'll Build

By the end of this tutorial, you'll have a Python application capable of: - Managing user identities and access tokens. - Sending SMS and email notifications. - Creating real-time chat threads. - Implementing voice calling automation. - Monitoring ACS operations.

Prerequisites

Tutorial Learning Path

The following path guides you through setting up and using ACS features.

graph TD
    Step1[1. Local Setup] --> Step2[2. Send SMS]
    Step2 --> Step3[3. Send Email]
    Step3 --> Step4[4. Real-time Chat]
    Step4 --> Step5[5. Voice Calling]
    Step5 --> Step6[6. Monitoring]
    Step6 --> Step7[7. Infrastructure as Code]

Tutorial Steps

Step Topic Description
01 Local Setup Install SDKs, configure environment variables, and verify with identity token creation.
02 Send SMS Use the SmsClient to send messages and handle delivery reports.
03 Send Email Configure an EmailClient to send simple and HTML-formatted emails.
04 Real-time Chat Build a chat system with threads, participants, and real-time messaging.
05 Voice Calling Automate outbound calls and handle basic call events.
06 Monitoring Configure logging and use KQL queries to monitor your ACS resource.
07 Infrastructure as Code Deploy ACS resources using Bicep templates and Python scripts.

Sources