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

breaking: Rename the project to Call Center AI

Clémence Lesnéfeaaa66d9a75
diff --git a/.python-version b/.python-version
index ad14e4b..9a941ac 100644
--- a/.python-version
+++ b/.python-version
@@ -1 +1 @@
-claimaiphonebot312
+callcenterai312
diff --git a/Makefile b/Makefile
index 9ec3b74..5484dd3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
# Container configuration
-container_name := ghcr.io/clemlesne/claim-ai-phone-bot
+container_name := ghcr.io/clemlesne/call-center-ai
docker := docker
# Versioning
version_full ?= $(shell $(MAKE) --silent version-full)
version_small ?= $(shell $(MAKE) --silent version)
# DevTunnel configuration
-tunnel_name := claim-ai-$(shell hostname | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
+tunnel_name := call-center-ai-$(shell hostname | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
tunnel_url ?= $(shell res=$$(devtunnel show $(tunnel_name) | grep -o 'http[s]*://[^"]*' | xargs) && echo $${res%/})
# App location
app_location := westeurope
@@ -116,14 +116,14 @@ start:
--env VERSION=$(version_full) \
--mount type=bind,source="$(CURDIR)/.env",target="/app/.env" \
--mount type=bind,source="$(CURDIR)/config.yaml",target="/app/config.yaml" \
- --name claim-ai \
+ --name call-center-ai \
--publish 8080:8080 \
--rm \
$(container_name):$(version_small)
stop:
@echo "Stopping container..."
- $(docker) stop claim-ai
+ $(docker) stop call-center-ai
deploy:
@echo "🛠️ Deploying to Azure..."
diff --git a/README.md b/README.md
index 7ed2e7e..1a375ec 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
-# Call center claim AI phone bot
+# Call Center AI
AI-powered call center solution with Azure and OpenAI GPT.
<!-- github.com badges -->
-[![Last release date](https://img.shields.io/github/release-date/clemlesne/claim-ai-phone-bot)](https://github.com/clemlesne/claim-ai-phone-bot/releases)
-[![Project license](https://img.shields.io/github/license/clemlesne/claim-ai-phone-bot)](https://github.com/clemlesne/claim-ai-phone-bot/blob/main/LICENSE)
+[![Last release date](https://img.shields.io/github/release-date/clemlesne/call-center-ai)](https://github.com/clemlesne/call-center-ai/releases)
+[![Project license](https://img.shields.io/github/license/clemlesne/call-center-ai)](https://github.com/clemlesne/call-center-ai/blob/main/LICENSE)
## Overview
@@ -207,8 +207,8 @@ sequenceDiagram
Container is available on GitHub Actions, at:
-- Latest version from a branch: `ghcr.io/clemlesne/claim-ai-phone-bot:main`
-- Specific tag: `ghcr.io/clemlesne/claim-ai-phone-bot:0.1.0` (recommended)
+- Latest version from a branch: `ghcr.io/clemlesne/call-center-ai:main`
+- Specific tag: `ghcr.io/clemlesne/call-center-ai:0.1.0` (recommended)
Create a local `config.yaml` file (most of the fields are filled automatically by the deployment script):
diff --git a/bicep/app.bicep b/bicep/app.bicep
index 03921d7..0f6c940 100644
--- a/bicep/app.bicep
+++ b/bicep/app.bicep
@@ -17,7 +17,7 @@ param searchLocation string
param tags object
var prefix = deployment().name
-var appUrl = 'https://claim-ai.${acaEnv.properties.defaultDomain}'
+var appUrl = 'https://call-center-ai.${acaEnv.properties.defaultDomain}'
var gptBackupModelFullName = toLower('${gptBackupModel}-${gptBackupVersion}')
var gptModelFullName = toLower('${gptModel}-${gptVersion}')
var adaModelFullName = toLower('${adaModel}-${adaVersion}')
@@ -160,7 +160,7 @@ resource acaEnv 'Microsoft.App/managedEnvironments@2023-05-01' = {
}
resource containerApp 'Microsoft.App/containerApps@2023-05-01' = {
- name: 'claim-ai'
+ name: 'call-center-ai'
location: location
tags: tags
identity: {
@@ -178,8 +178,8 @@ resource containerApp 'Microsoft.App/containerApps@2023-05-01' = {
template: {
containers: [
{
- image: 'ghcr.io/clemlesne/claim-ai-phone-bot:${imageVersion}'
- name: 'claim-ai'
+ image: 'ghcr.io/clemlesne/call-center-ai:${imageVersion}'
+ name: 'call-center-ai'
env: [
{
name: 'CONFIG_JSON'
@@ -491,10 +491,10 @@ resource cosmos 'Microsoft.DocumentDB/databaseAccounts@2023-11-15' = {
resource database 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases@2023-11-15' = {
parent: cosmos
- name: 'claim-ai'
+ name: 'call-center-ai'
properties: {
resource: {
- id: 'claim-ai'
+ id: 'call-center-ai'
}
}
}
diff --git a/bicep/main.bicep b/bicep/main.bicep
index 124f63e..918163d 100644
--- a/bicep/main.bicep
+++ b/bicep/main.bicep
@@ -23,10 +23,10 @@ output communicationId string = app.outputs.communicationId
output logAnalyticsWorkspaceCustomerId string = app.outputs.logAnalyticsWorkspaceCustomerId
var tags = {
- application: 'claim-ai'
+ application: 'call-center-ai'
instance: instance
managed_by: 'Bicep'
- sources: 'https://github.com/clemlesne/claim-ai-phone-bot'
+ sources: 'https://github.com/clemlesne/call-center-ai'
version: imageVersion
}
diff --git a/examples/import-training.ipynb b/examples/import-training.ipynb
index fd71273..6f04d0f 100644
--- a/examples/import-training.ipynb
+++ b/examples/import-training.ipynb
@@ -61,14 +61,14 @@
"import os.path\n",
"import re\n",
"\n",
- "doc_endpoint = \"https://claim-ai.cognitiveservices.azure.com\"\n",
+ "doc_endpoint = \"https://call-center-ai.cognitiveservices.azure.com\"\n",
"doc_credential = AzureKeyCredential(\"xxx\")\n",
"doc_client = DocumentIntelligenceClient(\n",
" endpoint=doc_endpoint,\n",
" credential=doc_credential,\n",
")\n",
"\n",
- "search_endpoint = \"https://claim-ai.search.windows.net\"\n",
+ "search_endpoint = \"https://call-center-ai.search.windows.net\"\n",
"search_credential = AzureKeyCredential(\"xxx\")\n",
"search_client = SearchClient(\n",
" endpoint=search_endpoint,\n",
diff --git a/helpers/logging.py b/helpers/logging.py
index 872f4cc..25044e4 100644
--- a/helpers/logging.py
+++ b/helpers/logging.py
@@ -21,7 +21,7 @@ AioHttpClientInstrumentor().instrument() # Instrument aiohttp
HTTPXClientInstrumentor().instrument() # Instrument httpx
TRACER = trace.get_tracer(
instrumenting_library_version=CONFIG.version,
- instrumenting_module_name="com.github.clemlesne.claim-ai",
+ instrumenting_module_name="com.github.clemlesne.call-center-ai",
) # Create a tracer that will be used in the app
diff --git a/main.py b/main.py
index 62b81e0..caf233f 100644
--- a/main.py
+++ b/main.py
@@ -4,7 +4,7 @@ from helpers.config import CONFIG
_logger = build_logger(__name__)
-_logger.info(f"claim-ai v{CONFIG.version}")
+_logger.info(f"call-center-ai v{CONFIG.version}")
# General imports
@@ -79,15 +79,15 @@ _sms = CONFIG.sms.instance()
_logger.info(f'Using root path "{CONFIG.api.root_path}"')
api = FastAPI(
contact={
- "url": "https://github.com/clemlesne/claim-ai-phone-bot",
+ "url": "https://github.com/clemlesne/call-center-ai",
},
description="AI-powered call center solution with Azure and OpenAI GPT.",
license_info={
"name": "Apache-2.0",
- "url": "https://github.com/clemlesne/claim-ai-phone-bot/blob/master/LICENCE",
+ "url": "https://github.com/clemlesne/call-center-ai/blob/master/LICENCE",
},
root_path=CONFIG.api.root_path,
- title="claim-ai-phone-bot",
+ title="call-center-ai",
version=CONFIG.version,
)