# Auto assign topic to group

**URL:** https://meta.discourse.org/t/auto-assign-topic-to-group/378624
**Category:** Feature
**Tags:** assign, automation
**Created:** [August 14, 2025, 4:04pm UTC](https://meta.discourse.org/t/auto-assign-topic-to-group/378624 "2025-08-14T16:04:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tknospdr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tknospdr/32/529762_2.png) [@tknospdr](https://meta.discourse.org/u/tknospdr)
#### Post date: [August 14, 2025, 4:04pm UTC](https://meta.discourse.org/t/auto-assign-topic-to-group/378624/1 "2025-08-14T16:04:30Z")

</div>

Follow up question.

Is there a way to automatically assign a topic in certain categories to a group?  
I didn’t find a way to do that, and the automation plugin only has a “random assign” workflow which doesn’t look useful for what I want.

---

<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: [August 14, 2025, 4:16pm UTC](https://meta.discourse.org/t/auto-assign-topic-to-group/378624/2 "2025-08-14T16:16:31Z")

</div>

Yea I think this would need a custom automation script, but i could be wrong. you might be able to use the random assign somehow and run it often. 🤔

you could use the group tracking function too.

note you also get the `unassigned` nav filter at the top of the category topic view page if you enable `Add unassigned filter to category` category setting

 ![Screenshot 2025-08-14 at 9.21.34 AM](https://global.discourse-cdn.com/meta/original/4X/4/f/7/4f730ee47aa33b1b5eefae7dee532523d58b56c6.png)

---

<div class="post-metadata">

### Author: ![Michael12](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michael12/32/507366_2.png) [@Michael12](https://meta.discourse.org/u/Michael12)
#### Post date: [August 14, 2025, 9:00pm UTC](https://meta.discourse.org/t/auto-assign-topic-to-group/378624/3 "2025-08-14T21:00:43Z")

</div>

You can’t do that out of the box, but you could set it up with a custom automation or small plugin. Another option is to trigger “assign” via API when a topic is created in that category, pointing it to the group.

---

<div class="post-metadata">

### Author: ![tknospdr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tknospdr/32/529762_2.png) [@tknospdr](https://meta.discourse.org/u/tknospdr)
#### Post date: [August 14, 2025, 9:13pm UTC](https://meta.discourse.org/t/auto-assign-topic-to-group/378624/4 "2025-08-14T21:13:35Z")

</div>

> [@Michael12](#):
>
> Another option is to trigger “assign” via API when a topic is created in that category, pointing it to the group.

I looked into that, but it’s a little beyond me on how to implement it.  
ChatGPT suggested:  
  
Option A — Core Webhook → API call (no plugin code)

1. Enable group assignments  
In site settings, add your group to assign allowed on groups. This enables assigning topics to that group.

2. Create a “Topic event” webhook  
Admin → Settings → Webhooks → New.  
Event type: Topic; check created.  
(Optional) Filter to your tickets category so it only fires there.  
Set a secret; save. Discourse sends topic\_created payloads with the topic id/url.

3. Handle the webhook in Zapier/Make/or your own endpoint  
Parse the payload; grab topic.id (and confirm the category if you didn’t filter in step 2).  
Call the Assign endpoint to assign the group  
Use an Admin API key + username. (General API doc + how to “reverse-engineer” endpoints if not documented.)

4. Practical tip: open your browser dev tools on a topic, manually click Assign → your group, and copy the network request (path + params). Use that exact request in your webhook handler. (The Assign UI is part of core now; the controller exposes the same route the UI uses.)  
This gives you immediate, deterministic assignments the moment a topic is created in tickets.  
  
And I got lost at step 3.
