dify icon indicating copy to clipboard operation
dify copied to clipboard

Providing a means to GET all user, all conversations via API

Open daigo38 opened this issue 1 year ago • 3 comments

Self Checks

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

1. Is this request related to a challenge you're experiencing? Tell me about your story.

In order to manage Dify in a production environment, I want to export all chat logs and analyze them. Dify has an API for retrieving a list of conversations, but it is necessary to include the user ID in the query parameters, and there is no API for retrieving a list of users, so it is not possible to retrieve all conversations for all users. Either an API for retrieving a list of users should be provided, or the user specification should be made optional in the API for retrieving a list of conversations.

2. Additional context or comments

The inability to export chat logs is a major barrier to the practical use of Dify.

3. Can you help us with this feature?

  • [X] I am interested in contributing to this feature.

daigo38 avatar Oct 21 '24 05:10 daigo38

Either an API for retrieving a list of users should be provided, or the user specification should be made optional in the API for retrieving a list of conversations.

It's not safe to list all users.

crazywoola avatar Oct 21 '24 07:10 crazywoola

I guess he meant to get all users' conversations, not all users. I also have this requirement. but why not safe? It is just an api

rchlz avatar Oct 23 '24 09:10 rchlz

Hi, @daigo38. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • Enhancement request to Dify API for retrieving all user data and conversations without specifying user IDs.
  • @crazywoola raised safety concerns about listing all users, suggesting an API for listing or optional user specification.
  • @rchlz clarified the request is for accessing conversations, not listing users, and questioned the safety concerns.
  • You reacted positively to the clarification provided by @rchlz.

Next Steps

  • Please confirm if this issue is still relevant to the latest version of the Dify repository. If so, you can keep the discussion open by commenting on the issue.
  • Otherwise, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Nov 23 '24 16:11 dosubot[bot]