What should be the value of ServiceUrl in the ConnectionsMap.ServiceUrl for multiple agent endpoints? #286
-
|
I followed the instructions in the Retrieval bot sample. This is the link for the appsettings.json: https://github.com/microsoft/Agents/blob/main/samples/dotnet/RetrievalBot/appsettings.json The single bot works fine, but I could not find how to configure multiple agents.
Everything works well locally for both messaging endpoint. Now, during hosting in Azure Bot, I need to configure the Connections - BotServiceConnections. My current approach is: This gives object null exception. An instance of IAccessTokenProvider not found. Please suggest what should be value for ServiceUrl in above config. API reference for ServiceUrl: https://learn.microsoft.com/en-us/dotnet/api/microsoft.agents.client.connectionsettings.serviceurl?view=m365-agents-sdk#microsoft-agents-client-connectionsettings-serviceurl |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
@pujan The expected name for the mappings is |
Beta Was this translation helpful? Give feedback.
@pujan The expected name for the mappings is
ConnectionsMap. TheServiceUrlis from the Activity received, not the endpoint. For this, I would use theAudienceinstead: