Microsoft Teams Integration : How to pass user profile information to botpress

I am integrating my botpress chatbot with microsoft teams for its use from internal team members. It helps users to have 1:1 chat with the bot. I have couple of questions linked to this.

  1. How can I pass the information of the user who is interacting with the bot to botpress? For example the user name, its location etc so that I can further tune the bot to respond based on this profile information. For e.g. based on the location, the bot could respond to the same question in different ways
  2. How can I authenticate & authorize the bot with third party applications that expose rest api’s? Any user interacting with the bot is a authenticated user already since he is able to access microsoft teams hence further asking the user for its credentials in order to make third party application api calls sounds redundant.

Thanks.

Any inputs on the above queries? - @franklevasseur

@allardy - any inputs on this topic would be appreciated.

Hi @shahamit Teams integration is basic at the moment, we don’t fetch the user’s information at the moment. I suggest you open an issue on the github repo to ask for a feature request, and maybe someone could work on that.

For #2, we have a new feature coming soon to handle authentication of users through different channels (configurable duration). It should be available in the release v12.2.x. This will grant the user access to flows or nodes which would be blocked otherwise. Secure actions could be protected that way.

Not sure to understand the part about the third party application, could you be a bit more specific?

Thanks @allardy for the follow up.

I have added the github issue for the user information.

To understand the authentication use case consider this flow. Assume the user is interacting with the bot through microsoft teams. For a certain user input, the bot makes a rest api call which requires user authentication. How can we design the api call in botpress?

Thanks.

@allardy - any comments/suggestions?