feat: Add native support for CSML in agent_bot API (#4913)

This commit is contained in:
Pranav Raj S
2022-06-23 19:17:46 +05:30
committed by GitHub
parent f71980bd95
commit b7606e4dd2
26 changed files with 722 additions and 80 deletions

View File

@@ -0,0 +1,10 @@
class AgentBots::CsmlJob < ApplicationJob
queue_as :bots
def perform(event, agent_bot, message)
event_data = { message: message }
Integrations::Csml::ProcessorService.new(
event_name: event, agent_bot: agent_bot, event_data: event_data
).perform
end
end

View File

@@ -0,0 +1,3 @@
class AgentBots::WebhookJob < WebhookJob
queue_as :bots
end