mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
feat(ee): Add Captain features (#10665)
Migration Guide: https://chwt.app/v4/migration This PR imports all the work related to Captain into the EE codebase. Captain represents the AI-based features in Chatwoot and includes the following key components: - Assistant: An assistant has a persona, the product it would be trained on. At the moment, the data at which it is trained is from websites. Future integrations on Notion documents, PDF etc. This PR enables connecting an assistant to an inbox. The assistant would run the conversation every time before transferring it to an agent. - Copilot for Agents: When an agent is supporting a customer, we will be able to offer additional help to lookup some data or fetch information from integrations etc via copilot. - Conversation FAQ generator: When a conversation is resolved, the Captain integration would identify questions which were not in the knowledge base. - CRM memory: Learns from the conversations and identifies important information about the contact. --------- Co-authored-by: Vishnu Narayanan <vishnu@chatwoot.com> Co-authored-by: Sojan <sojan@pepalo.com> Co-authored-by: iamsivin <iamsivin@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
@@ -48,6 +48,13 @@ Rails.application.routes.draw do
|
||||
resources :agents, only: [:index, :create, :update, :destroy] do
|
||||
post :bulk_create, on: :collection
|
||||
end
|
||||
namespace :captain do
|
||||
resources :assistants do
|
||||
resources :inboxes, only: [:index, :create, :destroy], param: :inbox_id
|
||||
end
|
||||
resources :documents, only: [:index, :show, :create, :destroy]
|
||||
resources :assistant_responses
|
||||
end
|
||||
resources :agent_bots, only: [:index, :create, :show, :update, :destroy] do
|
||||
delete :avatar, on: :member
|
||||
end
|
||||
@@ -110,6 +117,7 @@ Rails.application.routes.draw do
|
||||
post :unread
|
||||
post :custom_attributes
|
||||
get :attachments
|
||||
post :copilot
|
||||
end
|
||||
end
|
||||
|
||||
@@ -158,7 +166,6 @@ Rails.application.routes.draw do
|
||||
resources :inboxes, only: [:index, :show, :create, :update, :destroy] do
|
||||
get :assignable_agents, on: :member
|
||||
get :campaigns, on: :member
|
||||
get :response_sources, on: :member
|
||||
get :agent_bot, on: :member
|
||||
post :set_agent_bot, on: :member
|
||||
delete :avatar, on: :member
|
||||
@@ -170,15 +177,6 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
resources :labels, only: [:index, :show, :create, :update, :destroy]
|
||||
resources :response_sources, only: [:create] do
|
||||
collection do
|
||||
post :parse
|
||||
end
|
||||
member do
|
||||
post :add_document
|
||||
post :remove_document
|
||||
end
|
||||
end
|
||||
|
||||
resources :notifications, only: [:index, :update, :destroy] do
|
||||
collection do
|
||||
@@ -217,12 +215,6 @@ Rails.application.routes.draw do
|
||||
resources :webhooks, only: [:index, :create, :update, :destroy]
|
||||
namespace :integrations do
|
||||
resources :apps, only: [:index, :show]
|
||||
resource :captain, controller: 'captain', only: [] do
|
||||
collection do
|
||||
post :proxy
|
||||
post :copilot
|
||||
end
|
||||
end
|
||||
resources :hooks, only: [:show, :create, :update, :destroy] do
|
||||
member do
|
||||
post :process_event
|
||||
@@ -364,6 +356,7 @@ Rails.application.routes.draw do
|
||||
end
|
||||
|
||||
post 'webhooks/stripe', to: 'webhooks/stripe#process_payload'
|
||||
post 'webhooks/firecrawl', to: 'webhooks/firecrawl#process_payload'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -488,10 +481,6 @@ Rails.application.routes.draw do
|
||||
end
|
||||
|
||||
resources :access_tokens, only: [:index, :show]
|
||||
resources :response_sources, only: [:index, :show, :new, :create, :edit, :update, :destroy] do
|
||||
get :chat, on: :member
|
||||
post :chat, on: :member, action: :process_chat
|
||||
end
|
||||
resources :response_documents, only: [:index, :show, :new, :create, :edit, :update, :destroy]
|
||||
resources :responses, only: [:index, :show, :new, :create, :edit, :update, :destroy]
|
||||
resources :installation_configs, only: [:index, :new, :create, :show, :edit, :update]
|
||||
|
||||
Reference in New Issue
Block a user