Versions in this module Expand all Collapse all v0 v0.0.1 Jun 23, 2023 Changes in this version + const ConversationCreated + const ConversationStatusChange + const ConversationUpdated + const Id + const Incoming + const MessageCreated + const MessageUpdated + const Outgoing + const WebWidgetTriggered + type AgentBot interface + HandleMessages func(c *gin.Context) + type ChatwootRasaAgentBot struct + ChatwootClient chatwootclient.ChatwootClient + ErrorMessage string + InboxID int + RasaAPIKey string + RasaURL string + func NewChatwootRasaAgentBot(chatwootClient chatwootclient.ChatwootClient, inboxID int, rasaUrl string, ...) ChatwootRasaAgentBot + func (agentBot *ChatwootRasaAgentBot) ApplyCustomAttributes(conversationId int, rasaResponse rasa.RasaResponse) error + func (agentBot *ChatwootRasaAgentBot) CreateConversation(sourceId string) (int, error) + func (agentBot *ChatwootRasaAgentBot) GetResponseFromBot(conversation_id int, message string) (rasa.RasaResponse, error) + func (agentBot *ChatwootRasaAgentBot) HandleMessages(c *gin.Context) + func (agentBot *ChatwootRasaAgentBot) SendResponseBack(conversationId int, rasaResponse rasa.RasaResponse) error + func (agentBot *ChatwootRasaAgentBot) SetErrorLabelAndSendErrorMessageBack(conversation_id int) + type EchoAgentBot struct + ChatwootClient chatwootclient.ChatwootClient + func NewEchoAgentBot(chatwootClient chatwootclient.ChatwootClient) EchoAgentBot + func (agentBot *EchoAgentBot) GetResponseFromBot(sender int, message string) string + func (agentBot *EchoAgentBot) HandleMessages(c *gin.Context) + func (agentBot *EchoAgentBot) SendResponseBack(account int, conversationId int, message string) error + type Event struct + Account struct{ ... } + Content string + Conversation struct{ ... } + CurrentConversation struct{ ... } + Event string + ID int + MessageType string + Sender struct{ ... } + SourceID string + type MessageCreatedEvent struct + Account struct{ ... } + AdditionalAttributes struct{} + Content string + ContentAttributes struct{} + ContentType string + Conversation struct{ ... } + CreatedAt time.Time + Event string + ID int + Inbox struct{ ... } + MessageType string + Private bool + Sender struct{ ... } + SourceID interface{}