File tree 3 files changed +56
-4
lines changed
3 files changed +56
-4
lines changed Original file line number Diff line number Diff line change @@ -205,11 +205,37 @@ Container is available on GitHub Actions, at:
205
205
- Latest version from a branch : ` ghcr.io/clemlesne/claim-ai-phone-bot:main`
206
206
- Specific tag : ` ghcr.io/clemlesne/claim-ai-phone-bot:0.1.0` (recommended)
207
207
208
+ Create a local `config.yaml` file (most of the fields are filled automatically by the deployment script) :
209
+
210
+ ` ` ` yaml
211
+ # config.yaml
212
+ api: {}
213
+
214
+ database:
215
+ cosmos_db: {}
216
+
217
+ resources: {}
218
+
219
+ workflow:
220
+ agent_phone_number: "+33612345678"
221
+ bot_company: Contoso
222
+ bot_name: Robert
223
+
224
+ communication_service:
225
+ phone_number: "+33612345678"
226
+ voice_name: fr-FR-DeniseNeural
227
+
228
+ cognitive_service:
229
+ endpoint: https://xxx.cognitiveservices.azure.com
230
+
231
+ openai: {}
232
+ ` ` `
233
+
208
234
Steps to deploy :
209
235
210
- 1. Create an Communication Services resource with a phone number
211
- 2. Create a local `config.yaml` file (be sure to use the phone number previously created)
212
- 3. Connect to (for example `az login`)
236
+ 1. Create an ` Communication Services` resource plus a `Phone Number`
237
+ 2. Create the local `config.yaml`
238
+ 3. Connect to your Azure environment (e.g. `az login`)
213
239
4. Run deployment with `make deploy name=my-instance`
214
240
5. Wait for the deployment to finish
215
241
6. Get the logs with `make logs name=my-instance`
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ var appUrl = 'https://claim-ai.${acaEnv.properties.defaultDomain}'
11
11
var gptModelFullName = toLower ('${gptModel }-${gptVersion }' )
12
12
13
13
output appUrl string = appUrl
14
+ output blobStoragePublicName string = storageAccount .name
14
15
output communicationId string = communication .id
15
16
16
17
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
@@ -93,6 +94,30 @@ resource containerApp 'Microsoft.App/containerApps@2023-05-01' = {
93
94
name : 'DATABASE_COSMOS_DB_DATABASE'
94
95
value : database .name
95
96
}
97
+ {
98
+ name : 'RESOURCES_PUBLIC_URL'
99
+ value : storageAccount .properties .primaryEndpoints .web
100
+ }
101
+ {
102
+ name : 'COMMUNICATION_SERVICE_ENDPOINT'
103
+ value : communication .properties .hostName
104
+ }
105
+ {
106
+ name : 'COMMUNICATION_SERVICE_ACCESS_KEY'
107
+ value : communication .listKeys ().primaryKey
108
+ }
109
+ {
110
+ name : 'OPENAI_ENDPOINT'
111
+ value : cognitiveOpenai .properties .endpoint
112
+ }
113
+ {
114
+ name : 'OPENAI_GPT_DEPLOYMENT'
115
+ value : gpt .name
116
+ }
117
+ {
118
+ name : 'OPENAI_GPT_MODEL'
119
+ value : gptModel
120
+ }
96
121
]
97
122
resources : {
98
123
cpu : 1
Original file line number Diff line number Diff line change 1
1
param config string
2
- param imageVersion string = 'main '
2
+ param imageVersion string = 'develop '
3
3
param gptModel string = 'gpt-4'
4
4
param gptVersion string = '1106-Preview'
5
5
param instance string = deployment ().name
@@ -9,6 +9,7 @@ param openaiLocation string = 'swedencentral'
9
9
targetScope = 'subscription'
10
10
11
11
output appUrl string = app .outputs .appUrl
12
+ output blobStoragePublicName string = app .outputs .blobStoragePublicName
12
13
output communicationId string = app .outputs .communicationId
13
14
14
15
var tags = {
You can’t perform that action at this time.
0 commit comments