Trying to connect the Azure BOT to Azure Foundry AI Agent what Messaging endpoint (Https:// ?) do we need to provide

Sameer Mahajan 15 Reputation points
2025-06-03T15:36:20.2333333+00:00

We are trying to connect the Azure BOT to Azure Foundry AI Agent. Within the BOT Configuration -> Messaging endpoint what URL needs to be provided so it can communicate with an Agent created within the Azure Foundry AI.

1.Can some one please share the detailed steps to get the https://URL for the Azure BOT as mentioned in https://learn.microsoft.com/en-us/azure/bot-service/bot-service-manage-settings?view=azure-bot-service-4.0&tabs=userassigned#configuration

  1. Also we understand we don't need to append the /api/messages as mentioned under https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/chat/quickstart-botframework-integration#create-a-messaging-endpoint-for-the-bot

thanks in advance

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
{count} vote

2 answers

Sort by: Most helpful
  1. Suwarna S Kale 3,956 Reputation points
    2025-06-04T03:00:41.18+00:00

    Hello Sameer Mahajan,

    Thank you for posting your question in the Microsoft Q&A forum. 

    To connect your Azure Bot to an Azure AI Foundry Agent, the Messaging Endpoint in the Bot configuration should point to the Agent’s HTTP endpoint exposed by Azure AI Foundry. Follow these steps: 

    • Retrieve the Agent’s Endpoint: 
    • Configure the Bot: 
      • In the Azure Portal, go to Bot Services --> Your Bot --> Configuration. 
      • Paste the Agent’s endpoint into the Messaging Endpoint field (no /api/messages needed). 
      • Ensure the Agent’s endpoint accepts Bot Framework activities (JSON payloads). 
    • Authentication: 
      • Use the Agent’s API key (or Azure AD auth) in the Bot’s appsettings.json. 
    • For troubleshooting, verify the Agent’s CORS settings and network policies.

     Some reference documentation you may review:

    https://learn.microsoft.com/en-us/azure/bot-service/bot-service-manage-settings?view=azure-bot-service-4.0&tabs=userassigned

    https://learn.microsoft.com/en-us/training/paths/develop-ai-agents-on-azure/

    If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated. 


  2. Azar 29,620 Reputation points MVP Volunteer Moderator
    2025-06-04T10:15:18.9+00:00

    Hi there Sameer Mahajan

    Thanks for using QandA platform

    connect your Azure Bot to an Azure AI Foundry Agent, the Messaging endpoint in your Bot's configuration should point to the Foundry Agent endpoint URL, like thisa

    https://<your-agent-name>.<region>.inference.azure.com/conversations/<agent-id>
    
    

    Get your Agent endpoint from AI Studio (Foundry) after publishing your agent.

    In Azure Bot resource → Configuration tab, set the Messaging endpoint to that URL.

    Do not append /api/messages when integrating with Foundry Agents (unlike standard Bot Framework bots).

    Make sure CORS and authentication settings are correctly configured in both services.

    If this helps kindly accept the answer thanks much.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.