question

prateekg-7359 avatar image
0 Votes"
prateekg-7359 asked ·

QnA Bot + Teams + Python

Hi All,

I have created a QnA Bot using QnA Maker and integrated it with Teams using Python.
Now I want to implement the following scenario to the Bot-
In case of unable to respond to any query Bot should prompt: Ask the agent and after selecting this option, it should pass the query to available members of Teams. Then member should be able to chat with that user.
How can I achieve this functionality with Python?
Is there any tutorial or sample GitHub code available for this?

Thanks,
PrateekG

office-teams-windows-itprooffice-teams-app-devazure-bot-service
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered ·

@prateekg-7359,

As we are mainly responsible for general issue of Microsoft Teams, your question which is involved in development is not in our scope.

You could post a new case in Teams Developer forum to get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction.

Meanwhile, I find an article which about creating a bot with the Bot Framework SDK for Python. It will benefit your scenario.


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

romungi-MSFT avatar image
1 Vote"
romungi-MSFT answered ·

@prateekg-7359 Your scenario might be similar to something mentioned here. You could try to lookup these samples which fetch the member/s and send out a message to the user.


· 8 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@romungi-MSFT Thanks for your guidance.
I followed the samples and now I am stuck on the below case-
How can my bot pass a user's question to a Teams' member?
Because currently only one to one chat is happening and I want to pass the user's query to a Teams' member.

0 Votes 0 ·

@prateekg-7359 Do you mean creating a common thread in a channel? I think this sample to create a conversation from a team's channel can help to address this by creating a conversation in a channel.


0 Votes 0 ·

Thanks @romungi-MSFT with this example and little customization I am able to proceed with my requirement.

0 Votes 0 ·

@romungi-MSFT I need your guidance for the following case-
I am able to forward the user's query with the user's email to a Teams group and any member of the group can chat one to one with that user.
Now my question is how can I notify other members of the group that a user's query has been taken by a member of the group so that no any other member can pick the same?

0 Votes 0 ·

@prateekg-7359 In this case if you are updating the teams channel with the user data and asking for team members to respond one on one. I think your bot could update the conversation in that channel by adding a new message that this is being addressed by a team member. This though will require you to maintain a state to track the response to the user and then update this conversation. For example, if the user query is not resolved after a team member works with the user then you would need to restart that conversation or create a new one to find other team members who can help.

1 Vote 1 ·

Do we have any sample code for the same?

0 Votes 0 ·
Show more comments