buerokratt / Analytics-Module

0 stars 12 forks source link

Corrections to queries related to metric Contact Information provided #139

Open PaulaMerle opened 10 months ago

PaulaMerle commented 10 months ago

Regarding the new state - Idle - introduced for chats that are terminated by providing contact information from the end user side, see also https://github.com/buerokratt/Buerokratt-Chatbot/issues/374. If necessary, make changes to the corresponding queries for the metric Contact information provided, which is located on the Chats page.

Related to #7

1AhmedYasser commented 7 months ago

Waiting for https://github.com/buerokratt/Buerokratt-Chatbot/issues/445

ValterAro commented 6 months ago

Waiting for the chatbot to be fixed before this can be tested.

ValterAro commented 6 months ago

Short summary: You can see the conversations where the customer has left the contact information, but it is not shown in the statistics in the analytics module (https://admin.dev.buerokratt.ee/analytics/chats). Expected result: You should see the number of customers that have left their information in the Analytics -> chats -> Contact information provided Real result: there is no information on the number of customers that have left their contact information How to reproduce: set the working hours to closed at the moment and have a conversation with the bot and leave your contact information Pic:

Image

ValterAro commented 6 months ago

Still waiting for the chatbot to be fixed before this can be tested.

ValterAro commented 6 months ago

Short summary: I still do not see the correct number of chats that have left their contact information even though I left the contact information just now. There should be plenty of times that a contact information has been left, but the statistics shows nothing. How to reproduce: One option is to login and set the operating time to out of office at the moment and then try to have a conversation with the bot and tell it to redirect you to csa. Then leave your contact information, when prompted to do so. This should be shown in the statistics (https://admin.dev.buerokratt.ee/analytics/chats) under the "Kontakti jätmised/Contact information provided" tab

Pic:

Image

Image

ValterAro commented 6 months ago

Short summary: When the organization is outside of the working hours and a client leaves the contact information with the bot then it is counted all CSAs away with red status and not Outside working hours. How to reproduce: Set the organization working hours as closed for today and then tell the bot to redirect you to csa. You will see the statistic of this chat under the wrong label "All CSAs away with red status" Pic:

Image

janinakimtrohlev commented 6 months ago

Can´t test because asking a contact in some cases is not working. I will test again later.

ValterAro commented 5 months ago

Short summary: When csa asks for contact information from the client then in the statistics this is shown under "outside working hours" stat when looking at the "contact information provided" in the analytics. Expected result: The system should not count each time a csa asks a client for contact information as "outside working hours" contact infromation provided response. Real result: The system counts the Contact information wrong How to reproduce: have chat open and ask for csa, then as a csa take the chat and ask for contact information. Then end the chat as csa and you will see this stat reflected in the analytics->charts->Contact information provided Pic: In the picture for example there should be two times that the contact information has been provided outside working hours. image

ValterAro commented 5 months ago

Short summary: The "contact information provided" statistic is counted in several cases, when it should not be. Currently the statistic is counted when csa asks for contact and depending whether csa answers or waits 15 minutes before the answer, then the statistics will show a count for just the total or long waiting time. Pic: In the picture the 15:00 time counts in three cases are from times that csa asked for contact information and the client provided it.

Image

Chats 7 to 9 Image

1AhmedYasser commented 5 months ago

@KlviG @varmoh Deployment note, data mapper added ./DSL/DMapper/lib:/workspace/app/lib in docker compose

ValterAro commented 3 months ago

[BUG] Short summary: Can't see any data about occurrences where customer has left contact information due to any of the listed reasons. How to reproduce: Go to https://admin.test.buerokratt.ee/analytics/chats and check the contact information tab. As an admin you could also set the working time as offline and try to ask for "teenindaja" in the chat. After filling the contact information you should see this as a data point in the graph. Tested with outside working hours and also having no available csa-s. Pic:

Image

ValterAro commented 2 months ago

The contact information provided section is still empty after testing it. Essentially it is in the same state as when the previous comment was written.

turnerrainer commented 1 month ago

ATR, re-started developing 02.08.2024

yb-ng commented 1 month ago

PR: https://github.com/buerokratt/Analytics-Module/pull/315

ValterAro commented 1 month ago

Short summary: tested leaving the contact, while the institution is outside of working hours and there was data point for it. Pic:

Image

ValterAro commented 4 weeks ago

Additional information: The issue seems to be with datamapper. The graph works when total is not selected and fails once it is selected again. Also in the contact-information-fulfilled request response there is this error: { "error": "There was an error executing /workspace/app/module/analytics/hbs/merge-arrays.handlebars" } . Pic:

Image