# Retrieve infos received with messages from the bot framework

**URL:** <https://forum.rasa.com/t/retrieve-infos-received-with-messages-from-the-bot-framework/31166>\
**Category:** Rasa Open Source\
**Created:** [July 9, 2020, 5:12pm UTC](https://forum.rasa.com/t/retrieve-infos-received-with-messages-from-the-bot-framework/31166 "2020-07-09T17:12:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayoubMaqdad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ayoubmaqdad/32/10024_2.png) [@ayoubMaqdad](https://forum.rasa.com/u/ayoubMaqdad)\
**Post date:** [July 9, 2020, 5:12pm UTC](https://forum.rasa.com/t/retrieve-infos-received-with-messages-from-the-bot-framework/31166/1 "2020-07-09T17:12:44Z")

</div>

hey is it possible to retrieve id conversation ,name and serviceUrl of the users of the channel BotFramework in rasa ? does rasa expose this info received with user messages ? Thank you

---

<div class="post-metadata">

**Author:** ![nchauras](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nchauras/32/16965_2.png) [@nchauras](https://forum.rasa.com/u/nchauras)\
**Post date:** [July 9, 2020, 9:53pm UTC](https://forum.rasa.com/t/retrieve-infos-received-with-messages-from-the-bot-framework/31166/2 "2020-07-09T21:53:30Z")

</div>

Welcome to the rasa forum Ayoub!

There is great documentation around getting the conversation id which is also sender id at [Reminders and External Events](https://rasa.com/docs/rasa/core/reminders-and-external-events/#getting-the-conversation-id).

Retrieval of the name depends on your implementation in the Bot Framework. You might have to call external API to fetch name using the conversation id/sender id either in [bot framework channel code](https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/botframework.py) or do it in your actions where you require the name.

What do you mean by service URL, could you please elaborate?

---

<div class="post-metadata">

**Author:** ![ayoubMaqdad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ayoubmaqdad/32/10024_2.png) [@ayoubMaqdad](https://forum.rasa.com/u/ayoubMaqdad)\
**Post date:** [July 9, 2020, 10:41pm UTC](https://forum.rasa.com/t/retrieve-infos-received-with-messages-from-the-bot-framework/31166/3 "2020-07-09T22:41:28Z")

</div>

Thank you for the answer. the framwork bot sends a message with id\_conversation, service\_url, the name and some other information on http: // localhost: 5005 / webhooks / botframework / webhook

here is the infos

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/8/8c52a78f3023cc7c9d0e425233f0f68696831073.png)

i m trying to avoid adding new lines to botframework.py just in case there would be an upgrade. so is there a way to retrive this data without passing by the botframework.py?

---

<div class="post-metadata">

**Author:** ![nchauras](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nchauras/32/16965_2.png) [@nchauras](https://forum.rasa.com/u/nchauras)\
**Post date:** [July 10, 2020, 2:46am UTC](https://forum.rasa.com/t/retrieve-infos-received-with-messages-from-the-bot-framework/31166/4 "2020-07-10T02:46:07Z")

</div>

I used Bot Framework Emulator to simulate the info and compare the data getting sent to Rasa.

I could only find the recipient id for the user in the rasa tracker, and you can get that using `tracker.sender_id`. This id is also the conversation id in Rasa.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/4b7295c3c6e0c010a60b79883439942d17e82adb.png)

If you are using MS Teams as your frontend, maybe you can fetch other details in your `action.py` and store it in a slot for further usage. I have explained about getting the details related to the user (name, email, groups) at this link [MS Teams client & Rasa & Azure authentication - #2 by nchauras](http://forum.rasa.com/t/ms-teams-client-rasa-azure-authentication/29604/2).

I am not sure about the service URL. I will dig deeper into the `botframework.py` code and let you know if I find something.

Maybe someone else in the forum has an idea about it.
