discourse/plugins/discourse-workflows/lib/tasks/workflows.rake
Sam 65024326dd
FEATURE: Add AI authoring to Discourse Workflows (#40504)
Previously, admins could only build Discourse Workflows by manually
adding and connecting every trigger, condition, and action node on the
canvas.

This change adds an AI authoring assistant, gated behind
`discourse_workflows_ai_authoring_enabled` and DiscourseAi, that turns a
natural-language request into a server-validated, reviewable workflow
patch the admin applies. It only ever proposes drafts and never
publishes.

---------

Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
Co-authored-by: Rafael Silva <xfalcox@gmail.com>
Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2026-06-18 18:32:30 +02:00

10 lines
253 B
Ruby
Vendored

# frozen_string_literal: true
require_relative "../discourse_workflows/dev_populator"
namespace :workflows do
desc "Creates example Discourse workflows"
task populate: ["db:load_config"] do
DiscourseWorkflows::DevPopulator.populate!
end
end