When using a manually specified user id, bot emulator switches to user id r_[somenumber] after initial messages
See original GitHub issueVersion
4.8.1
Describe the bug
I set the emulator to use a custom user ID. It starts the conversation using that ID but after the initial messages from the bot it changes the user id to something like r_[somenumber]
.
To Reproduce
Steps to reproduce the behavior:
- Go to emulator settings
- Enable "Use your own user ID to communicate with the bot
- Copy
dl_e9360b03-412d-4597-8046-be40264fdc51@demo_company
in theUser ID
field - Click save
- Restart conversation with the bot
- Inspect conversationUpdate to see that it adds member with id
dl_e9360b03-412d-4597-8046-be40264fdc51@demo_company
to conversation - See that bot answers with some intro message.
recipient.id
should bedl_e9360b03-412d-4597-8046-be40264fdc51@demo_company
- Send a message to the bot.
from.id
should bedl_e9360b03-412d-4597-8046-be40264fdc51@demo_company
but in my case it wasr_1589199908
. This breaks my bot logic.
Expected behavior
I expect the user ID to be the one I configured and I expect the user ID stay the same during the conversation.
Screenshots
Additional context
conversationUpdate
:
{
"channelId": "emulator",
"conversation": {
"id": "73bcb540-9382-11ea-8641-f9e1905c9a85|livechat"
},
"from": {
"id": "dl_e9360b03-412d-4597-8046-be40264fdc51@demo_company",
"name": "User",
"role": "user"
},
"id": "73ce1a60-9382-11ea-a0f0-e59eeb591f47",
"localTimestamp": "2020-05-11T14:25:08+02:00",
"membersAdded": [
{
"id": "35afd9d0-9382-11ea-8641-f9e1905c9a85",
"name": "Bot"
},
{
"id": "dl_e9360b03-412d-4597-8046-be40264fdc51@demo_company",
"name": "User"
}
],
"membersRemoved": [],
"recipient": {
"id": "35afd9d0-9382-11ea-8641-f9e1905c9a85",
"name": "Bot",
"role": "bot"
},
"serviceUrl": "http://localhost:53051",
"timestamp": "2020-05-11T12:25:08.614Z",
"type": "conversationUpdate"
}
message from bot: “How can I help you?”
{
"attachments": [],
"channelId": "emulator",
"conversation": {
"id": "73bcb540-9382-11ea-8641-f9e1905c9a85|livechat"
},
"entities": [],
"from": {
"id": "35afd9d0-9382-11ea-8641-f9e1905c9a85",
"name": "Bot",
"role": "bot"
},
"id": "79fb3800-9382-11ea-a0f0-e59eeb591f47",
"inputHint": "expectingInput",
"localTimestamp": "2020-05-11T14:25:18+02:00",
"recipient": {
"id": "dl_e9360b03-412d-4597-8046-be40264fdc51@demo_company",
"role": "user"
},
"replyToId": "73ce1a60-9382-11ea-a0f0-e59eeb591f47",
"serviceUrl": "http://localhost:53051",
"speak": "Waar kan ik je mee helpen?",
"text": "Waar kan ik je mee helpen?",
"timestamp": "2020-05-11T12:25:18.976Z",
"type": "message"
}
question containing issue: question from user to bot, where emulator seems to have wrong from.id
{
"channelData": {
"clientActivityID": "1589199932491y4w38xfucw",
"clientTimestamp": "2020-05-11T12:25:32.491Z"
},
"channelId": "emulator",
"conversation": {
"id": "73bcb540-9382-11ea-8641-f9e1905c9a85|livechat"
},
"entities": [
{
"requiresBotState": true,
"supportsListening": true,
"supportsTts": true,
"type": "ClientCapabilities"
}
],
"from": {
"id": "r_1589199908",
"name": "User",
"role": "user"
},
"id": "820a8320-9382-11ea-a0f0-e59eeb591f47",
"localTimestamp": "2020-05-11T14:25:32+02:00",
"recipient": {
"id": "35afd9d0-9382-11ea-8641-f9e1905c9a85",
"name": "Bot",
"role": "bot"
},
"serviceUrl": "http://localhost:53051",
"text": "waar werk ik?",
"textFormat": "plain",
"timestamp": "2020-05-11T12:25:32.498Z",
"type": "message"
}
[bug]
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Troubleshooting Bot Framework Authentication - Bot Service
Learn how to troubleshoot bot authentication errors, such as connectivity issues and problems with app IDs and passwords.
Read more >How to send specific user ID from bot framework emulator v4?
The short answer is, if you are using Direct Line to generate a token from a secret and you specify user Id there...
Read more >Connecting Bot Framework to Azure Cosmos DB - YouTube
In this part, we will be connecting our bot with Azure Cosmos DB. For not to incur any charges for Azure Cosmos DB,...
Read more >Step by Step: Configure Bot to Work in Teams and with ...
Let's publish all the changes to Azure so we could use them later on from MS Teams. Add Microsoft Teams Channel to the...
Read more >Build a Doctor Appointment Bot with Azure Bot Service ... - Twilio
Learn how to build an SMS booking system using Twilio, Azure Bot ... and use the value from the Name column to specify...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I believe so
Hi @tonyanziano,
r_<guid>
butr_<integer>
(you can see it in the json marked as “question containing issue”restart conversation - new user id
<custom id>
tor_<integer>
after a few messages in the conversation