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:
- Navigate to Azure AI Studio --> Agents --> Your Agent --> Deployment.
- Copy the HTTP endpoint URL (e.g., https://<agent-name>.azurewebsites.net).
- 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/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.