An Agent with Multiple MSNs

If I have an Agent that connects to multiple MSN accounts at the same time, is there a way to determine which MSN account/end point the user contacted?

Thanks

[207 byte] By [CarlJ] at [2008-2-15]
# 1
Hi Carl

The easiest way for me to do is to refer to the SYS.Buddy.ScreenName value. I'm sure there are other ways but this one works well for me.

Cheers
Riaan

Riaanvs at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 2

Hey Riaan, thanks a lot.

I'll give this a try when I get back to the office

Jason

CarlJ at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 3

Hey Riaan,

Did you have to do anything differently when using more than one MSN account per bot?

Right now for testing purposes, I have the bot return "SYS.Buddy.ScreenName" when the user chats with it, but no matter which bot I message, it always returns the ScreenName for the first one.

Thanks,

Jason

CarlJ at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 4

Hi Jason,

The way to work around this is to use multiple buddy ids with a screen name each. This is because we currently store the screen name in the buddy information, not in the conversation.

We will take this as a bug to be considered for a future version.

Thank you,

Gruia

GruiaPitigoi-Aron-MSFT at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 5
Really?

I am using SYS.Buddy.ScreenName and it works fine for me. I know in test mode using the IDE this does not work but in proper deploy mode it works fine...

Riaan

Riaanvs at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...
# 6

I've created 3 new Buddies (Testbot1, Testbot2, Testbot3), each with their own MSN login. However, usually only two of them will connect, and when I try to chat with them, I can't get a response back. I do get the message saying that it's typing, but thats it.

If I put all three MSNs under the AutomatedAgent Buddy, I can get a response back, but when they return their SYS.Buddy.ScreenName, its the screenname for the first bot i talked to.

CarlJ at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...

Windows Live Developer Forums

Site Classified