Intelligent agent - Overview - Incorrect logic for counting active users #12689

Closed
opened 2026-02-21 19:08:34 -05:00 by yindo · 2 comments
Owner

Originally created by @yushuainan on GitHub (Apr 9, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Accumulate the daily active user count as the active user count for a period of time without deduplication

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @yushuainan on GitHub (Apr 9, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/a98320f8-f5d0-4f37-ad70-88ed2c4dbc73) Accumulate the daily active user count as the active user count for a period of time without deduplication ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 19:08:34 -05:00
Author
Owner

@crazywoola commented on GitHub (Apr 9, 2025):

If you open 2 browsers, then it will be counted into 2 users.

@crazywoola commented on GitHub (Apr 9, 2025): If you open 2 browsers, then it will be counted into 2 users.
Author
Owner

@dosubot[bot] commented on GitHub (Apr 9, 2025):

你好,@yushuainan!我是一个可以帮助你解决bug、回答问题和成为贡献者的机器人。很高兴见到你,我在这里等着帮助你,同时等待人类维护者的回复。

The issue reported seems to be about the incorrect logic for counting active users in the Dify platform. Specifically, it mentions that the daily active user count is being accumulated over a period of time without deduplication, which could lead to an inflated count of active users.

In the Dify codebase, the active user count is calculated based on the number of unique users who have had effective interactions with the AI, defined as having more than one question-and-answer exchange. Prompt orchestration and debugging sessions are not included in this count [1].

To address the issue, you might want to ensure that the logic for counting active users over a period of time includes deduplication of users to avoid counting the same user multiple times across different days. This would involve checking for unique user interactions within the specified time frame.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Apr 9, 2025): <!-- Greeting --> 你好,@yushuainan!我是一个可以帮助你解决bug、回答问题和成为贡献者的机器人。很高兴见到你,我在这里等着帮助你,同时等待人类维护者的回复。 <!-- Answer --> The issue reported seems to be about the incorrect logic for counting active users in the Dify platform. Specifically, it mentions that the daily active user count is being accumulated over a period of time without deduplication, which could lead to an inflated count of active users. In the Dify codebase, the active user count is calculated based on the number of unique users who have had effective interactions with the AI, defined as having more than one question-and-answer exchange. Prompt orchestration and debugging sessions are not included in this count <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/llms.txt)</sup>. To address the issue, you might want to ensure that the logic for counting active users over a period of time includes deduplication of users to avoid counting the same user multiple times across different days. This would involve checking for unique user interactions within the specified time frame. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/e937059c-f150-467a-a405-15681d845581?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/e937059c-f150-467a-a405-15681d845581?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/e937059c-f150-467a-a405-15681d845581?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/e937059c-f150-467a-a405-15681d845581?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e937059c-f150-467a-a405-15681d845581?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/e937059c-f150-467a-a405-15681d845581?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e937059c-f150-467a-a405-15681d845581?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12689