Can different users interact with the same chat application at the same time? #4914

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

Originally created by @godeamon on GitHub (Aug 6, 2024).

Self Checks

  • 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.

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

Can different users interact with the same chat application at the same time?

2. Additional context or comments

Can different users interact with the same chat application at the same time?

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @godeamon on GitHub (Aug 6, 2024). ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. Can different users interact with the same chat application at the same time? ### 2. Additional context or comments Can different users interact with the same chat application at the same time? ### 3. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo added the 🙋‍♂️ question label 2026-02-21 18:08:35 -05:00
yindo closed this issue 2026-02-21 18:08:35 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 6, 2024):

Hello @godeamon! I'm here to help you with any bugs, questions, or contributions you have regarding the chat application. I'm Dosu, a bot designed to assist you while you wait for a human maintainer. Let me know how I can assist you!

Yes, different users can interact with the same chat application at the same time. The API allows for multiple access credentials to be created for an application, which can be delivered to different users or developers. This enables multiple users to use the AI capabilities provided by the application developer simultaneously.

Supporting evidence from the document:

"You can create multiple access credentials for an application to deliver to different users or developers."

Example API call for chat-messages:

import requests
import json

url = 'https://api.dify.ai/v1/chat-messages'
headers = {
    'Authorization': 'Bearer ENTER-YOUR-SECRET-KEY',
    'Content-Type': 'application/json',
}
data = {
    "inputs": {},
    "query": "eh",
    "response_mode": "streaming",
    "conversation_id": "1c7e55fb-1ba2-4e10-81b5-30addcea2276",
    "user": "abc-123"
}

response = requests.post(url, headers=headers, data=json.dumps(data))

print(response.json())

[1]

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Aug 6, 2024): <!-- Greeting --> Hello @godeamon! I'm here to help you with any bugs, questions, or contributions you have regarding the chat application. I'm Dosu, a bot designed to assist you while you wait for a human maintainer. Let me know how I can assist you! <!-- Answer --> Yes, different users can interact with the same chat application at the same time. The API allows for multiple access credentials to be created for an application, which can be delivered to different users or developers. This enables multiple users to use the AI capabilities provided by the application developer simultaneously. Supporting evidence from the document: > "You can create multiple access credentials for an application to deliver to different users or developers." Example API call for chat-messages: ```python import requests import json url = 'https://api.dify.ai/v1/chat-messages' headers = { 'Authorization': 'Bearer ENTER-YOUR-SECRET-KEY', 'Content-Type': 'application/json', } data = { "inputs": {}, "query": "eh", "response_mode": "streaming", "conversation_id": "1c7e55fb-1ba2-4e10-81b5-30addcea2276", "user": "abc-123" } response = requests.post(url, headers=headers, data=json.dumps(data)) print(response.json()) ``` <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/application-publishing/developing-with-apis.md)</sup> <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Aug 6, 2024):

If you mean at the same time like a group chat, no.

@crazywoola commented on GitHub (Aug 6, 2024): If you mean at the same time like a group chat, no.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4914