Need help understanding how Botpress comunicates w...
# 🤝help
Hi, My bot is integrated in Teams at the moment, and I am trying to get the user's team informations such as their name and email. Here is my problem, I have a hook on messages received with
which is where I expect to see the user's informations. This is what I get (I changed the ids for privacy but the format are the same):
Copy code
message: { 'teams:id': 'f:8ea7c01e-e9ec-e444-5555-d3c82c572709' },
  conversation: { 'teams:id': 'a:2bpxBRZN3Ex3riQiyw7s-2v1rWhBFfUHMHcF0GA12PtBejP501CvqZRMhVF473SSck8tIfxxaSFSWtmEqcXVjxWkQue2AweUrIBq2Ctrwk34ZFUXV30GdNUMiYSkzkT_Z' },
  user: { 'teams:id': '29:1Ql8QosLVXslSMBIO8KARDeiqrZr1xVO_OnzS39cqh3_yEc1gWyiPg-doEq3x2Xa4tZ7ngaD05i5C69olEIxBEg' } }
I tried every requests under the sun with those IDs on Graph API, but the format is incorrect (actual Graph IDs are much shorter and not in this format either) Yet it does say
and it is returned by Teams to Botpress. I am wondering if those are encrypted ? Anyways, does anybody have an idea on how to do that ? Also, it would be nice to know how Botpress and Teams are communicating, there must be the user's id exchanged at some point no ? Thanks in advance !
@bulky-dusk-45106 sorry not familiar with teams, but here's the full source code of Teams integration. hopefully this helps?
This is where the user ID from teams is passed as a tag to the BP user
You can also access them in
from in the studio (probably
Thanks ! I will check this right now
It's really weird, the user id returned is something like
Copy code
teams:id': '29:1Ql8QosLVXslSMBIO8KARDeiqrZr1xVO_OnzS39cqh8_yEc1gWyiPg-doEq3x9Xa4tZ7ngaD05i5C88olEIxBEg'
Which isn't a user id, or maybe it is but encrypted. I admit that the source code didn't help me much sadly.
The Id can be consumed by Bot Framework API. Check my post: