intermediator-bot-sample icon indicating copy to clipboard operation
intermediator-bot-sample copied to clipboard

Agent UI without using NodeJS

Open justinvan0603 opened this issue 8 years ago • 7 comments

Greeting @tompaana, I'm new at Bot framework and I have a plan to do my bot project like your Scenario 2. But I wonder that Instead use Agent UI built in NodeJS, can I just return an

justinvan0603 avatar Feb 27 '17 02:02 justinvan0603

Hi and thanks for the input! This has, more or less, been on my backlog and I'll try to address this as soon as possible. However, I don't mind receiving pull requests in case this is something you'd like to contribute. Cheers!

tompaana avatar Feb 28 '17 09:02 tompaana

Hello, thanks for your answer. I've researched more and I've got my idea to implement my plan. One more question when I was testing your Bot project is: What happen if I have many Agents and how can I route the Customer's message to specific Agent in situation that "Agent 1" is busy and "Agent 2, 3 or..." is free to talk? Is that according to the AgentID or How can i Customize the source code as I wish?

justinvan0603 avatar Feb 28 '17 09:02 justinvan0603

In short: The sample doesn't care how you handle that - it's up to your "agent UI".

The way it behaves now is:

  1. Agent UI checks for pending requests (in AgentController.cs) and serves the first request it sees
  2. Agent UI then sends a backchannel message to the bot and establishes the engagement (see https://github.com/tompaana/intermediator-bot-sample/blob/master/IntermediatorBotSample/MessageRouting/MessageRouterManager.cs#L440)

tompaana avatar Feb 28 '17 10:02 tompaana

okay, as you've explained to me, as I understood that which Agent will be received message totally depend on how I implement the Agent UI as the sample you've attached in the post?

justinvan0603 avatar Feb 28 '17 12:02 justinvan0603

That's right. Basically the one (agent, instance, web app, whatever) who sends the backchannel message, will own that conversation.

tompaana avatar Feb 28 '17 13:02 tompaana

okay, thanks for your explanation. It helps me lots.

justinvan0603 avatar Feb 28 '17 13:02 justinvan0603

@justinvan0603 So how did you achieve the agent ui, i have a similar issue. any pointers will be helpful.

valnav avatar Jul 15 '17 21:07 valnav