gassim requested that the ‘Grant Badge’ action in Discourse Workflows include a ‘Reason’ field. While the admin interface allows attaching a link to a topic or post as a reason when manually granting badges, the workflow action currently lacks this option. gassim noted that adding this feature would simplify maintenance compared to constructing raw API requests, which do support the topic_reason parameter.
Frully supported the request, explaining that they wanted to automatically grant badges to users who report specific post types (e.g., via AI detection) and link the badge back to the reported post. They pointed out that the absence of the Reason attribute in the workflow node forces them to use an HTTP API call as a workaround. Frully described the omission as a minor but straightforward fix.
awesomerobot agreed that the feature was reasonable and confirmed that it had been implemented. They provided a link to the pull request addressing the addition of the reason field to the workflow action.
I know that it’s possible to create an API request that grants badges and includes the ‘topic reason’; however, given that ‘Grant Badge’ action in workflows is already available, would it be possible to add the option to include the ‘reason’?
When granting badges, it’s possible to mention the reason. (See admin settings of a profile, click badges, and you will be able to select badge then add link to topic/post:
Was just about to post this same thing. Using AI to detect a particular type of post, we want to tag the post, and grant a badge thanking the person for making the report. The workflow node doesn’t have the Reason attribute in order to link back to the post.id.
It’s a minor thing, but should be trivial to add. Gemini suggested an http api call as a workaround since that api can handle the reason attribute. Would be much more graceful as a node.