# A Bot to match random users?

**URL:** https://meta.discourse.org/t/a-bot-to-match-random-users/181631
**Category:** Development
**Created:** [March 2, 2021, 4:37pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631 "2021-03-02T16:37:41Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![dinoscool3](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@dinoscool3](https://meta.discourse.org/u/dinoscool3)
#### Post date: [March 2, 2021, 4:37pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/1 "2021-03-02T16:37:41Z")

</div>

Hi all, I hope this is in the right forum!

I run a number of community book club forums, and one feature we were thinking of starting was a bot that could connect two random users. The idea came from a bot I came across on an MS Teams meetup site, and I think it would increase conversation about the books.

Basically just a bot to send two users a message saying “Hi George, we’d like to introduce you to Bob, send a PM here” and vice versa.

Here’s the bot from MS Teams:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/5/f56bb69a34bb8140699351dfdf3e436e1bc648d4.png)

I’ve done a search, specifically to see if I could edit Discobot to do this, but I couldn’t find anything. Has this been done before?

Thank you!

---

<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: [March 2, 2021, 4:42pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/2 "2021-03-02T16:42:00Z")

</div>

Doesn’t need to be a’bot’. You can simply create a Job within a plugin that runs some Ruby code to identify and email the respective users.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 2, 2021, 4:49pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/3 "2021-03-02T16:49:20Z")

</div>

Welcome @dinoscool3! I think you’ve come to the right place. I’m not quite sure if this will help, but check out [Mingle - An Introductions Plugin](https://meta.discourse.org/t/mingle-an-introductions-plugin/95634). I’m not really familiar with it, but I think it’s at least close to what you’re looking for, perhaps if only to give you ideas to solve your actual goal.

I hope this helps!

---

<div class="post-metadata">

### Author: ![dinoscool3](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@dinoscool3](https://meta.discourse.org/u/dinoscool3)
#### Post date: [March 2, 2021, 4:52pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/4 "2021-03-02T16:52:46Z")

</div>

Thanks to you both! I just had bot on the mind because that’s how I’ve seen it used previously. Just searching for a plugin makes a lot more sense. Mingle looks like its exactly what I’m looking for. Thank you!

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [March 4, 2021, 1:09am UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/5 "2021-03-04T01:09:12Z")

</div>

discourse-automation can do this. We use it for our Secret Santa matching. I’m not sure when we’re releasing it yet though. @j.jaffeux will have more info.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [March 4, 2021, 6:41am UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/6 "2021-03-04T06:41:22Z")

</div>

Yes automation would do it, a mingle script is on my list. I don’t have a specific date yet, but release should be in the next 2 months.

---

<div class="post-metadata">

### Author: ![dinoscool3](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@dinoscool3](https://meta.discourse.org/u/dinoscool3)
#### Post date: [March 4, 2021, 4:21pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/7 "2021-03-04T16:21:17Z")

</div>

Awesome! I’ll take a look at that too when it launches 🙂

---

<div class="post-metadata">

### Author: ![Drew-ART](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@Drew-ART](https://meta.discourse.org/u/Drew-ART)
#### Post date: [December 22, 2022, 2:51pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/8 "2022-12-22T14:51:56Z")

</div>

@j.jaffeux did you ever launch your mingle script?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 21, 2023, 6:25am UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/9 "2023-02-21T06:25:46Z")

</div>

[Discourse automation](https://meta.discourse.org/t/discourse-automation/195773) now exists:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/d/f/7dff9815f52449b3a882b89e91624cb28f5af64b.png)

It has a gift exchange automation script.

---

<div class="post-metadata">

### Author: ![dinoscool3](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@dinoscool3](https://meta.discourse.org/u/dinoscool3)
#### Post date: [February 21, 2023, 1:41pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/10 "2023-02-21T13:41:23Z")

</div>

Interesting! Will take a look…but would the gift mean they are matched secretly? Or could it be used to match them so they both know the other, even if there is no gift exchanged.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 21, 2023, 8:21pm UTC](https://meta.discourse.org/t/a-bot-to-match-random-users/181631/11 "2023-02-21T20:21:14Z")

</div>

I think the may be matched secretly, but it should be reasonably easy to adjust or add a mingle version here
