Microsoft Teams Message Handler > Using the Microsoft Teams Message Handler recipe > Step 6. Configure and deploy the AI agent
  

Step 6. Configure and deploy the AI agent

To configure the AI agent, perform the following steps in AI Agent Engineering:
  1. 1From the navigation menu, select New.
  2. 2In the New Asset dialog box, select Flow > Agent Flow, and then click Create.
  3. 3Enter a name and click Create.
  4. 4Add an agent block, select the appropriate LLM, and enter the planning prompt.
  5. 5Optionally, to receive the agent’s response in the same Microsoft Teams channel, configure the Microsoft Teams tool recipe and select it from the Agents and Tools list. For detailed, step-by-step instructions, see the Microsoft Teams Tool recipe guide in AI Agent Engineering.
  6. 6Save and deploy the agent flow.
  7. The Deploy dialog box is displayed.
  8. 7From the Runtime Environment list, select the Secure Agent.
  9. 8Enter the URL suffix.
  10. 9Copy the REST endpoint URL from the URL Preview field.
  11. You'll need the endpoint URL to configure the Call A2E Agent process.
  12. 10Select Anonymous as the authentication type.
  13. 11Click Deploy.