Create Azure resources for Azure AI, Azure OpenAI and Azure Communication Services in Azure.
Next, you'll need to do these steps manually in the Azure portal-
- Add a Calling enabled telephone number to your Communication resource. Get a phone number.
- Connect Azure AI service to Azure communication service resource.
- Create a deployment for your Azure OpenAI resource. Recommend using
gpt-35-turbo-16k
. Create and deploy an Azure OpenAI Service Resource
Update the settings below in appsettings.son
with values from your Azure deployment
"ACS_CONNECTION_STRING": "",
"ACS_PHONE_NUMBER": "",
"AZURE_COG_SERVICES_KEY": "",
"AZURE_COG_SERVICES_ENDPOINT": "",
"OPENAI_ENDPOINT": "",
"OPENAI_KEY": "",
"OPENAI_DEPLOYMENT_NAME": "",
Azure DevTunnels is an Azure service that enables you to share local web services hosted on the internet. Use the commands below to connect your local development environment to the public internet. This creates a tunnel with a persistent endpoint URL and which allows anonymous access. We will then use this endpoint to notify your application of chat and job router events from the Azure Communication Service.
devtunnel create --allow-anonymous
devtunnel port create -p 7284 --protocol https
devtunnel host
Make a note of the devtunnel URI. You will need it at later steps.
- Ensure your Azure Dev tunnel URI is active and points to the correct port of your localhost application.
- Run
dotnet run
to build and run the sample application.