Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

EmpowerID Bot is built flexibly 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 provide the appropriate values of its services and configurations to the Bot Service.

...

Please follow the steps below to provision the bot tenant.

...

  1. Add a new item to the bot config container in the bot_database Cosmos DB database created earlier.

  2. 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]"
    }
    


...

Info

In the next step, we will configure the ask to see command.

Configuring the Ask to See Commands

All steps in Deployment & Configuration of EID Bot

Page Tree
rootDeployment & Configuration of EID Chatbot
startDepth1