-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to match question and answer back to the feedback #11870
Comments
Thank you for your inquiry about your Teams app development issue! To assist you better, could you please provide the following details? Reproduction Steps: Please share the steps you took to encounter the issue. This information will help us better understand the situation and provide a more accurate response. |
loggingMiddleware.js
index.js
kijangBot.js
combined.log
As you can see the id is the same, but when we refer back to replyToId in asyncInvokeActivity it is not showing the with the same id. |
It sounds like you're encountering an issue with matching the message ID from an invoke activity to the corresponding feedback. This can be tricky, especially when the replyToId seems to differ between the invoke activity and the actual message. Ensure that you are storing the message IDs of both the sent and received messages. This includes the id of the invoke activity and the replyToId of the message. Here's an example of how you can implement this:
By storing the message IDs and using the replyToId to match the feedback with the corresponding message, you can ensure that the feedback is correctly associated with the right message. If you need more detailed guidance, you can refer to the documentation |
@faidhi066 , Based on the error context and the log details you provided, it seems like the issue is related to a mismatch between the expected ID and the invoke ID. The error message specifically states: "The invoke id '1736137182490' does not match the expected id '1736139830660'." This discrepancy could be causing issues with tracing the actions correctly. Ensure that the IDs used in your bot logic are consistently matched. The invoke ID (1736137182490) should align with the expected ID (1736139830660). It is essential to track where and how these IDs are generated and used within your bot code. Also,confirm that the bot's configuration in Azure App Service correctly aligns with the project’s environment files. Misconfigurations here can lead to unexpected behaviors. |
Type of issue
Missing information
Feedback
Store the feedback by saving message IDs and content of messages your bot sends and receives. When your bot gets an invoke request with feedback, match the message ID with the corresponding feedback.
I was referring to this documentation and was using replyToId. However, it was using a different id with the message and answer produced.
Can you help me, how can I get the based on the invoke id activity to be matched with answer and answer's replyToId (which is same, but different with invoke activity???)?
Page URL
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/bot-messages-ai-generated-content?tabs=before%2Cbotmessage
Content source URL
https://github.com/MicrosoftDocs/msteams-docs/blob/main/msteams-platform/bots/how-to/bot-messages-ai-generated-content.md
Author
@surbhigupta
Document Id
605a8486-6e6a-31d5-e8a1-021691206099
The text was updated successfully, but these errors were encountered: