langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
47.97k stars 6.85k forks source link

Make chat logs available for download #8492

Open yusuke-ten opened 3 weeks ago

yusuke-ten commented 3 weeks ago

Self Checks

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

I would like to be able to download logs on the log and announce screen. It would also be nice to be able to use the following features

2. Additional context or comments

No response

3. Can you help us with this feature?

FrancisVarga commented 3 weeks ago

You can use this api (found it over inspect and then request): console/api/apps/1b0856bf-46aa-4ee1-90cc-bf53db65d5f7/chat-conversations?page=1&limit=10&start=2024-09-10%2000%3A00&end=2024-09-17%2023%3A59&sort_by=-created_at&annotation_status=all

In the return the id attribute is the conversation id You can fetch the conversation via: console/api/apps/1b0856bf-46aa-4ee1-90cc-bf53db65d5f7/chat-messages?conversation_id=c3d6d8a4-9661-42dc-b441-db68e12a05fe&limit=10

Apps Id: image

With this u can build and workflow to get the data.