Skip to main content

06 - Deploy your agents and clients

In this module, you learn how to deploy your Azure Logic Apps conversational agent, use the built-in chat client, configure authentication or use the developer identity for development purposes.

When you finish this module, you'll achieve the goals and complete the tasks in the following list:

  • Have a conversational agent you can chat with in the Azure portal.
  • Understand key concepts for conversational agents in Azure Logic Apps.
  • See basic tool execution and agent reasoning.
  • Understand the basics of the agent-to-agent (A2A) protocol (high-level).
  • Use the built-in chat client to debug, test and enhance your agent on the go.
  • Use the chat client with proper authentication flow(using Easy Auth, previously known as App Service Authentication) for your production use-case.

Prerequisites

Chatting with your agent

Conversational agent workflows provide you with an in-built chat client in Azure portal which you can use for debugging the testing your workflow.

  1. Make sure your workflow is running, if not, hit run from the designer or the Run history blade.
  2. Go to chat blade and wait for the client to load fully.
  3. Use any of the existing chat threads or start a new one and start chatting with your agent.

Goals

  • Easily debug, test, and iterate over your agent definition to further enhance it.
  • Chat client uses the A2A protocol and OBO connection to mimic your production scenrios so get a first hand feel of how your agent will behave when a user chats with it.

Step 2 - Using the chat client as an iframe or directly as a standalone application

Step 2a - Setup Easy Auth (previously known as App Service authentication)

This is required for the standalone chat client application

  1. Go to Authentication blade for your Azure Logic App. Screenshot shows Authentication blade entry point.
  2. Add Identity provider and select Microsoft as the provider. Screenshot shows Identity Provider.
  3. For Conversational Agents, we recommend either Creating a new app registration or use an existing registration. This helps you get the settings out of box since we can help setup everything for you. Screenshot shows App registration. With the recommended options, we default all the required configurations for Conversational agents.
  • Authentication is secure by default since it is tied down to your ClientId (Under Allowed Identities).
  • Excluded paths include "/runtime" to make sure monitoring and other APIs continue to work.
  • Token store is enabled by default.
  • Unauthenticated request use the Http 302 redirect. If in case you bring your own app registration, make sure to apply the relevant configurations manually.

Step 2b - Using the standalone chat client

  1. Make sure your workflow is running, if not, hit run from the designer or the Run history blade.
  2. Go to chat blade and follow the chat client uri to open the standalone experience. Screenshot shows App registration.
  3. The Chat client here is using Easy auth you configured in Step 2a and can be used directly for production scenarios.

Review supported authentication

Azure Logic Apps conversational agents support two authentication methods:

  • API key-based authentication: This is the default method. The API key (also referred to as the developer key) must be included in the X-API-Key header for any communication with the agent. This authentication method is used in the in-built chat client hosted in the Azure portal.

  • App Service authentication (EasyAuth): If EasyAuth is configured on the logic app, it takes precedence over API key-based authentication. This method is typically used when OAuth flows or on-behalf-of (OBO) scenarios are required, such as interacting with connectors that require user context (explained in the extension modules - Add user context to your tools). This is a secure by-default authentication method which is used in the chat client(explained in Step 2) provided as an iframe that can be used directly or embedded in your client application.