How the Code Works

  1. Within the ExampleAIRisk project → Pages folder when the project is first run, index.razor indexes the login url to navigate to the correct url where the project will be hosted.

  2. Then the callback.razor page will query the code by requesting an access token, then once given the access token it navigates to the users.razor page that is the first initial page seen once project is run.

  3. On the Users.razor page it lists out all the different users than you can login as, that once you select the user you want to login as it then logs you in as that user and navigates to the page where you choose the agent you want to chat with.

  4. Once choosing the agent you want to chat with you are redirected to the Chat.razor page where a conversation is created with the agent and there exists a stream of asks The AIRiskModels Project under the models page exists the AIRiskAPIService.cs where here all the code that is responsible for the token, Getting Client, Login URL, Ask Stream, Get Users, List Agents, and Create Conversation exists.

Last updated