Versions Compared

Key

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

Chat message exchange is required to be in real-time and super fast. EmpowerID chatbot uses Cosmos DB, a NoSQL database that guarantees scalability and speed while storing a colossal volume of chat messages. It will store the Chat Conversations, Configuration & Templates used for the bot, please follow the steps below to configure the Cosmos DB for EmpowerID.

...

  1. Navigate to the Azure Portal.

  2. Create a Cosmos DB with Core (SQL).

    Image RemovedImage Added

  3. After Azure provisions the Cosmos DB, you will have to add a new database and a container. In the screenshot below database named bot_database and a container named botconfig is created.

    Insert excerpt
    IL:Deployment and Configuration of EID Bot Library
    IL:Deployment and Configuration of EID Bot Library
    namePartitionKey
    nopaneltrue


  4. Add two additional containers, conversations, and templates to the bot_database database. After you have added the containers, you should be able to list all containers and the database created.

    Image Removed


    Image Added
  5. Find the Bot Service Deployment Package (i.e., _BotServiceDeploymentPackage.zip) and unzip the content into a folder.

    Insert excerpt
    IL:Deployment and Configuration of EID Bot Library
    IL:Deployment and Configuration of EID Bot Library
    nameDefaultLocationForZip
    nopaneltrue

  6. Locate the Adaptive Card Templates folder in the Bot Service Deployment Package.

  7. Upload all the JSON JSON files in the Adaptive Card Templates folder to the templates CosmosDB container. You should be able to see the list of the uploaded files after completion.

    Image RemovedImage Added


  8. Now, we will add the settings from Cosmos Db intothe configuration of the App Service created in Step 1 Set up App Service ; please add the following values for the keys and save the settings.

    1. CosmosDbAuthKey with the Primary Read-Write Key.

    2. CosmosDbDatabaseId with “bot_database“.

    3. CosmosDbContainerId with “botconfig“.

    4. CosmosDbEndpoint with the URI of the CosmosDb account.

...