feat: Add article messages along with bot responses (#7993)
ref: https://linear.app/chatwoot/issue/CW-2464/bot-should-also-return-links-to-the-information
This commit is contained in:
11
spec/factories/response.rb
Normal file
11
spec/factories/response.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :response do
|
||||
response_document
|
||||
response_source
|
||||
question { Faker::Lorem.sentence }
|
||||
answer { Faker::Lorem.paragraph }
|
||||
account
|
||||
end
|
||||
end
|
||||
10
spec/factories/response_document.rb
Normal file
10
spec/factories/response_document.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :response_document do
|
||||
response_source
|
||||
content { Faker::Lorem.paragraph }
|
||||
document_link { Faker::Internet.url }
|
||||
account
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user