EmpowerID Bot is flexible enough so that the settings from your Azure infrastructure can be configured. Provisioning a Bot tenant allows a tenant (i.e., an organization) to supplier provide the appropriate values of its services and configurations to the Bot Service.
...
Please follow the steps below to provision the bot tenant.
...
Add a new item to the bot config container in the bot_database Cosmos DB database created earlier.
Copy-paste the JSON document below as the item value. This document is a starting point for the tenant configuration. Fill in the valid values, as applicable, based on the resources we created in the previous steps. The Please find these keys and a sample JSON document for configuration are is also provided below.
Code Block { "document": { "Locale": "en-US", "TenantId": "[GUID]", "WorkflowServiceUrl": "https://sso.empoweriam.com", "WebChatUrl": "https://mychat.azurewebsites.net/api/Callback/OAuth", "WebChatTokenSecretKey": "[Secret Key]", "WebChatTokenUrl": "https://directline.botframework.com/v3/directline/tokens/generate", "UserExperience": { "MaxProcessTimeInSeconds": "10", "MaxRequestTimeoutInSeconds": "3" }, "StateBlobConfig": { "ConnectionString": "[Blob connection string]", "ConainerName": "[container name]", "BlobName": "[blob name]" }, "LuisAI": { "AppId": "[Luis App Id]", "PredictionKey": "[Luis Prediction key]", "PredictionEndpoint": "https://westus.api.cognitive.microsoft.com/" }, "StateDatabaseConfig": { "CosmosDbEndpoint": "https://mydb.documents.azure.com/", "AuthKey": "[Auth key]", "DatabaseId": "bot_database", "ContainerId": "conversation", "CosmosClientOptions": { "MaxTcpConnectionsPerEndpoint": null, "MaxRequestsPerTcpConnection": null, "OpenTcpConnectionTimeout": null, "IdleTcpConnectionTimeout": null, "MaxRetryWaitTimeOnRateLimitedRequests": null, "MaxRetryAttemptsOnRateLimitedRequests": null, "ConnectionMode": 0, "RequestTimeout": "00:00:00", "GatewayModeMaxConnectionLimit": 0, "ApplicationRegion": null, "ApplicationName": null, "ConsistencyLevel": null }, "ContainerThroughput": 400, "KeySuffix": null, "CompatibilityMode": false }, "TemplateDatabaseConfig": { "CosmosDbEndpoint": "https://mydb.documents.azure.com/", "AuthKey": "[Auth key]", "DatabaseId": "bot_database", "ContainerId": "templates", "CosmosClientOptions": { "MaxTcpConnectionsPerEndpoint": null, "MaxRequestsPerTcpConnection": null, "OpenTcpConnectionTimeout": null, "IdleTcpConnectionTimeout": null, "MaxRetryWaitTimeOnRateLimitedRequests": null, "MaxRetryAttemptsOnRateLimitedRequests": null, "ConnectionMode": 0, "RequestTimeout": "00:00:00", "GatewayModeMaxConnectionLimit": 0, "ApplicationRegion": null, "ApplicationName": null, "ConsistencyLevel": null }, "ContainerThroughput": 400, "KeySuffix": null, "CompatibilityMode": false }, "OAuthConfig": { "ApiKey": "[Api Key]", "ClientID": "[Client ID]", "Secret": "[Client Secret]", "TokenInfoUrl": "https://sso.empoweriam.com/oauth/v2/tokeninfo", "TokenUrl": "https://sso.empoweriam.com/oauth/v2/token", "AuthorizeUrl": "https://sso.empoweriam.com/oauth/v2/ui/authorize", "UserInfoUrl": "https://sso.empoweriam.com/oauth/v2/userinfo", "RevokeUrl": "https://sso.empoweriam.com/oauth/v2/tokenrevoke" }, "AppSettingsJson64": null, "BaseWorkflow": "BotBaseWorkflow", "AuthWorkflow": "BotAuthWorkflow", "AskToSeeTemplate": "AskToSeeTemplate", "AskToSeeCardTemplate": "AskToSee", "id": "botsvcconfig_[GUID]" }, "realId": "botsvcconfig_[GUID]", "id": "botsvcconfig_[GUID]", "PartitionKey": "botsvcconfig_[GUID]" }
Key | Description | |||
---|---|---|---|---|
Locale | Specifies the Locale the Bot Service should use for this tenant, e.g., | |||
TenantId | Specifies the Tenant ID. This is the Azure AD Tenant ID for your Microsoft Teams | |||
WorkflowServiceUrl | Specifies the EmpowerID Workflow Service URL, where your Botflows reside. | |||
WebChatUrl | Specifies the URL to the Web Chat Bot application | |||
WebChatTokenSecretKey | Specifies the Direct Line Secret Key | |||
WebChatTokenUrl | Specifies Microsoft Direct Line Token URL (leave this unchanged to https://directline.botframework.com/v3/directline/tokens/generate) | |||
UserExperience | Use the UserExperience settings to specify the max time the service should wait to timeout request and notify the user upon completion.
| |||
StateBlobConfig | Use the StateBlobConfig settings to specify the Blob Storage Account, Container, and Blob where Non-JSON state data may be stored.
| |||
LuisAI | Use the LuisAI settings to specify the configuration for Luis AI.
| |||
StateDatabaseConfig | Use the StateDatabaseConfig settings to specify the Cosmos DB storage, where JSON state data may be stored.
| |||
TemplateDatabaseConfig | Use the TemplateDatabaseConfig settings to specify the Cosmos DB storage, where the Adaptive Card Templates the Bot Service are stored.
| |||
ContainerThroughput | Leave as is. | |||
KeySuffix | Leave as is. | |||
CompatibilityMode | Leave as is. | |||
OAuthConfig | Use the OAuthConfig settings to specify OAuth Server information. The settings here are self-explanatory. The ApiKey, ClientID, and Secret will come from the ‘Mobile Client & Chat Bot Application’ app in EmpowerID.
| |||
AppSettingsJson64 | Leave this setting unchanged to null. | |||
BaseWorkflow | Specifies the Base Botflow for the tenant. | |||
AuthWorkflow | Specifies the Bot Login Flow for the tenant. | |||
AskToSeeTemplate | Specifies Card Template CosmosDB item ID of the Ask to see template. | |||
AskToSeeCardTemplate | AskToSee | CreatedDateTimeUtcSpecifies Card Template ID of the Ask to see template. | ||
id | Specify the ID of the current JSON document. The [GUID] is the TenantID
| |||
realId | Specifies the ID of the current JSON document in the realId, id, and PartitionKey.
| |||
id | botsvcconfig_[GUID].
| |||
PartitionKey | botsvcconfig_[GUID].
|
A sample configuration for the tenant, as an example, is provided below.
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Info |
---|
In the next step, we will configure the ask to see command. |
All steps in Deployment & Configuration of EID Bot
Page Tree | ||||
---|---|---|---|---|
|