Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent UI without using NodeJS #7

Open
justinvan0603 opened this issue Feb 27, 2017 · 7 comments
Open

Agent UI without using NodeJS #7

justinvan0603 opened this issue Feb 27, 2017 · 7 comments

Comments

@justinvan0603
Copy link

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 <iframe> to my agent for opening a new chat control to communicate with each customer if they want to talk with the agent not with the Bot?

@tompaana
Copy link
Owner

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!

@justinvan0603
Copy link
Author

justinvan0603 commented Feb 28, 2017

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?

@tompaana
Copy link
Owner

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)

@justinvan0603
Copy link
Author

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?

@tompaana
Copy link
Owner

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

@justinvan0603
Copy link
Author

justinvan0603 commented Feb 28, 2017

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

@valnav
Copy link

valnav commented Jul 15, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants