Discourse Workflows

Thanks, that did solve it!

3 Likes

@gilles I’ve now implemented the follow-up I mentioned above:

It adds a generic Event → Set attendance operation, with:

  • attendee
  • attendance state: Going / Interested / Not going / Remove attendance
  • topic ID
  • optional actor

So your original use case can be built as:

Post created → If first post → Event / Set attendance

using the event author as the attendee and setting them to Going.

I tested that exact pattern locally in the Workflows GUI, stacked on #42932, and confirmed the user is automatically registered as Going on the event.

The PR is currently a draft only because it depends on #42932. Once #42932 merges I’ll rebase it onto main, which will leave the attendance-only diff.

2 Likes

@Ethsim2 Thanks, you’re the best :+1: :clap:

1 Like

Is there a way to retry a workflow (with the same event), similar to how, with a webhook, you can resend a payload?

No sorry we don’t support this atm

2 Likes

Is there a trigger/event that fires when a NEW tag is created?

When a new tag is created by a user, is there a way to automatically
add it to a specific tag group? If not, what’s the recommended approach?

1 Like

No we don’t have any of this. Can you expand your use case please?

Could you have it:

  1. Look at all new topics
  2. Check tag against existing ones
  3. If new tag, <insert action>
1 Like

There is “Topic Tag Changed”. You could then call the Discourse API and see how many times the tag is used. If it’s one / if it’s on that specific topic, you know the tag is new.

Alternatively and maybe easier: you could setup a webhook for “tag is created” and point it to a workflow webhook trigger.

1 Like

Use case: I have an “artist” tag group. New artists debut all the time, so
new artist tags keep appearing when users create them. I want those new
tags to be automatically added to the “artist” tag group, instead of me
having to manually add them. Is there a good way to get
this result with Workflows?

how do you know it’s an artist tag and not another random tag?

That’s exactly what the AI step handles. The AI agent first determines whether a new tag belongs to any of the defined groups (artist / member / region / event-type / release-type); if it matches none, it’s skipped and never filed into a group. So random tags are filtered out, and only correctly classified tags get auto-added to a tag group.

1 Like

ok will add some trigger for tag created and a node for add tag to tag group

4 Likes

We have added the following to workflows:

4 Likes