# קישור להודעת שיחה חדשה / אישית עם מידע מלא מראש

**URL:** https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988
**Category:** Feature
**Tags:** chat
**Created:** [3 במרץ,‏ 2023,‏ 6:51pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988 "2023-03-03T18:51:39Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)
#### Post date: [3 במרץ,‏ 2023,‏ 6:51pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/1 "2023-03-03T18:51:40Z")

</div>

Continuing the discussion from [Create a link to start a new personal message with pre-filled information](https://meta.discourse.org/t/create-a-link-to-start-a-new-personal-message-with-pre-filled-information/35984):

I’d love to be able to have a URL that I could give to people, or easily put into a theme component, where if they clicked it, it would start a personal chat with that person or it would continue an already ongoing personal chat.

Is this something that currently exists?

If not, would others want this as well?

---

<div class="post-metadata">

### Author: ![th0rgall](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th0rgall/32/293030_2.png) [@th0rgall](https://meta.discourse.org/u/th0rgall)
#### Post date: [17 באוגוסט,‏ 2023,‏ 12:34pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/2 "2023-08-17T12:34:11Z")

</div>

Yes, this would also be useful for the community I’m administrating!

As context:

- When setting up our Discourse instance, we decided to disable DMs in favor of the newer Chat function. We thought it would be confusing for our community members to have both.
- Our Discourse has a category for support. I just replied to a topic where I used a DM link to my own profile (following the docs link above posted by @jimkleiber) to ask a member to share potentially private info with me, to continue helping him privately. But of course, we disabled DMs, so that didn’t work.

Having a simple link that opens a chat with a certain username would be helpful. Other pre-filled information isn’t that important for us.

---

<div class="post-metadata">

### Author: ![shmuelsash](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@shmuelsash](https://meta.discourse.org/u/shmuelsash)
#### Post date: [10 בספטמבר,‏ 2023,‏ 5:54pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/3 "2023-09-10T17:54:35Z")

</div>

Any update on this?  
This would be really helpful for me!

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [6 באוקטובר,‏ 2023,‏ 8:27pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/4 "2023-10-06T20:27:34Z")

</div>

Yes, I’m also interested in this, I raised the question somewhere about following a link in a chat (not PM), but I don’t remember where I wrote 🤔

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [11 בנובמבר,‏ 2023,‏ 9:54pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/5 "2023-11-11T21:54:22Z")

</div>

And I would need such link too, for support style invites. It would be much easier than send ordinary invite and give driving instructions to open an 1:1 chat, or for me need to create somekind reminder to open a chat when/if that person logs in.

---

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [1 בינואר,‏ 2024,‏ 8:15am UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/9 "2024-01-01T08:15:20Z")

</div>

I have an application and I want to enable users to chat with each other. This feature enables me to integrate chat seamlessly.

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [11 בפברואר,‏ 2024,‏ 7:37pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/10 "2024-02-11T19:37:33Z")

</div>

I’m also very interested in this, is there any news on adding it?

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [22 בפברואר,‏ 2024,‏ 4:27pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/11 "2024-02-22T16:27:48Z")

</div>

I’m happy to share that we’ve recently implemented the first version of this functionality, which will let you create a link to start a new chat with one or more users. You can try this in your community with the following URL…

`https://[COMMUNITY]/chat/new-message?recipients=[USER1, USER2, ETC.]`

…where you’ll replace:

- `[COMMUNITY]` with your community URL (e.g., `meta.discourse.org`)
- `[USER1, USER2, ETC.]` with the username(s) of the member you want to chat with. If creating a link to start a chat with multiple members, separate with commas.

For now, this only works for direct messages to one or more individuals.

As you give this a go, please let us know if there are more improvements we could make here to better support your community!

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [22 בפברואר,‏ 2024,‏ 4:32pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/12 "2024-02-22T16:32:31Z")

</div>

Just to add a note, for now this only works to open a chat window in full page mode instead of drawer mode.

Working great here on Meta for me 👍

---

<div class="post-metadata">

### Author: ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)
#### Post date: [24 באפריל,‏ 2024,‏ 5:36pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/13 "2024-04-24T17:36:35Z")

</div>

This feature is amazing and just what I was looking for.

The one thing missing that would be very helpful is if there were a way to start a Group DM the same way.

Alternately: if there were a way to change a DM with multiple people to a Group DM that would be great. The main difference between the two being the ability to add a name to a DM with multiple people.

---

<div class="post-metadata">

### Author: ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)
#### Post date: [3 במאי,‏ 2024,‏ 3:25pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/14 "2024-05-03T15:25:03Z")

</div>

Hi @lindsey - First off, thanks for building this. It is hugely helpful.

I’m running into an issue where each chat that is started this way is treated as unique even when it has the same people in it. For example if I start this chat:

[https://mysite.com/chat/new-message?recipients=USER1,USER2,USER3](https://mysite.com/chat/new-message?recipients=USER1,USER2,USER3)

and then have a conversation, the next time I hit the same URL it creates a new group chat without any of the prior messages.

I’m generating these links dynamically and when I write out the URL I don’t have any way of knowing if the conversation is net new or the same recipients have already chatted before.

This probably isnt an easy problem to solve but it would be great if a DM already exists with the same recipient list it could just go there instead of spinning up an entirely new, blank DM.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [4 במאי,‏ 2024,‏ 8:35am UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/15 "2024-05-04T08:35:07Z")

</div>

FYI Chatbot has implemented the prefilled info as a kick off message, feel free to borrow the technique (but requires a plugin as adds a controller to the API)

> [@Discourse Chatbot robot](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652):
>
> information_sourceSummary The Original AI Chatbot for Discoursehammer_and_wrenchRepository Link [GitHub - merefield/discourse-chatbot: An AI bot with RAG capability for Topics, Chat & Customer Support in Discourse, currently powered by OpenAI · GitHub](https://github.com/merefield/discourse-chatbot)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)heartSponsorship Please consider becoming an ongoing [sponsor of my open source work](https://github.com/sponsors/merefield) at a level that suits your or your organisation’s resources and needs to ens…

But a native implementation would be welcome.

---

<div class="post-metadata">

### Author: ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)
#### Post date: [5 במאי,‏ 2024,‏ 1:11pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/16 "2024-05-05T13:11:43Z")

</div>

Thanks. Will check it out.

Once thing I’ve noticed is that if you hit the URL with a single person in it, it works perfectly / as expected with jumping to an existing conversation:

[https://mysite.com/chat/new-message?recipients=USER1](https://mysite.com/chat/new-message?recipients=USER1)

but as soon as you add a 2nd person, it is unable to get back to the existing conversation:  
[https://mysite.com/chat/new-message?recipients=USER1,USER2](https://mysite.com/chat/new-message?recipients=USER1,USER2)

if it can do it correctly with 1 person in the conversation I’d like to believe there is a path to eventually make it work with multiple people.

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [6 במאי,‏ 2024,‏ 12:29pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/17 "2024-05-06T12:29:00Z")

</div>

> [@Earnie\_Baird](#):
>
> I’m running into an issue where each chat that is started this way is treated as unique even when it has the same people in it. For example if I start this chat:
> 
> [https://mysite.com/chat/new-message?recipients=USER1,USER2,USER3](https://mysite.com/chat/new-message?recipients=USER1,USER2,USER3)
> 
> and then have a conversation, the next time I hit the same URL it creates a new group chat without any of the prior messages.
> 
> I’m generating these links dynamically and when I write out the URL I don’t have any way of knowing if the conversation is net new or the same recipients have already chatted before.

Can you share a little more about your use case? I understand that you’d like to link to the existing group chat when it exists, but the _why_ will help me put that into context and learn how this would be helpful to your community.

---

<div class="post-metadata">

### Author: ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)
#### Post date: [6 במאי,‏ 2024,‏ 2:40pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/18 "2024-05-06T14:40:52Z")

</div>

Hi Lindsey,

The “WHY” is the same as it is for spinning new chats for a group of users. We have people doing things off to the side (including outside of discourse + leveraging SSO) and want to spin up chats for them dynamically. It works perfectly the first time you do it.

But the 2nd time you do it, it creates a new DM conversation instead of bringing up the existing one which:

- Makes the feature less useful because you can’t see the history
- Clogs up your DMs with duplicate rows

As an example:

- [https://mysite.com/chat/new-message?recipients=Vincent](https://mysite.com/chat/new-message?recipients=Vincent) will always refer to the same conversation even if I do it 10 times.
- [https://mysite.com/chat/new-message?recipients=Vincent,david,ilya](https://mysite.com/chat/new-message?recipients=Vincent,david,ilya) creates a new conversation every time

It should work the same way in both cases.

![Screenshot 2024-05-06 at 10.36.13 AM](https://global.discourse-cdn.com/meta/original/4X/7/9/c/79c93b7607f3a7f12bdd0c32dde04ddad8a43b7e.png)

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [15 במאי,‏ 2024,‏ 1:45pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/22 "2024-05-15T13:45:19Z")

</div>

> [@Earnie\_Baird](#):
>
> The “WHY” is the same as it is for spinning new chats for a group of users. We have people doing things off to the side (including outside of discourse + leveraging SSO) and want to spin up chats for them dynamically. It works perfectly the first time you do it.
> 
> But the 2nd time you do it, it creates a new DM conversation instead of bringing up the existing one which:
> 
> - Makes the feature less useful because you can’t see the history
> - Clogs up your DMs with duplicate rows

Is there ever a time when you’d want to open a new group chat instead of opening an existing group chat?

---

<div class="post-metadata">

### Author: ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)
#### Post date: [16 במאי,‏ 2024,‏ 5:27pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/23 "2024-05-16T17:27:49Z")

</div>

With the exact same set of people? No… don’t think so.

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [16 במאי,‏ 2024,‏ 5:59pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/25 "2024-05-16T17:59:33Z")

</div>

Thanks for all the feedback you’ve shared here — we’ll work on updating how these links work to open existing group chats (when available) instead of creating new ones.

I don’t have an ETA for when this might be ready, but we’ll share updates as we can.

---

<div class="post-metadata">

### Author: ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)
#### Post date: [16 במאי,‏ 2024,‏ 7:03pm UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/26 "2024-05-16T19:03:24Z")

</div>

Thanks for listening Lindsey. And no worries on timing as I’m sure you guys are doing a million things.

Discourse chat is an awesome product.

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [24 במאי,‏ 2024,‏ 9:28am UTC](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988/27 "2024-05-24T09:28:41Z")

</div>

Thank you for reporting @Earnie_Baird - this commit should fix the issue:

[https://github.com/discourse/discourse/commit/c39a4de139ed9bba4696d44b15cb7569038b5fde](https://github.com/discourse/discourse/commit/c39a4de139ed9bba4696d44b15cb7569038b5fde)

[Next page](https://meta.discourse.org/t/link-for-new-dm-personal-chat-message-with-pre-filled-information/256988.md?page=2)
