mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 03:23:50 +08:00
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>
10 lines
253 B
Ruby
Vendored
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
|